json_schemer 0.2.22 → 0.2.23

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
  SHA256:
3
- metadata.gz: bc9ff5876e71054ee601dc4464c99560e86557796ef792e36512e1f08725a065
4
- data.tar.gz: 5ee26787348f3aecb1a591c38c7bccc7aaf4166fd14d1299999d426ecaa15893
3
+ metadata.gz: 1c55d246b024978c9c972889597f5224da512f7452e67369e9164264be0c809e
4
+ data.tar.gz: e08104af62466e8c05c03091b1c14f01d28ea8be255a363ae13c88dbe450423c
5
5
  SHA512:
6
- metadata.gz: 9b5dc77e4a136d9dd7ab774e530880188c3125647535707d67b9b09e615e538bfe826249fd53644d3dc452e8387667bc74a3e24ec21f847145bc4b92de15371d
7
- data.tar.gz: 160ead197e1f0a61090e936a526e4753156b185e4049db6d5ca7efb9c8bbf4430ebd9a0eff952299fc5bdb0b93a063745d9be3e919bee80ce93c05864a9655b7
6
+ metadata.gz: be1e817cf98bcdcfe89c7e798475e23cb6961e0523691e950a1c3ed8b3e34357d949bc63b7096ed8cb29c966b0bd16b9aa29ef674bd26e6b302a849a09aaa7ee
7
+ data.tar.gz: 590e048ad223135c9634a3e12036cbc83f2a6773143df22f4c7f56e19f228fd56e4425a07302c0d30e4c0aa6e6a94fd255ec15ebd0e59d8a568922110a9b9d55
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- json_schemer (0.2.22)
4
+ json_schemer (0.2.23)
5
5
  ecma-re-validator (~> 0.3)
6
6
  hana (~> 1.3)
7
7
  regexp_parser (~> 2.0)
@@ -15,7 +15,7 @@ GEM
15
15
  hana (1.3.7)
16
16
  minitest (5.15.0)
17
17
  rake (13.0.6)
18
- regexp_parser (2.3.1)
18
+ regexp_parser (2.6.0)
19
19
  uri_template (0.7.0)
20
20
 
21
21
  PLATFORMS
@@ -28,4 +28,4 @@ DEPENDENCIES
28
28
  rake (~> 13.0)
29
29
 
30
30
  BUNDLED WITH
31
- 2.3.11
31
+ 2.3.25
@@ -416,7 +416,7 @@ module JSONSchemer
416
416
 
417
417
  yield error(instance, 'maxLength') if max_length && data.size > max_length
418
418
  yield error(instance, 'minLength') if min_length && data.size < min_length
419
- yield error(instance, 'pattern') if pattern && resolve_regexp(pattern) !~ data
419
+ yield error(instance, 'pattern') if pattern && !resolve_regexp(pattern).match?(data)
420
420
  yield error(instance, 'format') if format? && spec_format?(format) && !valid_spec_format?(data, format)
421
421
 
422
422
  if content_encoding || content_media_type
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module JSONSchemer
3
- VERSION = '0.2.22'
3
+ VERSION = '0.2.23'
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_schemer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.22
4
+ version: 0.2.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Harsha
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-10-27 00:00:00.000000000 Z
11
+ date: 2022-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler