aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/dev-cmd/boneyard-formula-pr.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/dev-cmd/boneyard-formula-pr.rb')
-rw-r--r--Library/Homebrew/dev-cmd/boneyard-formula-pr.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/dev-cmd/boneyard-formula-pr.rb b/Library/Homebrew/dev-cmd/boneyard-formula-pr.rb
index 3d95f14b9..4c2fbb6f3 100644
--- a/Library/Homebrew/dev-cmd/boneyard-formula-pr.rb
+++ b/Library/Homebrew/dev-cmd/boneyard-formula-pr.rb
@@ -9,7 +9,7 @@
#: If `--reason=<reason>` is passed, append this to the commit/PR message.
require "formula"
-require "utils/json"
+require "json"
require "fileutils"
begin
@@ -60,7 +60,7 @@ module Homebrew
EOS
safe_system "git", "add", tap_migrations_path
end
- tap_migrations = Utils::JSON.load(File.read(tap_migrations_path))
+ tap_migrations = JSON.parse(File.read(tap_migrations_path))
tap_migrations[formula.name] = boneyard_tap.name
tap_migrations = tap_migrations.sort.inject({}) { |acc, elem| acc.merge!(elem[0] => elem[1]) }
tap_migrations_path.atomic_write(JSON.pretty_generate(tap_migrations) + "\n")