json_skooma 0.2.1 → 0.2.2

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: 9da78d5df937e93b851e37daf72770aeb62c61a09922232a2dc308533a4c5e36
4
- data.tar.gz: 13759edb9c18994d8f315f740b37a5e32c4935415c0262292f77f6f52e648a30
3
+ metadata.gz: dce896a1a7c67eef175462387309d5635c989b6dc73feefe0b9e298008f3fe00
4
+ data.tar.gz: f072c2ff39c2231a7505aebc78d1825f6d1da203062c9611f5ada1dea4dc76ac
5
5
  SHA512:
6
- metadata.gz: b5b8b57d54a71b2c75f85c4f4964757cce15acedbbc49d967ebcea2447a17dfd0acbd36441aafb647f4e744ae91b78e84917ff0a7964b584a157602797210655
7
- data.tar.gz: 8435cc06b0e079f1980797b0b2cbf3a7d635bb78bcbab8431f7c4408b54e871ee2dd79bd37bf948653f5d9c1f87626618135894e54fef24135e162aca046f7e3
6
+ metadata.gz: fa5e600b9a45004f9fd4fd980a2290e7fc0d4e1920e81a843b2888f26f860bfb2b4cdce2ae953f4e319ab42c6dd89eddddaf17184dd56a37e4d50f4b2dde0d8e
7
+ data.tar.gz: d9dde950d0fc71f0e0f5a9a8d4876ffe042cc96fc0fc801eb45f185d740de8505a551b98ddad65af60bad0421929e4f04c369a6ac88cb5bf97a93fd6ecf836cf
data/CHANGELOG.md CHANGED
@@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning].
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.2.2] - 2023-04-09
11
+
12
+ ### Fixed
13
+
14
+ - Fix `$dynamicAnchor` boolean evaluation. ([@skryukov])
15
+
10
16
  ## [0.2.1] - 2023-12-03
11
17
 
12
18
  ### Fixed
@@ -37,7 +43,8 @@ and this project adheres to [Semantic Versioning].
37
43
 
38
44
  [@skryukov]: https://github.com/skryukov
39
45
 
40
- [Unreleased]: https://github.com/skryukov/json_skooma/compare/v0.2.1...HEAD
46
+ [Unreleased]: https://github.com/skryukov/json_skooma/compare/v0.2.2...HEAD
47
+ [0.2.2]: https://github.com/skryukov/json_skooma/compare/v0.2.1...v0.2.2
41
48
  [0.2.1]: https://github.com/skryukov/json_skooma/compare/v0.2.0...v0.2.1
42
49
  [0.2.0]: https://github.com/skryukov/json_skooma/compare/v0.1.0...v0.2.0
43
50
  [0.1.0]: https://github.com/skryukov/json_skooma/commits/v0.1.0
@@ -53,7 +53,7 @@ Conformance tests for JSON Schema and its vocabularies may be found
53
53
 
54
54
  The JSON Schema web site is at http://json-schema.org/
55
55
 
56
- The source for the website is [maintained in a separate repository](https://github.com/json-schema-org/json-schema-org.github.io).
56
+ The source for the website is [maintained in a separate repository](https://github.com/json-schema-org/website).
57
57
 
58
58
  ## License
59
59
 
@@ -53,7 +53,7 @@ Conformance tests for JSON Schema and its vocabularies may be found
53
53
 
54
54
  The JSON Schema web site is at http://json-schema.org/
55
55
 
56
- The source for the website is [maintained in a separate repository](https://github.com/json-schema-org/json-schema-org.github.io).
56
+ The source for the website is [maintained in a separate repository](https://github.com/json-schema-org/website).
57
57
 
58
58
  ## Contributors
59
59
 
@@ -25,7 +25,7 @@ module JSONSkooma
25
25
  if path.is_a?(Array)
26
26
  @path = path
27
27
  else
28
- super CGI.unescape(path)
28
+ super(CGI.unescape(path))
29
29
  end
30
30
  end
31
31
 
@@ -27,7 +27,7 @@ module JSONSkooma
27
27
  metaschema_uri: parent_schema.metaschema_uri,
28
28
  cache_id: parent_schema.cache_id
29
29
  )
30
- dynamic_anchor = @ref_schema["$dynamicAnchor"]
30
+ dynamic_anchor = @ref_schema["$dynamicAnchor"] if @ref_schema.type == "object"
31
31
  @dynamic = dynamic_anchor == @fragment
32
32
  end
33
33
 
@@ -22,7 +22,7 @@ module JSONSkooma
22
22
  if match[:on]
23
23
  sign = (match[:on] == "+") ? -1 : 1
24
24
  time += sign * (match[:oh].to_i * 60 + match[:om].to_i)
25
- time = time % (60 * 24)
25
+ time %= (60 * 24)
26
26
  end
27
27
  leap_time = 23 * 60 + 59
28
28
  time == leap_time
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module JSONSkooma
4
- VERSION = "0.2.1"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json_skooma
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svyatoslav Kryukov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-03 00:00:00.000000000 Z
11
+ date: 2024-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: zeitwerk