Skip to content
Browse files

Uses JSON.parse instead of ActiveSupport::JSON.decode

  • Loading branch information...
1 parent 672c2a2 commit 5732e58f95b37b7bbc799a72d88ba0f3b44a14de @tosik committed
Showing with 2 additions and 4 deletions.
  1. +0 −2 ikioi-checker.gemspec
  2. +2 −2 lib/ikioi/checker.rb
View
2 ikioi-checker.gemspec
@@ -18,8 +18,6 @@ Gem::Specification.new do |spec|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.require_paths = ["lib"]
- spec.add_runtime_dependency "active_support"
-
spec.add_development_dependency "bundler", "~> 1.3"
spec.add_development_dependency "rake"
end
View
4 lib/ikioi/checker.rb
@@ -1,4 +1,4 @@
-require "active_support"
+require "json"
require "open-uri"
module Ikioi
@@ -18,7 +18,7 @@ def fetch
end
def parse(jsonp)
- ActiveSupport::JSON.decode(jsonp.sub('callback(', '').sub(/\);$/, ''))
+ JSON.parse(jsonp.sub('callback(', '').sub(/\);$/, ''))
end
def fetch_jsonp

0 comments on commit 5732e58

Please sign in to comment.
Something went wrong with that request. Please try again.