rakuna-validation-json 1.0.1 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.org +15 -0
- data/Gemfile.lock +44 -62
- data/VERSION +1 -1
- data/lib/rakuna/validation/json.rb +7 -1
- data/rakuna-validation-json.gemspec +5 -4
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e4dd2f181b9fc3ebe659dd69002b97742c63e7a
|
|
4
|
+
data.tar.gz: a97b6a5de3538ea9b2aafe4b0df737ee54550699
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 05f7ebf30eb5b8e3235c10d19d81cbe1f8b39d78e19ba7916852982143cae4829d0f45217b31d448d57cbd1d8d9beb3aada21a71d1a8e9bc098bbe5d0e56f27b
|
|
7
|
+
data.tar.gz: 7cd158fb357e1353feed34348a21515d957095fedefd3b7300da9c70af59c695d420bed684876be8f75419e0b149359e5d71be64f6940d6ed9f7875e70d7a4d7
|
data/CHANGELOG.org
ADDED
data/Gemfile.lock
CHANGED
|
@@ -1,29 +1,20 @@
|
|
|
1
1
|
GEM
|
|
2
2
|
remote: https://rubygems.org/
|
|
3
3
|
specs:
|
|
4
|
-
abstract_type (0.0.7)
|
|
5
|
-
adamantium (0.2.0)
|
|
6
|
-
ice_nine (~> 0.11.0)
|
|
7
|
-
memoizable (~> 0.4.0)
|
|
8
4
|
addressable (2.3.8)
|
|
9
5
|
as-notifications (1.0.1)
|
|
10
|
-
ast (2.
|
|
11
|
-
astrolabe (1.3.1)
|
|
12
|
-
parser (~> 2.2)
|
|
6
|
+
ast (2.2.0)
|
|
13
7
|
axiom-types (0.1.1)
|
|
14
8
|
descendants_tracker (~> 0.0.4)
|
|
15
9
|
ice_nine (~> 0.11.0)
|
|
16
10
|
thread_safe (~> 0.3, >= 0.3.1)
|
|
17
11
|
builder (3.2.2)
|
|
18
|
-
codeclimate-engine-rb (0.1
|
|
12
|
+
codeclimate-engine-rb (0.3.1)
|
|
19
13
|
virtus (~> 1.0)
|
|
20
|
-
coderay (1.1.
|
|
14
|
+
coderay (1.1.1)
|
|
21
15
|
coercible (1.0.0)
|
|
22
16
|
descendants_tracker (~> 0.0.1)
|
|
23
|
-
|
|
24
|
-
adamantium (~> 0.2.0)
|
|
25
|
-
equalizer (~> 0.0.9)
|
|
26
|
-
contracts (0.12.0)
|
|
17
|
+
contracts (0.14.0)
|
|
27
18
|
descendants_tracker (0.0.4)
|
|
28
19
|
thread_safe (~> 0.3, >= 0.3.1)
|
|
29
20
|
diff-lcs (1.2.5)
|
|
@@ -31,10 +22,11 @@ GEM
|
|
|
31
22
|
equalizer (0.0.11)
|
|
32
23
|
faraday (0.9.2)
|
|
33
24
|
multipart-post (>= 1.2, < 3)
|
|
34
|
-
flog (4.
|
|
25
|
+
flog (4.4.0)
|
|
26
|
+
path_expander (~> 1.0)
|
|
35
27
|
ruby_parser (~> 3.1, > 3.1.0)
|
|
36
28
|
sexp_processor (~> 4.4)
|
|
37
|
-
git (1.
|
|
29
|
+
git (1.3.0)
|
|
38
30
|
github_api (0.13.0)
|
|
39
31
|
addressable (~> 2.3)
|
|
40
32
|
descendants_tracker (~> 0.0.4)
|
|
@@ -43,16 +35,16 @@ GEM
|
|
|
43
35
|
multi_json (>= 1.7.5, < 2.0)
|
|
44
36
|
nokogiri (~> 1.6.6)
|
|
45
37
|
oauth2
|
|
46
|
-
hashie (3.4.
|
|
38
|
+
hashie (3.4.4)
|
|
47
39
|
highline (1.7.8)
|
|
48
40
|
i18n (0.7.0)
|
|
49
|
-
ice_nine (0.11.
|
|
50
|
-
inch (0.7.
|
|
41
|
+
ice_nine (0.11.2)
|
|
42
|
+
inch (0.7.1)
|
|
51
43
|
pry
|
|
52
44
|
sparkr (>= 0.2.0)
|
|
53
45
|
term-ansicolor
|
|
54
46
|
yard (~> 0.8.7.5)
|
|
55
|
-
jeweler (2.
|
|
47
|
+
jeweler (2.1.1)
|
|
56
48
|
builder
|
|
57
49
|
bundler (>= 1.0)
|
|
58
50
|
git (>= 1.2.5)
|
|
@@ -61,77 +53,74 @@ GEM
|
|
|
61
53
|
nokogiri (>= 1.5.10)
|
|
62
54
|
rake
|
|
63
55
|
rdoc
|
|
56
|
+
semver
|
|
64
57
|
json (1.8.3)
|
|
65
|
-
json-schema (2.
|
|
58
|
+
json-schema (2.6.2)
|
|
66
59
|
addressable (~> 2.3.8)
|
|
67
|
-
jwt (1.5.
|
|
68
|
-
memoizable (0.4.2)
|
|
69
|
-
thread_safe (~> 0.3, >= 0.3.1)
|
|
60
|
+
jwt (1.5.1)
|
|
70
61
|
method_source (0.8.2)
|
|
71
62
|
mini_portile2 (2.0.0)
|
|
72
|
-
multi_json (1.
|
|
63
|
+
multi_json (1.12.1)
|
|
73
64
|
multi_xml (0.5.5)
|
|
74
65
|
multipart-post (2.0.0)
|
|
75
|
-
nokogiri (1.6.7)
|
|
66
|
+
nokogiri (1.6.7.2)
|
|
76
67
|
mini_portile2 (~> 2.0.0.rc2)
|
|
77
|
-
oauth2 (1.
|
|
68
|
+
oauth2 (1.1.0)
|
|
78
69
|
faraday (>= 0.8, < 0.10)
|
|
79
|
-
jwt (~> 1.0)
|
|
70
|
+
jwt (~> 1.0, < 1.5.2)
|
|
80
71
|
multi_json (~> 1.3)
|
|
81
72
|
multi_xml (~> 0.5)
|
|
82
|
-
rack (
|
|
83
|
-
parser (2.
|
|
84
|
-
ast (
|
|
73
|
+
rack (>= 1.2, < 3)
|
|
74
|
+
parser (2.3.1.0)
|
|
75
|
+
ast (~> 2.2)
|
|
76
|
+
path_expander (1.0.0)
|
|
85
77
|
powerpack (0.1.1)
|
|
86
|
-
private_attr (1.1.0)
|
|
87
|
-
procto (0.0.2)
|
|
88
78
|
pry (0.10.3)
|
|
89
79
|
coderay (~> 1.1.0)
|
|
90
80
|
method_source (~> 0.8.1)
|
|
91
81
|
slop (~> 3.4)
|
|
92
82
|
rack (1.6.4)
|
|
93
|
-
rainbow (2.
|
|
94
|
-
rake (
|
|
95
|
-
rakuna-content-json (1.0.
|
|
83
|
+
rainbow (2.1.0)
|
|
84
|
+
rake (11.1.2)
|
|
85
|
+
rakuna-content-json (1.0.1)
|
|
96
86
|
multi_json (~> 1.11)
|
|
97
87
|
rakuna-core (~> 1.0)
|
|
98
|
-
rakuna-core (1.0.
|
|
88
|
+
rakuna-core (1.0.2)
|
|
99
89
|
contracts (~> 0.12)
|
|
100
90
|
webmachine (~> 1.4)
|
|
101
|
-
rdoc (4.2.
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
91
|
+
rdoc (4.2.2)
|
|
92
|
+
json (~> 1.4)
|
|
93
|
+
reek (3.11)
|
|
94
|
+
codeclimate-engine-rb (~> 0.3.1)
|
|
95
|
+
parser (~> 2.3, >= 2.3.0.6)
|
|
106
96
|
rainbow (~> 2.0)
|
|
107
|
-
unparser (~> 0.2.2)
|
|
108
97
|
roodi (5.0.0)
|
|
109
98
|
ruby_parser (~> 3.2, >= 3.2.2)
|
|
110
99
|
rspec (3.4.0)
|
|
111
100
|
rspec-core (~> 3.4.0)
|
|
112
101
|
rspec-expectations (~> 3.4.0)
|
|
113
102
|
rspec-mocks (~> 3.4.0)
|
|
114
|
-
rspec-core (3.4.
|
|
103
|
+
rspec-core (3.4.4)
|
|
115
104
|
rspec-support (~> 3.4.0)
|
|
116
105
|
rspec-expectations (3.4.0)
|
|
117
106
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
118
107
|
rspec-support (~> 3.4.0)
|
|
119
|
-
rspec-mocks (3.4.
|
|
108
|
+
rspec-mocks (3.4.1)
|
|
120
109
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
121
110
|
rspec-support (~> 3.4.0)
|
|
122
111
|
rspec-support (3.4.1)
|
|
123
|
-
rubocop (0.
|
|
124
|
-
|
|
125
|
-
parser (>= 2.2.3.0, < 3.0)
|
|
112
|
+
rubocop (0.40.0)
|
|
113
|
+
parser (>= 2.3.1.0, < 3.0)
|
|
126
114
|
powerpack (~> 0.1)
|
|
127
115
|
rainbow (>= 1.99.1, < 3.0)
|
|
128
116
|
ruby-progressbar (~> 1.7)
|
|
129
|
-
|
|
130
|
-
ruby-progressbar (1.
|
|
131
|
-
ruby_parser (3.
|
|
117
|
+
unicode-display_width (~> 1.0, >= 1.0.1)
|
|
118
|
+
ruby-progressbar (1.8.1)
|
|
119
|
+
ruby_parser (3.8.2)
|
|
132
120
|
sexp_processor (~> 4.1)
|
|
133
|
-
|
|
134
|
-
|
|
121
|
+
semver (1.0.1)
|
|
122
|
+
sexp_processor (4.7.0)
|
|
123
|
+
simplecov (0.11.2)
|
|
135
124
|
docile (~> 1.1.0)
|
|
136
125
|
json (~> 1.8)
|
|
137
126
|
simplecov-html (~> 0.10.0)
|
|
@@ -141,15 +130,8 @@ GEM
|
|
|
141
130
|
term-ansicolor (1.3.2)
|
|
142
131
|
tins (~> 1.0)
|
|
143
132
|
thread_safe (0.3.5)
|
|
144
|
-
tins (1.
|
|
145
|
-
|
|
146
|
-
abstract_type (~> 0.0.7)
|
|
147
|
-
adamantium (~> 0.2.0)
|
|
148
|
-
concord (~> 0.1.5)
|
|
149
|
-
diff-lcs (~> 1.2.5)
|
|
150
|
-
equalizer (~> 0.0.9)
|
|
151
|
-
parser (~> 2.2.2)
|
|
152
|
-
procto (~> 0.0.2)
|
|
133
|
+
tins (1.10.2)
|
|
134
|
+
unicode-display_width (1.0.5)
|
|
153
135
|
virtus (1.0.5)
|
|
154
136
|
axiom-types (~> 0.1)
|
|
155
137
|
coercible (~> 1.0)
|
|
@@ -180,4 +162,4 @@ DEPENDENCIES
|
|
|
180
162
|
yard (~> 0.8)
|
|
181
163
|
|
|
182
164
|
BUNDLED WITH
|
|
183
|
-
1.
|
|
165
|
+
1.12.5
|
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
2.0.0
|
|
@@ -10,8 +10,14 @@ module Rakuna
|
|
|
10
10
|
|
|
11
11
|
Contract None => Bool
|
|
12
12
|
def payload_valid?
|
|
13
|
+
warn 'NOTE: payload_valid? is deprecated; use json_valid? instead.'
|
|
14
|
+
json_valid?
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
Contract None => Bool
|
|
18
|
+
def json_valid?
|
|
13
19
|
return true unless defined? json_schema
|
|
14
|
-
@valid ||= ::JSON::Validator.validate
|
|
20
|
+
@valid ||= ::JSON::Validator.validate json_schema, input
|
|
15
21
|
end
|
|
16
22
|
end
|
|
17
23
|
end
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
|
5
|
-
# stub: rakuna-validation-json
|
|
5
|
+
# stub: rakuna-validation-json 2.0.0 ruby lib
|
|
6
6
|
|
|
7
7
|
Gem::Specification.new do |s|
|
|
8
8
|
s.name = "rakuna-validation-json"
|
|
9
|
-
s.version = "
|
|
9
|
+
s.version = "2.0.0"
|
|
10
10
|
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
12
12
|
s.require_paths = ["lib"]
|
|
13
13
|
s.authors = ["Chris Olstrom"]
|
|
14
|
-
s.date = "
|
|
14
|
+
s.date = "2016-05-30"
|
|
15
15
|
s.description = "Adds support for validating JSON objects against a JSON schema to your Webmachine resources"
|
|
16
16
|
s.email = "chris@olstrom.com"
|
|
17
17
|
s.extra_rdoc_files = [
|
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
|
19
19
|
"README.md"
|
|
20
20
|
]
|
|
21
21
|
s.files = [
|
|
22
|
+
"CHANGELOG.org",
|
|
22
23
|
"Gemfile",
|
|
23
24
|
"Gemfile.lock",
|
|
24
25
|
"LICENSE",
|
|
@@ -32,7 +33,7 @@ Gem::Specification.new do |s|
|
|
|
32
33
|
]
|
|
33
34
|
s.homepage = "http://github.com/colstrom/rakuna-validation-json"
|
|
34
35
|
s.licenses = ["MIT"]
|
|
35
|
-
s.rubygems_version = "2.
|
|
36
|
+
s.rubygems_version = "2.5.1"
|
|
36
37
|
s.summary = "Schema-based JSON validation for Rakuna and Webmachine"
|
|
37
38
|
|
|
38
39
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rakuna-validation-json
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 2.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Olstrom
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rakuna-core
|
|
@@ -201,6 +201,7 @@ extra_rdoc_files:
|
|
|
201
201
|
- LICENSE
|
|
202
202
|
- README.md
|
|
203
203
|
files:
|
|
204
|
+
- CHANGELOG.org
|
|
204
205
|
- Gemfile
|
|
205
206
|
- Gemfile.lock
|
|
206
207
|
- LICENSE
|
|
@@ -231,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
231
232
|
version: '0'
|
|
232
233
|
requirements: []
|
|
233
234
|
rubyforge_project:
|
|
234
|
-
rubygems_version: 2.
|
|
235
|
+
rubygems_version: 2.5.1
|
|
235
236
|
signing_key:
|
|
236
237
|
specification_version: 4
|
|
237
238
|
summary: Schema-based JSON validation for Rakuna and Webmachine
|