Permalink
Browse files

Do not force user to particular json library

  • Loading branch information...
bsiggelkow committed Aug 4, 2011
1 parent 257381c commit a95539f7f08b7bbee5e58c5e75b57dc8b413da97
View
@@ -14,12 +14,10 @@ Gem::Specification.new do |s|
s.rubyforge_project = s.name
s.files = `git ls-files`.split("\n")
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,performance}/*`.split("\n")
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
s.require_paths = ["lib"]
- s.add_dependency 'json_pure'
-
s.add_development_dependency 'bundler'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec'
View
@@ -1,7 +1,10 @@
-require 'json'
+begin
+ require 'json'
+rescue LoadError
+ raise "No JSON implementation found. Please install a JSON library of your choosing."
+end
require 'jsonify/blank_slate'
require 'jsonify/version'
require 'jsonify/json_value'
require 'jsonify/generate'
-require 'jsonify/builder'
-require 'benchmark'
+require 'jsonify/builder'
File renamed without changes.
File renamed without changes.

0 comments on commit a95539f

Please sign in to comment.