json-schema_builder 0.0.4 → 0.0.5

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: 4f5b78c7099bde185d4a86c992f62027591989dc
4
- data.tar.gz: 62ab154f7d358f6192203cd46859d13bbdc92c9b
3
+ metadata.gz: c1eeadada099de4718162b6b474fdb4667e395a5
4
+ data.tar.gz: 738309024013f21516d7e4ec52bbc2f0a0b04ae6
5
5
  SHA512:
6
- metadata.gz: c12f9f064e511bf3b49ff204202be34464ea51050758f58d7ad841adf1f6f336ed9aae5f80b50f9b587273bd05878b1762e8dff12679803ff5f1901c333055f5
7
- data.tar.gz: 4a410940b32b0b3b87560f3932b64e744ce792b016328a3614a9456ccd1152e7014b14371639485036045289d8cfb90da966b052aefaa6b7a8b650f2ff8eadfd
6
+ metadata.gz: 2b73664ebad14d9cdb98d626834e402b4a9d9a898ea5e8357fe8957aa77007530a3353468d800fd77594ea590cdb7610976f882cce7e8a3a07fbc2c832590e86
7
+ data.tar.gz: 2aac1d3e2e90f31e585b858789781271bb93f10cb37ee39baaacac8dd72b3dce1b259546b5bc29bb49fe592cc3a47e60432a11b42ec3d152cffdbfdcc15f5afe
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  /pkg
3
3
  /coverage
4
4
  .DS_Store
5
+ /Gemfile.lock
data/Gemfile.lock CHANGED
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- json-schema_builder (0.0.4)
5
- activesupport (~> 4.0, = 4.2.0.rc2)
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.rc2)
12
- i18n (>= 0.7.0.beta1, < 0.8)
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.1)
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.beta1)
23
+ i18n (0.7.0)
24
24
  json (1.8.1)
25
25
  json-schema (2.5.0)
26
26
  addressable (~> 2.3)
@@ -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', '4.2.0.rc2'
27
+ spec.add_dependency 'activesupport', '~> 4.0'
28
28
  spec.add_dependency 'json-schema', '~> 2.5'
29
29
  end
@@ -1,5 +1,5 @@
1
1
  module JSON
2
2
  module SchemaBuilder
3
- VERSION = '0.0.4'
3
+ VERSION = '0.0.5'
4
4
  end
5
5
  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
@@ -0,0 +1,17 @@
1
+ module Examples
2
+ class ScopeBreaking
3
+ include JSON::SchemaBuilder
4
+
5
+ def example
6
+ object do |parent|
7
+ other_method parent
8
+ end
9
+ end
10
+
11
+ def other_method(parent)
12
+ parent.object :one do
13
+ integer :two
14
+ end
15
+ end
16
+ end
17
+ 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
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-17 00:00:00.000000000 Z
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