shiny_json_logic 0.2.5 → 0.2.6

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: fa02c7e8e3cf7d9c5edfef7487f4ec85181a355981c74d888b0d4ced62a6b381
4
- data.tar.gz: e4f22ac5bb8bc2b0c5954c29899c6b2e4a5e14b93175564412458a24230320c7
3
+ metadata.gz: 5c094c662a616d343c0d045d0c8da1173fb1f982c19b709ffc1e9c8550813092
4
+ data.tar.gz: 872f71f3d52d7dc6d16a98e2fbf97cd50c07d9d901f7a2ac29ec831a86aa2621
5
5
  SHA512:
6
- metadata.gz: 48a7b514be4161b49a8f80a5e21ad974f53c4676a12e4326a8749c2c2652a8522be6f5d7f6b096baae5d2f09782560d5ac42e4b887dabf49c35e141cc11f3822
7
- data.tar.gz: 5bfaba3d70512fba0a56486292c38ad5836c2d62d8d532b124c96ddfdf8faaa46fb7f0761fdd678bd7c0eb2b2fa9e5dbd846ab919fdfb2e02351800ee8fe45e9
6
+ metadata.gz: d28d16b67aaa1aa1435e2babfc2bf4b600c059ee896d863d85d1ba5460397a6eab0c4825575046ca72d0b1f804176710817bedc47d576eb84859e58af6996853
7
+ data.tar.gz: '099460668bdd8641e3f37d2ece887eca7100ccf3d7e5ade02c57317c2676a163dcf4ed2aedb417037f6779d133051ca07a7b785e98b3f5661b83259edfb2b0a3'
data/CHANGELOG.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
+ ## [0.2.6] - 2026-02-02
6
+ ### Changed
7
+ - Fixes bug with iterable when rules are empty
8
+
5
9
  ## [0.2.5] - 2026-02-02
6
10
  ### Changed
7
11
  - Improves compatibility of Iterative operations
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shiny_json_logic (0.2.5)
4
+ shiny_json_logic (0.2.6)
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": "83.3% (938/1126)",
4
+ "message": "83.9% (945/1126)",
5
5
  "color": "red"
6
6
  }
@@ -6,7 +6,7 @@ module ShinyJsonLogic
6
6
  class Base < Operations::Base
7
7
  def initialize(context)
8
8
  super
9
- collection = context.dig("rules", 0)
9
+ collection = rules.any? ? rules[0] : rules
10
10
  return handle_nil_collection if collection.nil?
11
11
 
12
12
  if collection.nil?
@@ -23,7 +23,7 @@ module ShinyJsonLogic
23
23
  end
24
24
 
25
25
  def call
26
- return deliver(errors) if errors.any?
26
+ return deliver if errors.any?
27
27
 
28
28
  deliver run
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module ShinyJsonLogic
2
- VERSION = "0.2.5"
2
+ VERSION = "0.2.6"
3
3
  end
data/results/ruby.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "totals": {
3
3
  "shiny_json_logic": {
4
- "passed": 945,
4
+ "passed": 948,
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.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Moyano