aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/gist-logs.rb
diff options
context:
space:
mode:
authorMike McQuaid2016-09-17 15:32:44 +0100
committerMike McQuaid2016-09-17 16:14:13 +0100
commit3982950e6106d45811a396a6a7478eeeee2817d7 (patch)
tree3bc809f42e4356c89f4ff3508bbf0e84cd5d4d41 /Library/Homebrew/cmd/gist-logs.rb
parent6693915399a5d9f1f09255c5008d2cc1209f7662 (diff)
downloadbrew-3982950e6106d45811a396a6a7478eeeee2817d7.tar.bz2
rubocop --auto-correct all hash-rocket usage.
Diffstat (limited to 'Library/Homebrew/cmd/gist-logs.rb')
-rw-r--r--Library/Homebrew/cmd/gist-logs.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Homebrew/cmd/gist-logs.rb b/Library/Homebrew/cmd/gist-logs.rb
index 2c60129d1..200ad9fb5 100644
--- a/Library/Homebrew/cmd/gist-logs.rb
+++ b/Library/Homebrew/cmd/gist-logs.rb
@@ -23,16 +23,16 @@ module Homebrew
s = StringIO.new
SystemConfig.dump_verbose_config s
# Dummy summary file, asciibetically first, to control display title of gist
- files["# #{f.name} - #{timestamp}.txt"] = { :content => brief_build_info(f) }
- files["00.config.out"] = { :content => s.string }
- files["00.doctor.out"] = { :content => `brew doctor 2>&1` }
+ files["# #{f.name} - #{timestamp}.txt"] = { content: brief_build_info(f) }
+ files["00.config.out"] = { content: s.string }
+ files["00.doctor.out"] = { content: `brew doctor 2>&1` }
unless f.core_formula?
tap = <<-EOS.undent
Formula: #{f.name}
Tap: #{f.tap}
Path: #{f.path}
EOS
- files["00.tap.out"] = { :content => tap }
+ files["00.tap.out"] = { content: tap }
end
# Description formatted to work well as page title when viewing gist
@@ -93,8 +93,8 @@ module Homebrew
contents = file.size? ? file.read : "empty log"
# small enough to avoid GitHub "unicorn" page-load-timeout errors
max_file_size = 1_000_000
- contents = truncate_text_to_approximate_size(contents, max_file_size, :front_weight => 0.2)
- logs[file.basename.to_s] = { :content => contents }
+ contents = truncate_text_to_approximate_size(contents, max_file_size, front_weight: 0.2)
+ logs[file.basename.to_s] = { content: contents }
end if dir.exist?
raise "No logs." if logs.empty?
logs