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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 06fcc8aa4f8d7fc45dbdddd8a35c74e937a1479a
|
4
|
+
data.tar.gz: f031b1619b76312287ea55d848b9a4ea7a22f188
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 "
|
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.
|
@@ -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
|
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.
|
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
|
-
-
|
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:
|