diff options
Diffstat (limited to 'lib/ffi_yajl/benchmark/parse_json_and_marshal.rb')
-rw-r--r-- | lib/ffi_yajl/benchmark/parse_json_and_marshal.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/ffi_yajl/benchmark/parse_json_and_marshal.rb b/lib/ffi_yajl/benchmark/parse_json_and_marshal.rb index 1148ebc..2835aea 100644 --- a/lib/ffi_yajl/benchmark/parse_json_and_marshal.rb +++ b/lib/ffi_yajl/benchmark/parse_json_and_marshal.rb @@ -1,11 +1,11 @@ $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/..") $LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + "/../lib") -require "rubygems" -require "benchmark" +require "rubygems" unless defined?(Gem) +require "benchmark" unless defined?(Benchmark) require "yajl" begin - require "json" + require "json" unless defined?(JSON) rescue LoadError end |