shiny_json_logic 0.2.2 → 0.2.3

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: ff4b2cb52b4896163788f2bb7b463a8d56df09f962be45a98264e3944ca4f505
4
- data.tar.gz: b77fd0016b591540e980bc28f5887a89f07b8d2b232d3485bf20c20a4ccd19a3
3
+ metadata.gz: ccdacd662118213f662b622e9fa22863999631809306cbd04cd87d206989e204
4
+ data.tar.gz: 41850a307b0d8b207d8c367228cc53b99dc8798223ceecc37b69722cefaf5d24
5
5
  SHA512:
6
- metadata.gz: 59d457440b77bcd7a02ed0fbd4bd8f147e14537b0308e29ff299a8875706eb6764152eeb247f4eb947033cc18adfca88b542817e72df1f0e8b2333272a899dd2
7
- data.tar.gz: c153f940a1f9b99e329b51215ba62563bc6ac6191bc80175a84d262e63c531dcf32bfb9488008e52af5a6ac3398710ea7b66042f0e34bdcc476bff5b63c0db15
6
+ metadata.gz: 7188f89ff7653be1c2fd7a2a4e63b43c7396ba3df38484848fda13ac1ca96bf31decd9979261e0fe161ea0f6923373f89ab6d826ef4e876a9ea80031e867a263
7
+ data.tar.gz: 8c974ac6a5db224b036e4a0baafd6bbd513cb126505dc7c049267ff46aebde098fb04dd646025145303fe1c17acf92e91f353332f0cb0e720985bda37d5517bc
data/CHANGELOG.md CHANGED
@@ -1,6 +1,10 @@
1
1
  # Changelog
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
+ ## [0.2.3] - 2026-02-02
5
+ ### Changed
6
+ - Improves compatibility of multiplication operator
7
+
4
8
  ## [0.2.2] - 2026-02-02
5
9
  ### Changed
6
10
  - Improves compatibility of modulo operator
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shiny_json_logic (0.2.2)
4
+ shiny_json_logic (0.2.3)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,15 +1,20 @@
1
1
  require "shiny_json_logic/operations/base"
2
2
  require "shiny_json_logic/numericals/with_error_handling"
3
+ require "shiny_json_logic/numericals/numerify"
3
4
 
4
5
  module ShinyJsonLogic
5
6
  module Operations
6
7
  class Product < Base
7
8
  include Numericals::WithErrorHandling
9
+ include Numericals::Numerify
10
+
8
11
  protected
9
12
 
10
13
  def run
14
+ return 1 if rules.empty?
15
+
11
16
  safe_arithmetic do
12
- rules.map(&:to_f).reduce(:*)
17
+ numerified.map(&:to_f).reduce(:*)
13
18
  end
14
19
  end
15
20
  end
@@ -1,3 +1,3 @@
1
1
  module ShinyJsonLogic
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
data/results/ruby.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "totals": {
3
3
  "shiny_json_logic": {
4
- "passed": 909,
4
+ "passed": 918,
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.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luis Moyano