json-schema_builder 0.0.9 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/json-schema_builder.gemspec +1 -2
- data/lib/json/schema_builder.rb +1 -1
- data/lib/json/schema_builder/any.rb +9 -0
- data/lib/json/schema_builder/version.rb +1 -1
- data/spec/spec_helper.rb +0 -2
- data/spec/unit/any.rb +6 -0
- metadata +10 -21
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9700739613fa7c5ff2c63848f0a685f59ba92418
|
4
|
+
data.tar.gz: cc10fd2878902a1bd9f66b3f4b7e685733845788
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75781eb8acba795adee526196dcf51ad1d1273b77304ea95dff67c172684dc1b92a4bd67b8a8d9e789053ffc768da0af672a164e5daee758201b565025523635
|
7
|
+
data.tar.gz: 5e96beabe38eff89357884757508bc369b66d39c48e5b1aa712871cdf4d6be1059b7ecae6a7e022d260840952232216b9bd50aa82a3ece552c6a150c76c787d2
|
data/.travis.yml
CHANGED
data/json-schema_builder.gemspec
CHANGED
@@ -22,8 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
spec.add_development_dependency 'rake', '>= 10.0'
|
23
23
|
spec.add_development_dependency 'rspec', '~> 3.4'
|
24
24
|
spec.add_development_dependency 'rspec-its'
|
25
|
-
spec.add_development_dependency 'codeclimate-test-reporter'
|
26
25
|
spec.add_development_dependency 'pry'
|
27
26
|
spec.add_dependency 'activesupport', '>= 4.0'
|
28
|
-
spec.add_dependency 'json-schema', '
|
27
|
+
spec.add_dependency 'json-schema', '>= 2'
|
29
28
|
end
|
data/lib/json/schema_builder.rb
CHANGED
@@ -4,7 +4,7 @@ require 'json/schema_builder/dsl'
|
|
4
4
|
require 'json/schema_builder/version'
|
5
5
|
require 'json/schema_builder/configuration'
|
6
6
|
|
7
|
-
%w(array boolean integer null number object string).each do |type|
|
7
|
+
%w(any array boolean integer null number object string).each do |type|
|
8
8
|
require "json/schema_builder/#{ type }"
|
9
9
|
end
|
10
10
|
|
data/spec/spec_helper.rb
CHANGED
data/spec/unit/any.rb
ADDED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-schema_builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Parrish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,20 +66,6 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: codeclimate-test-reporter
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - ">="
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - ">="
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '0'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: pry
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -112,16 +98,16 @@ dependencies:
|
|
112
98
|
name: json-schema
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
|
-
- - "
|
101
|
+
- - ">="
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: '2
|
103
|
+
version: '2'
|
118
104
|
type: :runtime
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
107
|
requirements:
|
122
|
-
- - "
|
108
|
+
- - ">="
|
123
109
|
- !ruby/object:Gem::Version
|
124
|
-
version: '2
|
110
|
+
version: '2'
|
125
111
|
description: Build JSON schemas with Ruby
|
126
112
|
email:
|
127
113
|
- michael@zooniverse.org
|
@@ -138,6 +124,7 @@ files:
|
|
138
124
|
- Rakefile
|
139
125
|
- json-schema_builder.gemspec
|
140
126
|
- lib/json/schema_builder.rb
|
127
|
+
- lib/json/schema_builder/any.rb
|
141
128
|
- lib/json/schema_builder/array.rb
|
142
129
|
- lib/json/schema_builder/attribute.rb
|
143
130
|
- lib/json/schema_builder/boolean.rb
|
@@ -191,6 +178,7 @@ files:
|
|
191
178
|
- spec/support/integration_helper.rb
|
192
179
|
- spec/support/shared_contexts_for_entity.rb
|
193
180
|
- spec/support/shared_examples_for_numeric.rb
|
181
|
+
- spec/unit/any.rb
|
194
182
|
- spec/unit/array_spec.rb
|
195
183
|
- spec/unit/boolean_spec.rb
|
196
184
|
- spec/unit/dsl_spec.rb
|
@@ -221,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
221
209
|
version: '0'
|
222
210
|
requirements: []
|
223
211
|
rubyforge_project:
|
224
|
-
rubygems_version: 2.
|
212
|
+
rubygems_version: 2.6.10
|
225
213
|
signing_key:
|
226
214
|
specification_version: 4
|
227
215
|
summary: Build JSON schemas with Ruby
|
@@ -260,6 +248,7 @@ test_files:
|
|
260
248
|
- spec/support/integration_helper.rb
|
261
249
|
- spec/support/shared_contexts_for_entity.rb
|
262
250
|
- spec/support/shared_examples_for_numeric.rb
|
251
|
+
- spec/unit/any.rb
|
263
252
|
- spec/unit/array_spec.rb
|
264
253
|
- spec/unit/boolean_spec.rb
|
265
254
|
- spec/unit/dsl_spec.rb
|