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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35290cbafbd3a483badb14bd2c8d66dc9c8b4202
4
- data.tar.gz: 00ab2cd247b93fa539df8dc9baf9ed5baa532afd
3
+ metadata.gz: 9700739613fa7c5ff2c63848f0a685f59ba92418
4
+ data.tar.gz: cc10fd2878902a1bd9f66b3f4b7e685733845788
5
5
  SHA512:
6
- metadata.gz: 78fe5054ae009151b844b2b0ea313c406420233bb481a23fa1df88d66668d9373b02038cfde1cadd27c2dbcd471152bc5d7e2882f60d532c4b85e6fef2e03845
7
- data.tar.gz: 0a3b68fa8e51a58adc20e6d8b81717ba0c23cc650b217402d85d357b866a571d4107e94f8727368a34245a7df2c757c9e90e30f8b7d8e1a7117094a3b56bd513
6
+ metadata.gz: 75781eb8acba795adee526196dcf51ad1d1273b77304ea95dff67c172684dc1b92a4bd67b8a8d9e789053ffc768da0af672a164e5daee758201b565025523635
7
+ data.tar.gz: 5e96beabe38eff89357884757508bc369b66d39c48e5b1aa712871cdf4d6be1059b7ecae6a7e022d260840952232216b9bd50aa82a3ece552c6a150c76c787d2
@@ -1,7 +1,7 @@
1
1
  language: ruby
2
2
  script: bundle exec rspec
3
3
  rvm:
4
- - 2.1.5
4
+ - 2.3.1
5
5
  addons:
6
6
  code_climate:
7
7
  repo_token:
@@ -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', '~> 2.5'
27
+ spec.add_dependency 'json-schema', '>= 2'
29
28
  end
@@ -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
 
@@ -0,0 +1,9 @@
1
+ require_relative 'entity'
2
+
3
+ module JSON
4
+ module SchemaBuilder
5
+ class Any < Entity
6
+ register :any
7
+ end
8
+ end
9
+ end
@@ -1,5 +1,5 @@
1
1
  module JSON
2
2
  module SchemaBuilder
3
- VERSION = '0.0.9'
3
+ VERSION = '0.1.0'
4
4
  end
5
5
  end
@@ -1,6 +1,4 @@
1
1
  require 'pry'
2
- require 'codeclimate-test-reporter'
3
- CodeClimate::TestReporter.start
4
2
 
5
3
  %w(lib spec/support).each do |path|
6
4
  Dir["./#{ path }/**/*.rb"].sort.each{ |file| require file }
@@ -0,0 +1,6 @@
1
+ require 'spec_helper'
2
+
3
+ RSpec.describe JSON::SchemaBuilder::Any, type: :unit do
4
+ subject{ described_class }
5
+ its(:registered_type){ is_expected.to eql :any }
6
+ 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.9
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: 2016-08-02 00:00:00.000000000 Z
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.5'
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.5'
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.5.1
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