diff options
Diffstat (limited to 'lib/coderay/encoders/json.rb')
-rw-r--r-- | lib/coderay/encoders/json.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/encoders/json.rb b/lib/coderay/encoders/json.rb index 0a95397..a9e40dc 100644 --- a/lib/coderay/encoders/json.rb +++ b/lib/coderay/encoders/json.rb @@ -21,8 +21,8 @@ module Encoders require 'json' rescue LoadError begin - require 'rubygems' - gem "json" + require 'rubygems' unless defined? Gem + gem 'json' require 'json' rescue LoadError $stderr.puts "The JSON encoder needs the JSON library.\n" \ |