shiny_json_logic 0.2.12 → 0.2.13

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
2
  SHA256:
3
- metadata.gz: 89439d740d79b2411cc0cb2da6cd2c1cdd67bd111ecf299fd32371b42abef582
4
- data.tar.gz: c7d33d66da1ed31df8f0606150068018dcec511a0cc379c9b3868fd1a727ecd2
3
+ metadata.gz: f37a7b736cfaaa7084af3c1c09431a5a0f3e4c698b53ea4749aaa866e6c4956f
4
+ data.tar.gz: '0386a68e00b8152446ad949a9b848a14a79b18a9b638ed5162bb58d77228d3e5'
5
5
  SHA512:
6
- metadata.gz: c15e0957616af3f8f30a0bc037b36cb60dd434a0b7892eee54867b3be4b99cd499583a9490cb7306d2048a03fab0cb0c2cd8f73d8d50aedea11fefce190265c7
7
- data.tar.gz: b25ac6fdd493db726ac75ae9b75536cd788deeafc9943afd2ab0cda31ba819b02769129772ff651254835cff555256219c4254ac37aabfb1df3b753ff3a2f89f
6
+ metadata.gz: 3e2b48c589fe1df7f858f21ce6c859c0638fcbad73a1151dd3ba338629f38b8b1f4fe7d1a4c87934d2958b8f270198d36624cea665c01a1f1077133e71c2f5bf
7
+ data.tar.gz: 105690bfaa792c6b2f45ab6d36c6ae968fdd1ac1e39c4997d4ed95fdc08d35712cc96d2d1dc2bf1623c288304e437b93b64c4a88f0c0284ba575ca198299643f
data/CHANGELOG.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.2.13] - 2026-02-09
6
+ ### Changed
7
+ - Empty objects `{}` are now falsy (previously truthy). This aligns with the official JSONLogic spec.
8
+ - Official tests now pass 100% (601/601).
9
+
5
10
  ## [0.2.12] - 2026-02-09
6
11
  ### Changed
7
12
  - Fixes access error in var when value is false (previously returned nil due to bug).
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shiny_json_logic (0.2.12)
4
+ shiny_json_logic (0.2.13)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/badges/compat.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": 1,
3
3
  "label": "compat",
4
- "message": "99.7% (1123/1126)",
4
+ "message": "99.2% (1117/1126)",
5
5
  "color": "green"
6
6
  }
@@ -7,6 +7,7 @@ module ShinyJsonLogic
7
7
  return !subject.zero? if subject.is_a? Numeric
8
8
  return subject.any? if subject.is_a? Array
9
9
  return !subject.empty? if subject.is_a? String
10
+ return subject.keys.any? if subject.is_a? Hash
10
11
 
11
12
  !subject.nil?
12
13
  end
@@ -1,3 +1,3 @@
1
1
  module ShinyJsonLogic
2
- VERSION = "0.2.12"
2
+ VERSION = "0.2.13"
3
3
  end
data/results/ruby.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "totals": {
3
3
  "shiny_json_logic": {
4
- "passed": 1123,
4
+ "passed": 1117,
5
5
  "total": 1126
6
6
  }
7
7
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shiny_json_logic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.12
4
+ version: 0.2.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Moyano