json_schemer 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +3 -4
- data/Gemfile.lock +2 -2
- data/json_schemer.gemspec +1 -1
- data/lib/json_schemer/schema/base.rb +4 -6
- data/lib/json_schemer/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7cecb91727873d8e1a7ff2351c3405bbe888d609830f2223eb1e4d33073c0831
|
4
|
+
data.tar.gz: a363562768cac825d339c9cb188d49f60ff0dc325f4e21cc84ee5384d2b1244a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d0a060a13b5c2596d7c60f6c701f46d5cdb9c9e545737e76486f5228945544b2c6b5e01a47f826c9c508993df801e1314ee330c8a3cf6d7f701f7f6b2c526d6
|
7
|
+
data.tar.gz: d49827287d183c83ade04e2fc817687445c1754d60a101cec79e97c26780b513994c47ca097bcfb4b05daf2b82c706200200272e45f3f30b66f06cb19e73e00e
|
data/.github/workflows/ci.yml
CHANGED
@@ -4,14 +4,13 @@ jobs:
|
|
4
4
|
ruby:
|
5
5
|
strategy:
|
6
6
|
matrix:
|
7
|
-
ruby: [2.5
|
7
|
+
ruby: [2.4, 2.5, 2.6, 2.7, truffleruby-head]
|
8
8
|
runs-on: ubuntu-latest
|
9
9
|
steps:
|
10
|
-
- uses: actions/checkout@
|
11
|
-
- uses:
|
10
|
+
- uses: actions/checkout@v2
|
11
|
+
- uses: ruby/setup-ruby@v1
|
12
12
|
with:
|
13
13
|
ruby-version: ${{ matrix.ruby }}
|
14
14
|
- run: |
|
15
|
-
gem install bundler
|
16
15
|
bundle install
|
17
16
|
bundle exec rake test
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
json_schemer (0.2.
|
4
|
+
json_schemer (0.2.14)
|
5
5
|
ecma-re-validator (~> 0.2)
|
6
6
|
hana (~> 1.3)
|
7
7
|
regexp_parser (~> 1.5)
|
@@ -15,7 +15,7 @@ GEM
|
|
15
15
|
hana (1.3.6)
|
16
16
|
minitest (5.11.3)
|
17
17
|
rake (13.0.1)
|
18
|
-
regexp_parser (1.
|
18
|
+
regexp_parser (1.8.1)
|
19
19
|
uri_template (0.7.0)
|
20
20
|
|
21
21
|
PLATFORMS
|
data/json_schemer.gemspec
CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.required_ruby_version = '~> 2.
|
23
|
+
spec.required_ruby_version = '~> 2.4'
|
24
24
|
|
25
25
|
spec.add_development_dependency "bundler", "~> 2.0"
|
26
26
|
spec.add_development_dependency "rake", "~> 13.0"
|
@@ -568,12 +568,10 @@ module JSONSchemer
|
|
568
568
|
end
|
569
569
|
|
570
570
|
def safe_strict_decode64(data)
|
571
|
-
|
572
|
-
|
573
|
-
|
574
|
-
|
575
|
-
nil
|
576
|
-
end
|
571
|
+
Base64.strict_decode64(data)
|
572
|
+
rescue ArgumentError => e
|
573
|
+
raise e unless e.message == 'invalid base64'
|
574
|
+
nil
|
577
575
|
end
|
578
576
|
|
579
577
|
def ecma_262_regex(pattern)
|
data/lib/json_schemer/version.rb
CHANGED
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.
|
4
|
+
version: 0.2.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Harsha
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -146,7 +146,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
146
146
|
requirements:
|
147
147
|
- - "~>"
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: '2.
|
149
|
+
version: '2.4'
|
150
150
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
152
|
- - ">="
|