json_schema_power_validator 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3a0a4e19feeb3ed199bf020f13828a754d4fe286
4
- data.tar.gz: 0973c09be3661db7a6094b60ec614786495d3876
3
+ metadata.gz: 06fcc8aa4f8d7fc45dbdddd8a35c74e937a1479a
4
+ data.tar.gz: f031b1619b76312287ea55d848b9a4ea7a22f188
5
5
  SHA512:
6
- metadata.gz: 8936466d4df3143de6d9c628c9c720a75686c2817ef61bd65b097998915ee29bf165786f10eb7cf6b22bcba4e4789ce873a9dfd894a3d3e78f7d86f1047e8871
7
- data.tar.gz: d6a63801b6a57fad236ea4839a967a1f68d9305ae35a18c3e33536c8f2f5fd1722f1428ad9f5f0ad8c03a58f6ebe11924df2bf1ada87cf55bdfbd377c39291bf
6
+ metadata.gz: 474b829ca277ef7da0aef946331d326222b8194ff37e584a794fadb3ffe1380ff94595af97074a2d9bccca1548096d09bf58758d132c2b58f8a87b131f3be8b7
7
+ data.tar.gz: cbde5b9b928923862f11e97c69d8dbb9cc7d1f23d46f02f29775097ff304a7c42578edfa9249b9e6168a6d5a8e863c8f3c2b6aabd7b0c35331153f599269afa6
data/bin/console CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "json_schema_spec"
4
+ require "json_schema_power_validator"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -6,6 +6,7 @@ require 'json_schema_power_validator/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "json_schema_power_validator"
8
8
  spec.version = JsonSchema::VERSION
9
+ spec.licenses = ["MIT"]
9
10
  spec.authors = ["timakin"]
10
11
  spec.email = ["timaki.st@gmail.com"]
11
12
 
@@ -25,7 +25,7 @@ module JsonSchema
25
25
  @suites["examples"].each do |suite|
26
26
  begin
27
27
  JSON::Validator.validate!(@schema, suite["values"])
28
- suite["expect"] == "valid" ? @raw_results.push("Success") : "A validation passed, but it opposites the expectation."
28
+ suite["expect"] == "valid" ? @raw_results.push("Success") : @raw_results.push("A validation passed, but it opposites the expectation.")
29
29
  rescue JSON::Schema::ValidationError
30
30
  suite["expect"] == "invalid" ? @raw_results.push("Success") : @raw_results.push($!.message)
31
31
  end
@@ -1,3 +1,3 @@
1
1
  module JsonSchema
2
- VERSION = "0.2.0"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_schema_power_validator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - timakin
@@ -66,11 +66,12 @@ files:
66
66
  - Rakefile
67
67
  - bin/console
68
68
  - bin/setup
69
- - json_schema_spec.gemspec
69
+ - json_schema_power_validator.gemspec
70
70
  - lib/json_schema_power_validator.rb
71
71
  - lib/json_schema_power_validator/version.rb
72
72
  homepage: https://github.com/timakin/json_schema_power_validator
73
- licenses: []
73
+ licenses:
74
+ - MIT
74
75
  metadata:
75
76
  allowed_push_host: 'TODO: Set to ''http://mygemserver.com'''
76
77
  post_install_message: