Permalink
Browse files

use json gem because of 1.8

  • Loading branch information...
1 parent 81ac492 commit c9dbb4817be61af4fe2ee91e63d0aeda0cdee622 @mrbrdo committed Jun 10, 2012
Showing with 5 additions and 3 deletions.
  1. +1 −0 .gitignore
  2. +2 −1 Gemfile.lock
  3. +1 −1 rack-webconsole-pry.gemspec
  4. +1 −1 spec/rack/webconsole/repl_spec.rb
View
@@ -7,3 +7,4 @@ doc/*
coverage/*
*.rbc
tags
+.rbx
View
@@ -2,6 +2,7 @@ PATH
remote: .
specs:
rack-webconsole-pry (0.1.4)
+ json
multi_json (>= 1.0.3)
pry
rack
@@ -11,6 +12,7 @@ GEM
specs:
bluecloth (2.2.0)
coderay (1.0.6)
+ json (1.7.3)
metaclass (0.0.1)
method_source (0.7.1)
minitest (2.11.4)
@@ -35,7 +37,6 @@ DEPENDENCIES
bluecloth
minitest
mocha
- pry
purdytest
rack-webconsole-pry!
rake
@@ -14,6 +14,7 @@ Gem::Specification.new do |s|
s.rubyforge_project = "rack-webconsole-pry"
s.add_runtime_dependency 'rack'
+ s.add_runtime_dependency 'json'
s.add_runtime_dependency 'multi_json', '>= 1.0.3'
s.add_runtime_dependency 'pry'
@@ -28,7 +29,6 @@ Gem::Specification.new do |s|
s.add_development_dependency 'yard'
s.add_development_dependency 'bluecloth'
s.add_development_dependency 'rake'
- s.add_development_dependency 'pry'
s.files = `git ls-files`.split("\n")
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -23,7 +23,7 @@ module Rack
response = @repl.call(env).last.first
- MultiJson.decode(response)['result'].must_include "8" # include because of coloring characters
+ MultiJson.load(response)['result'].must_include "8" # include because of coloring characters
end
it 'maintains local state in subsequent calls thanks to an evil global variable' do

0 comments on commit c9dbb48

Please sign in to comment.