aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/tab.rb
diff options
context:
space:
mode:
authorWilliam Woodruff2016-11-20 13:00:01 -0500
committerWilliam Woodruff2016-11-20 20:06:25 -0500
commitd07b9ed7f2e8806b1840b4f60605ef45487655e1 (patch)
tree90387191e0debec6f578dc58646d7fb588f08333 /Library/Homebrew/tab.rb
parent54d18cee17a7af49b5858dd752bf2eda59014472 (diff)
downloadbrew-d07b9ed7f2e8806b1840b4f60605ef45487655e1.tar.bz2
Replace Utils::JSON with corelib JSON calls.
Diffstat (limited to 'Library/Homebrew/tab.rb')
-rw-r--r--Library/Homebrew/tab.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb
index 3bb7d8b62..28f29aaad 100644
--- a/Library/Homebrew/tab.rb
+++ b/Library/Homebrew/tab.rb
@@ -1,7 +1,7 @@
require "cxxstdlib"
require "ostruct"
require "options"
-require "utils/json"
+require "json"
require "development_tools"
# Inherit from OpenStruct to gain a generic initialization method that takes a
@@ -58,7 +58,7 @@ class Tab < OpenStruct
# Like Tab.from_file, but bypass the cache.
def self.from_file_content(content, path)
- attributes = Utils::JSON.load(content)
+ attributes = JSON.parse(content)
attributes["tabfile"] = path
attributes["source_modified_time"] ||= 0
attributes["source"] ||= {}
@@ -313,7 +313,7 @@ class Tab < OpenStruct
"source" => source,
}
- Utils::JSON.dump(attributes)
+ JSON.generate(attributes)
end
def write