diff options
| author | Markus Reiter | 2016-09-24 17:59:14 +0200 |
|---|---|---|
| committer | Markus Reiter | 2016-09-24 19:28:26 +0200 |
| commit | 6c6a4c9fa771930c882ab7819e027031fb33b018 (patch) | |
| tree | df927520ef9c8d9414d104e931c62169899ab224 /Library/Homebrew/dev-cmd | |
| parent | 162bfee90f760a4a473894f6f3013d1b0665b3e9 (diff) | |
| download | brew-6c6a4c9fa771930c882ab7819e027031fb33b018.tar.bz2 | |
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 |
