aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/utils/analytics.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-09-18 13:28:15 +0100
committerGitHub2016-09-18 13:28:15 +0100
commit59b7f16bfd9c1968aae0a2f1cd9a43d3d160d99f (patch)
tree17d2adec882cdeef36a8fd40d891fe7fe4021572 /Library/Homebrew/utils/analytics.rb
parent56541001a45ea58c54096bc42584c17d72b1415a (diff)
parent1bdbb0f462e4c3557bbcba0b203696bdcf025bb4 (diff)
downloadbrew-59b7f16bfd9c1968aae0a2f1cd9a43d3d160d99f.tar.bz2
Merge pull request #989 from MikeMcQuaid/rubocop-final
Rubocop: apply auto-corrections and don't use hash-rockets
Diffstat (limited to 'Library/Homebrew/utils/analytics.rb')
-rw-r--r--Library/Homebrew/utils/analytics.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/Library/Homebrew/utils/analytics.rb b/Library/Homebrew/utils/analytics.rb
index a72850655..e176f0566 100644
--- a/Library/Homebrew/utils/analytics.rb
+++ b/Library/Homebrew/utils/analytics.rb
@@ -55,10 +55,10 @@ module Utils
def report_event(category, action, label = os_prefix_ci, value = nil)
report(:event,
- :ec => category,
- :ea => action,
- :el => label,
- :ev => value)
+ ec: category,
+ ea: action,
+ el: label,
+ ev: value)
end
def report_exception(exception, options = {})
@@ -69,12 +69,12 @@ module Utils
fatal = options.fetch(:fatal, true) ? "1" : "0"
report(:exception,
- :exd => exception.class.name,
- :exf => fatal)
+ exd: exception.class.name,
+ exf: fatal)
end
def report_screenview(screen_name)
- report(:screenview, :cd => screen_name)
+ report(:screenview, cd: screen_name)
end
end
end