bool 1.0.15-x86-mingw32 → 1.0.16-x86-mingw32
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.so +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: 4ae7784a4a55dc5a44251c17d2424780effd2250
|
4
|
+
data.tar.gz: b13e41e5b5582e24c57cd18a3aaeae3e9d5f8030
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fccfdc764c229b461e92220efe9fcc1fb92d298f0bfa0edf7bf31d4a9338eae1663b953471fe6baf2a51ae43421e645042d0cdcaace7e53249dcd683fc04337f
|
7
|
+
data.tar.gz: bb97dfe9252c6ea1c7f957450686aaaa07af063b549bbfdd75beeee9ea1505cc5f36657b7da5bd0cf51d15dde2e46ab6b0feca902195b3468286e5cc27e981f5
|
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.so
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: x86-mingw32
|
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
|