bool 1.0.15-java → 1.0.16-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bool/evaluator.rb +0 -2
- data/lib/bool/renderer.rb +4 -6
- data/lib/bool_ext.jar +0 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 10f7634c31979cc8dc0fefc5e2a948be4c62ca06
|
4
|
+
data.tar.gz: 5676b8ab7ee4e7664e147c998209f91f1af026b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a82d2ef78d4b974f26c9c23859d9e2ca8ecfebd09f0b1221bbaaa486563ca54f6a4076150e2f526fc758be5c47c494fc466dfbd00bf920f06e62cb64567d27
|
7
|
+
data.tar.gz: 404b33735fe56fbe794f977b1acaa4eafe56c2532ef1cd8ada220cd3569c31a8b5047edcf790720c6b75de91f7d31c192f1c7ee79511f2cb2d51e34e9eba1288
|
data/lib/bool/evaluator.rb
CHANGED
data/lib/bool/renderer.rb
CHANGED
@@ -8,24 +8,22 @@ module Bool
|
|
8
8
|
end
|
9
9
|
|
10
10
|
else
|
11
|
-
def visit_var(node,
|
11
|
+
def visit_var(node, _)
|
12
12
|
node.token.value
|
13
13
|
end
|
14
14
|
|
15
|
-
def visit_and(node,
|
15
|
+
def visit_and(node, _)
|
16
16
|
"(#{render(node.left)} #{node.token.value} #{render(node.right)})"
|
17
17
|
end
|
18
18
|
|
19
|
-
def visit_or(node,
|
19
|
+
def visit_or(node, _)
|
20
20
|
"(#{render(node.left)} #{node.token.value} #{render(node.right)})"
|
21
21
|
end
|
22
22
|
|
23
|
-
def visit_not(node,
|
23
|
+
def visit_not(node, _)
|
24
24
|
"#{node.token.value}#{render(node.operand)}"
|
25
25
|
end
|
26
26
|
|
27
|
-
private
|
28
|
-
|
29
27
|
def render(node)
|
30
28
|
node.accept(self, nil)
|
31
29
|
end
|
data/lib/bool_ext.jar
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bool
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.16
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Aslak Hellesøy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-04-
|
11
|
+
date: 2013-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|