json-schema_builder 0.0.4 → 0.0.5
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/.gitignore +1 -0
- data/Gemfile.lock +6 -6
- data/json-schema_builder.gemspec +1 -1
- data/lib/json/schema_builder/version.rb +1 -1
- data/spec/integration/scope_breaking_spec.rb +19 -0
- data/spec/support/examples/scope_breaking.rb +17 -0
- metadata +6 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1eeadada099de4718162b6b474fdb4667e395a5
|
4
|
+
data.tar.gz: 738309024013f21516d7e4ec52bbc2f0a0b04ae6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b73664ebad14d9cdb98d626834e402b4a9d9a898ea5e8357fe8957aa77007530a3353468d800fd77594ea590cdb7610976f882cce7e8a3a07fbc2c832590e86
|
7
|
+
data.tar.gz: 2aac1d3e2e90f31e585b858789781271bb93f10cb37ee39baaacac8dd72b3dce1b259546b5bc29bb49fe592cc3a47e60432a11b42ec3d152cffdbfdcc15f5afe
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
json-schema_builder (0.0.
|
5
|
-
activesupport (~> 4.0
|
4
|
+
json-schema_builder (0.0.5)
|
5
|
+
activesupport (~> 4.0)
|
6
6
|
json-schema (~> 2.5)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
activesupport (4.2.0
|
12
|
-
i18n (
|
11
|
+
activesupport (4.2.0)
|
12
|
+
i18n (~> 0.7)
|
13
13
|
json (~> 1.7, >= 1.7.7)
|
14
14
|
minitest (~> 5.1)
|
15
|
-
thread_safe (~> 0.
|
15
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
16
16
|
tzinfo (~> 1.1)
|
17
17
|
addressable (2.3.6)
|
18
18
|
codeclimate-test-reporter (0.4.3)
|
@@ -20,7 +20,7 @@ GEM
|
|
20
20
|
coderay (1.1.0)
|
21
21
|
diff-lcs (1.2.5)
|
22
22
|
docile (1.1.5)
|
23
|
-
i18n (0.7.0
|
23
|
+
i18n (0.7.0)
|
24
24
|
json (1.8.1)
|
25
25
|
json-schema (2.5.0)
|
26
26
|
addressable (~> 2.3)
|
data/json-schema_builder.gemspec
CHANGED
@@ -24,6 +24,6 @@ Gem::Specification.new do |spec|
|
|
24
24
|
spec.add_development_dependency 'rspec-its'
|
25
25
|
spec.add_development_dependency 'codeclimate-test-reporter'
|
26
26
|
spec.add_development_dependency 'pry'
|
27
|
-
spec.add_dependency 'activesupport', '~> 4.0'
|
27
|
+
spec.add_dependency 'activesupport', '~> 4.0'
|
28
28
|
spec.add_dependency 'json-schema', '~> 2.5'
|
29
29
|
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
RSpec.describe Examples::ScopeBreaking, type: :integration do
|
4
|
+
it_behaves_like 'a builder' do
|
5
|
+
let(:expected_json) do
|
6
|
+
{
|
7
|
+
type: :object,
|
8
|
+
properties: {
|
9
|
+
one: {
|
10
|
+
type: :object,
|
11
|
+
properties: {
|
12
|
+
two: { type: :integer }
|
13
|
+
}
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
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.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Parrish
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -101,9 +101,6 @@ dependencies:
|
|
101
101
|
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
103
|
version: '4.0'
|
104
|
-
- - '='
|
105
|
-
- !ruby/object:Gem::Version
|
106
|
-
version: 4.2.0.rc2
|
107
104
|
type: :runtime
|
108
105
|
prerelease: false
|
109
106
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -111,9 +108,6 @@ dependencies:
|
|
111
108
|
- - "~>"
|
112
109
|
- !ruby/object:Gem::Version
|
113
110
|
version: '4.0'
|
114
|
-
- - '='
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: 4.2.0.rc2
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
112
|
name: json-schema
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -171,6 +165,7 @@ files:
|
|
171
165
|
- spec/integration/object_definitions_spec.rb
|
172
166
|
- spec/integration/rooted_spec.rb
|
173
167
|
- spec/integration/schema_builder_spec.rb
|
168
|
+
- spec/integration/scope_breaking_spec.rb
|
174
169
|
- spec/integration/terse_arrays_spec.rb
|
175
170
|
- spec/integration/terse_objects_spec.rb
|
176
171
|
- spec/integration/verbose_arrays_spec.rb
|
@@ -186,6 +181,7 @@ files:
|
|
186
181
|
- spec/support/examples/object_definitions.rb
|
187
182
|
- spec/support/examples/rooted.rb
|
188
183
|
- spec/support/examples/schema_builder.rb
|
184
|
+
- spec/support/examples/scope_breaking.rb
|
189
185
|
- spec/support/examples/terse_arrays.rb
|
190
186
|
- spec/support/examples/terse_objects.rb
|
191
187
|
- spec/support/examples/verbose_arrays.rb
|
@@ -236,6 +232,7 @@ test_files:
|
|
236
232
|
- spec/integration/object_definitions_spec.rb
|
237
233
|
- spec/integration/rooted_spec.rb
|
238
234
|
- spec/integration/schema_builder_spec.rb
|
235
|
+
- spec/integration/scope_breaking_spec.rb
|
239
236
|
- spec/integration/terse_arrays_spec.rb
|
240
237
|
- spec/integration/terse_objects_spec.rb
|
241
238
|
- spec/integration/verbose_arrays_spec.rb
|
@@ -251,6 +248,7 @@ test_files:
|
|
251
248
|
- spec/support/examples/object_definitions.rb
|
252
249
|
- spec/support/examples/rooted.rb
|
253
250
|
- spec/support/examples/schema_builder.rb
|
251
|
+
- spec/support/examples/scope_breaking.rb
|
254
252
|
- spec/support/examples/terse_arrays.rb
|
255
253
|
- spec/support/examples/terse_objects.rb
|
256
254
|
- spec/support/examples/verbose_arrays.rb
|