Sha256: d149d1c1b99ebd671eb28e9df6a5885b9e971a2a204a49ba2840b352e1bd4f84

Contents?: true

Size: 738 Bytes

Versions: 3

Compression:

Stored size: 738 Bytes

Contents

require 'rubygems'

if begin
  Gem::Specification::find_by_name('multi_json')
  rescue Gem::LoadError
    false
  rescue
    Gem.available?('multi_json')
  end
  require 'multi_json'
  
  # Force MultiJson to load an engine before we define the JSON constant here; otherwise,
  # it looks for things that are under the JSON namespace that aren't there (since we have defined it here)
  MultiJson.engine
end

$LOAD_PATH.unshift "#{File.dirname(__FILE__)}/json-schema"

require 'rubygems'
require 'schema'
require 'validator'
Dir[File.join(File.dirname(__FILE__), "json-schema/attributes/*.rb")].each {|file| require file }
Dir[File.join(File.dirname(__FILE__), "json-schema/validators/*.rb")].each {|file| require file }
require 'uri/file'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
json-schema-1.0.5 lib/json-schema.rb
json-schema-1.0.4 lib/json-schema.rb
json-schema-1.0.3 lib/json-schema.rb