json_schema-faker 0.5.0 → 0.5.1

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: 9a48c2a0057da8ee6de1652e93757976bda7579f
4
- data.tar.gz: ce9fba20b0e52dfb882311a2c6959b10f6c7431d
3
+ metadata.gz: dfafb79a64676037970d45ea495b3c5dd601ba44
4
+ data.tar.gz: c5e69abcb15a816b5e90ee5cd9c08752082ab8f5
5
5
  SHA512:
6
- metadata.gz: f2aa83f9038c66b9c569b35b1fafac65b08638c99b00635c3daf24119ec26c43094e7e8607c9678de66ead6eefde411eca0ed94dd77b0d7374be9b0f290df82b
7
- data.tar.gz: '0558dcd25334eda4711868fd89e7d291195ccc32013bb37aabaebdf90cd05d430fd61e6b0f55558d2eab33f4f52f749c1604db8f42b3e54595d163f37bfef7ec'
6
+ metadata.gz: 96ef98bb3d841808674fdbe71d4e7781604f3aba3e731696ef7eebb181a0051091fd98bec9dbe9f273229508b3a0b893e90a87d3a0f13d3a673f30a11b8d6c64
7
+ data.tar.gz: fa77f0ea527055174ad18b868029f597f07652e41daed123710c25f6c7f8985209f00111abdd85e40f5bde46a8c80e0bb20a0d1f94bd8781b0fac337d12f9564
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 0.5.1
2
+
3
+ * Added
4
+ * support for copying pattern in take_logical_and_of_schema
5
+
1
6
  ## 0.5.0
2
7
 
3
8
  * Added
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -67,13 +67,15 @@ class JsonSchema::Faker
67
67
  end
68
68
  end
69
69
  # pattern
70
- if a.pattern && b.pattern
71
- # TODO: pexeger does not support generated one
72
- ::JsonSchema::Faker::Configuration.logger.warn "not support merging pattern" if ::JsonSchema::Faker::Configuration.logger
70
+ if b.pattern
71
+ if a.pattern
72
+ # TODO: pexeger does not support generated one
73
+ ::JsonSchema::Faker::Configuration.logger.warn "not support merging pattern" if ::JsonSchema::Faker::Configuration.logger
74
+ # a.pattern = RegExp.new("/^(?=.*#{a.pattern.inspect.gsub("/\\/", "").gsub("\\//", "")})(?=.*#{b.pattern.inspect.gsub("/\\/", "").gsub("\\//", "")})/")
75
+ else
76
+ a.pattern = b.pattern
77
+ end
73
78
  end
74
- #if b.pattern
75
- # a.pattern = (a.pattern ? "/^(?=.*#{a.pattern.inspect.gsub("/\\/", "").gsub("\\//", "")})(?=.*#{b.pattern.inspect.gsub("/\\/", "").gsub("\\//", "")})/" : b.pattern)
76
- #end
77
79
 
78
80
  # for array
79
81
  # items and aditionalItems
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_schema-faker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - okitan