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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/shiny_json_logic/operations/product.rb +6 -1
- data/lib/shiny_json_logic/version.rb +1 -1
- data/results/ruby.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ccdacd662118213f662b622e9fa22863999631809306cbd04cd87d206989e204
|
|
4
|
+
data.tar.gz: 41850a307b0d8b207d8c367228cc53b99dc8798223ceecc37b69722cefaf5d24
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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,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
|
-
|
|
17
|
+
numerified.map(&:to_f).reduce(:*)
|
|
13
18
|
end
|
|
14
19
|
end
|
|
15
20
|
end
|
data/results/ruby.json
CHANGED