cel 0.1.1 → 0.1.2
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/README.md +1 -1
- data/lib/cel/program.rb +2 -2
- data/lib/cel/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d81d1083943f4f6d5bc415963b01c2f9be140074ae63493601b1613422fe29dd
|
|
4
|
+
data.tar.gz: 4ea24204656323c4bc8313293e64186973f28f84c4878b94804c5cb32b0cc047
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 22d25e42ca7b497e2dccbaf239a649a1a66af83001d9580faabf511cc71d8db76eca1d9ededd0fbfb3ba9bde25834750809022983364b6591bf8da1c99c6673c
|
|
7
|
+
data.tar.gz: 4526e92a70b428e512654fccc94adbe9dd4a0a32534aa1792b5633a72e55cc95e67c4ef99b5ab5b272cf822e7a7175ef28e73ada9f2e61ca5613699d715a78ca
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -109,4 +109,4 @@ Changes in the parser are therefore accomplished by modifying the `parser.ry` fi
|
|
|
109
109
|
|
|
110
110
|
## Contributing
|
|
111
111
|
|
|
112
|
-
Bug reports and pull requests are welcome on Gitlab at https://gitlab.com/
|
|
112
|
+
Bug reports and pull requests are welcome on Gitlab at https://gitlab.com/os85/cel-ruby.
|
data/lib/cel/program.rb
CHANGED
|
@@ -62,9 +62,9 @@ module Cel
|
|
|
62
62
|
# unary operations
|
|
63
63
|
values.first.__send__(:"#{op}@")
|
|
64
64
|
elsif op == "&&"
|
|
65
|
-
Bool.new(values.all? { |x|
|
|
65
|
+
Bool.new(values.all? { |x| true == x }) # rubocop:disable Style/YodaCondition
|
|
66
66
|
elsif op == "||"
|
|
67
|
-
Bool.new(values.any? { |x|
|
|
67
|
+
Bool.new(values.any? { |x| true == x }) # rubocop:disable Style/YodaCondition
|
|
68
68
|
elsif op == "in"
|
|
69
69
|
element, collection = values
|
|
70
70
|
Bool.new(collection.include?(element))
|
data/lib/cel/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cel
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Tiago Cardoso
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-
|
|
11
|
+
date: 2022-11-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: minitest
|
|
@@ -53,10 +53,10 @@ homepage:
|
|
|
53
53
|
licenses:
|
|
54
54
|
- Apache 2.0
|
|
55
55
|
metadata:
|
|
56
|
-
bug_tracker_uri: https://gitlab.com/
|
|
57
|
-
changelog_uri: https://gitlab.com/
|
|
58
|
-
source_code_uri: https://gitlab.com/
|
|
59
|
-
homepage_uri: https://gitlab.com/
|
|
56
|
+
bug_tracker_uri: https://gitlab.com/os85/cel-ruby/issues
|
|
57
|
+
changelog_uri: https://gitlab.com/os85/cel-ruby/-/blob/master/CHANGELOG.md
|
|
58
|
+
source_code_uri: https://gitlab.com/os85/cel-ruby
|
|
59
|
+
homepage_uri: https://gitlab.com/os85/cel-ruby
|
|
60
60
|
rubygems_mfa_required: 'true'
|
|
61
61
|
post_install_message:
|
|
62
62
|
rdoc_options: []
|