json_schema-faker 0.6.1 → 0.6.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 55f8ba801612ccb07d821cc0428a9909b3ddff4c
4
- data.tar.gz: 7c4f071e4a7c0e0ba22025dc6d5334d7a6a3c32f
2
+ SHA256:
3
+ metadata.gz: a4f6fbdc7ca4c32a0a702ccfb5736acbcdefc121f6498deebd896ab80e1d723e
4
+ data.tar.gz: 7891a2f2e045b2e12bbb2d0766bd5fb0ee852665d814d2b72da16990b25596bb
5
5
  SHA512:
6
- metadata.gz: '04390e5b4ab6c4a3a9782f32a55656465d6b0c4ecdfebd5507eca7cff91177acaa7ecc16eceb0d2be8e3773915dd156265530820693ccc713723ab2dcd02077b'
7
- data.tar.gz: 664d28afe382ea2764198fab2a811129c78b01cbafae64b97668fb367ced53abdaa6db2fa0381c8ef6e6564d7644168731f1e9d2cf12fd8afe37a3d7e7043bfc
6
+ metadata.gz: 53041ee71b24a655fb688813223f21ebb441cb829610421f322fd5a3470ed4ccc53b208ee48b798033f03812f04012569d826f1011fcc9cb9f80f9d723aa691f
7
+ data.tar.gz: 14b6f30ccb927e521aaf129c856ba1e2396a289a250dd9c2a63c876e154772343a7dab4a9ec4062f00f211752773c043874377364018f53a7e620668a27f7e11
data/CHANGELOG.md CHANGED
@@ -1,55 +1,60 @@
1
+ ## 0.6.2
2
+
3
+ - Fixed
4
+ - #16
5
+
1
6
  ## 0.6.1
2
7
 
3
- * Fixed
4
- * hint-example descending
8
+ - Fixed
9
+ - hint-example descending
5
10
 
6
11
  ## 0.6.0
7
12
 
8
- * Added
9
- * support of default faker against format
10
- * support for copying format in take_logical_and_of_schema
13
+ - Added
14
+ - support of default faker against format
15
+ - support for copying format in take_logical_and_of_schema
11
16
 
12
17
  ## 0.5.2
13
18
 
14
- * Added
15
- * support of schema dependency for JsonSchema::Faker::Strategy::Simple
16
- * validate default and return only if valid
17
- * Fixed
18
- * fixes bug of disruption in JsonSchema::Faker::Util.take_logical_and_of_schema
19
- * fixes bug of not merged in JsonSchema::Faker::Strategy::Simple#compact_schema
19
+ - Added
20
+ - support of schema dependency for JsonSchema::Faker::Strategy::Simple
21
+ - validate default and return only if valid
22
+ - Fixed
23
+ - fixes bug of disruption in JsonSchema::Faker::Util.take_logical_and_of_schema
24
+ - fixes bug of not merged in JsonSchema::Faker::Strategy::Simple#compact_schema
20
25
 
21
26
  ## 0.5.1
22
27
 
23
- * Added
24
- * support for copying pattern in take_logical_and_of_schema
28
+ - Added
29
+ - support for copying pattern in take_logical_and_of_schema
25
30
 
26
31
  ## 0.5.0
27
32
 
28
- * Added
29
- * ::JsonSchema::Faker::Util. utility for json_schema
30
- * Removed
31
- * ::JsonSchema::Faker::Strategy::Simple.merge_schema! is removed. use ::JsonSchema::Faker::Util.take_logical_and_of_schema instead.
33
+ - Added
34
+ - ::JsonSchema::Faker::Util. utility for json_schema
35
+ - Removed
36
+ - ::JsonSchema::Faker::Strategy::Simple.merge_schema! is removed. use ::JsonSchema::Faker::Util.take_logical_and_of_schema instead.
32
37
 
33
38
  ## 0.4.0
34
39
 
35
- * Added
36
- * Greedy strategy to use properties as much as possible (suitable to response generation)
40
+ - Added
41
+ - Greedy strategy to use properties as much as possible (suitable to response generation)
37
42
 
38
43
  ## 0.3.0
39
44
 
40
- * Added
41
- * can add faker to format
45
+ - Added
46
+ - can add faker to format
42
47
 
43
48
  ## 0.2.0
44
49
 
45
- * Added
46
- * support example as hint
50
+ - Added
51
+ - support example as hint
47
52
 
48
53
  ## 0.1.1
49
54
 
50
- * Added
51
- * refactor and improve generation
55
+ - Added
56
+ - refactor and improve generation
52
57
 
53
58
  ## 0.1.0
54
59
 
55
- * initial release
60
+ - initial release
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.6.1
1
+ 0.6.2
@@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
19
19
  spec.add_dependency "pxeger"
20
20
  spec.add_dependency "faker"
21
21
 
22
- spec.add_development_dependency "bundler", "~> 1.12"
22
+ spec.add_development_dependency "bundler"
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
 
25
25
  # test
@@ -105,7 +105,7 @@ class JsonSchema::Faker
105
105
  a.additonal_items = false
106
106
  else
107
107
  if b.additional_items.is_a?(::JsonSchema::Schema)
108
- if a.additional_items.is_a?(::JsonSchem::Schema)
108
+ if a.additional_items.is_a?(::JsonSchema::Schema)
109
109
  ::JsonSchema::Faker::Configuration.logger.warn "not support merging additionalItems" if ::JsonSchema::Faker::Configuration.logger
110
110
  else
111
111
  a.additional_items = b.additional_items
@@ -157,7 +157,7 @@ class JsonSchema::Faker
157
157
  a.additional_properties = false
158
158
  else
159
159
  if b.additional_properties.is_a?(::JsonSchema::Schema)
160
- if a.additional_properties.is_a?(::JsonSchem::Schema)
160
+ if a.additional_properties.is_a?(::JsonSchema::Schema)
161
161
  ::JsonSchema::Faker::Configuration.logger.warn "not support merging additionalProperties" if ::JsonSchema::Faker::Configuration.logger
162
162
  else
163
163
  a.additional_properties = b.additional_properties
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_schema-faker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - okitan
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-08-28 00:00:00.000000000 Z
11
+ date: 2023-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schema
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - "~>"
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: '1.12'
61
+ version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - "~>"
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: '1.12'
68
+ version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -197,7 +197,7 @@ homepage: https://github.com/okitan/json_schema-faker
197
197
  licenses:
198
198
  - MIT
199
199
  metadata: {}
200
- post_install_message:
200
+ post_install_message:
201
201
  rdoc_options: []
202
202
  require_paths:
203
203
  - lib
@@ -212,9 +212,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  - !ruby/object:Gem::Version
213
213
  version: '0'
214
214
  requirements: []
215
- rubyforge_project:
216
- rubygems_version: 2.6.12
217
- signing_key:
215
+ rubygems_version: 3.1.6
216
+ signing_key:
218
217
  specification_version: 4
219
218
  summary: generate fake data from json schema
220
219
  test_files: []