Sha256: e4e59e56cc8ae8e6901c6f8a72e663bc8806357353f6ca5baf6af935fb386b23

Contents?: true

Size: 288 Bytes

Versions: 1

Compression:

Stored size: 288 Bytes

Contents

begin
  require 'yajl'
rescue LoadError
  begin
    require 'json'
  rescue LoadError
    raise "You need either the yajl-ruby or json gems present in order to parse JSON!"
  end
end

module Mongrel2
  JSON = Object.const_defined?('Yajl') ? ::Yajl::Parser : ::JSON
  VERSION = '0.2.3'
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rack-mongrel2-0.2.3 lib/mongrel2.rb