diff options
| author | Jack Nagel | 2013-06-22 16:51:08 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-06-22 21:34:02 -0500 |
| commit | 083b3c84d08571dda76e4d9ec553492ca60b8db3 (patch) | |
| tree | 3f6b9dd8f3d128116a503a42e220ab664d39911c /Library/Homebrew/tab.rb | |
| parent | c4272a25cc1e8cd85acadb52db551cad2a5824cb (diff) | |
| download | brew-083b3c84d08571dda76e4d9ec553492ca60b8db3.tar.bz2 | |
Add Utils::JSON to wrap the JSON implementation
Diffstat (limited to 'Library/Homebrew/tab.rb')
| -rw-r--r-- | Library/Homebrew/tab.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Homebrew/tab.rb b/Library/Homebrew/tab.rb index d35f69f8a..48f709113 100644 --- a/Library/Homebrew/tab.rb +++ b/Library/Homebrew/tab.rb @@ -1,6 +1,6 @@ require 'ostruct' require 'options' -require 'vendor/multi_json' +require 'utils/json' # Inherit from OpenStruct to gain a generic initialization method that takes a # hash and creates an attribute for each key and value. `Tab.new` probably @@ -27,7 +27,7 @@ class Tab < OpenStruct end def self.from_file path - tab = Tab.new MultiJson.decode(open(path).read) + tab = Tab.new Utils::JSON.load(open(path).read) tab.tabfile = path tab end @@ -90,7 +90,7 @@ class Tab < OpenStruct end def to_json - MultiJson.encode({ + Utils::JSON.dump({ :used_options => used_options.to_a, :unused_options => unused_options.to_a, :built_as_bottle => built_as_bottle, |
