lib/carbon/cli/shell.rb in carbon-1.0.3 vs lib/carbon/cli/shell.rb in carbon-1.0.4

- old
+ new

@@ -7,10 +7,10 @@ def self.init emitters_url = "http://carbon.brighterplanet.com/models.json" response = REST.get(emitters_url) if true || response.ok? - self.emitters = JSON.parse(response.body) + self.emitters = ActiveSupport::JSON.decode response.body emitters.map(&:underscore).each do |e| define_method e.to_sym do |*args| if args.any? and num = args.first and saved = $emitters[e.to_sym][num] emitter e.to_sym, saved else