Sha256: 70e50ab195e03c4fa3b4228d2a95e2c7c6334039925d0d6ea424e964793dde81

Contents?: true

Size: 505 Bytes

Versions: 18

Compression:

Stored size: 505 Bytes

Contents

# frozen_string_literal: true

require_relative "rust_json_schema/version"

module RustJSONSchema
  class Error < StandardError; end

  class JSONParseError < Error; end

  class SchemaParseError < Error; end

  class InvalidOptionsError < Error; end
end

# Tries to require the extension for the given Ruby version first
begin
  RUBY_VERSION =~ /(\d+\.\d+)/
  require "rust_json_schema/#{Regexp.last_match(1)}/rust_json_schema"
rescue LoadError
  require_relative "rust_json_schema/rust_json_schema"
end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
rust_json_schema-0.3.0 lib/rust_json_schema.rb
rust_json_schema-0.3.0-x86_64-linux lib/rust_json_schema.rb
rust_json_schema-0.3.0-x86_64-darwin lib/rust_json_schema.rb
rust_json_schema-0.3.0-arm-linux lib/rust_json_schema.rb
rust_json_schema-0.3.0-arm64-darwin lib/rust_json_schema.rb
rust_json_schema-0.3.0-aarch64-linux lib/rust_json_schema.rb
rust_json_schema-0.3.0-aarch64-linux-musl lib/rust_json_schema.rb
rust_json_schema-0.3.0-x86_64-linux-musl lib/rust_json_schema.rb
rust_json_schema-0.2.1-x86_64-linux lib/rust_json_schema.rb
rust_json_schema-0.2.1-aarch64-linux lib/rust_json_schema.rb
rust_json_schema-0.2.1-arm64-darwin lib/rust_json_schema.rb
rust_json_schema-0.2.1-x86_64-darwin lib/rust_json_schema.rb
rust_json_schema-0.2.1-x86_64-linux-musl lib/rust_json_schema.rb
rust_json_schema-0.2.1-arm-linux lib/rust_json_schema.rb
rust_json_schema-0.2.0-x86_64-linux lib/rust_json_schema.rb
rust_json_schema-0.2.0-arm64-darwin lib/rust_json_schema.rb
rust_json_schema-0.2.0-x86_64-darwin lib/rust_json_schema.rb
rust_json_schema-0.2.0 lib/rust_json_schema.rb