diff options
| author | Mike McQuaid | 2016-09-24 20:40:00 +0100 |
|---|---|---|
| committer | GitHub | 2016-09-24 20:40:00 +0100 |
| commit | 232078df57418004bb9bf7abef877e734fcf7005 (patch) | |
| tree | 7e973cb6dd4eb5d4f45252cc02cf56c131cf25e0 /Library/Homebrew/dev-cmd | |
| parent | 1e6e2d7d3905c93c0c0358e1600c04e784f4a49c (diff) | |
| parent | 6c6a4c9fa771930c882ab7819e027031fb33b018 (diff) | |
| download | brew-232078df57418004bb9bf7abef877e734fcf7005.tar.bz2 | |
Merge pull request #1123 from reitermarkus/rubocop
RuboCop: Style/AccessorMethodName
Diffstat (limited to 'Library/Homebrew/dev-cmd')
| -rw-r--r-- | Library/Homebrew/dev-cmd/bump-formula-pr.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb index 38c7559fb..ce10da52a 100644 --- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb +++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb @@ -27,7 +27,7 @@ require "formula" module Homebrew def inreplace_pairs(path, replacement_pairs) if ARGV.dry_run? - contents = path.open("r") { |f| Formulary.set_encoding(f).read } + contents = path.open("r") { |f| Formulary.ensure_utf8_encoding(f).read } contents.extend(StringInreplaceExtension) replacement_pairs.each do |old, new| unless ARGV.flag?("--quiet") @@ -48,7 +48,7 @@ module Homebrew s.gsub!(old, new) end end - path.open("r") { |f| Formulary.set_encoding(f).read } + path.open("r") { |f| Formulary.ensure_utf8_encoding(f).read } end end |
