dentaku 1.0.0 → 1.1.0
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/.travis.yml +6 -1
- data/README.md +16 -3
- data/lib/dentaku.rb +9 -0
- data/lib/dentaku/binary_operation.rb +1 -1
- data/lib/dentaku/calculator.rb +9 -31
- data/lib/dentaku/evaluator.rb +19 -11
- data/lib/dentaku/expression.rb +55 -0
- data/lib/dentaku/token.rb +4 -0
- data/lib/dentaku/token_matcher.rb +13 -9
- data/lib/dentaku/token_scanner.rb +3 -3
- data/lib/dentaku/version.rb +1 -1
- data/spec/binary_operation_spec.rb +14 -14
- data/spec/calculator_spec.rb +62 -62
- data/spec/dentaku_spec.rb +4 -4
- data/spec/evaluator_spec.rb +44 -44
- data/spec/expression_spec.rb +25 -0
- data/spec/external_function_spec.rb +11 -11
- data/spec/token_matcher_spec.rb +45 -45
- data/spec/token_scanner_spec.rb +11 -11
- data/spec/token_spec.rb +4 -4
- data/spec/tokenizer_spec.rb +75 -57
- metadata +5 -2
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dentaku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Solomon White
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -56,6 +56,7 @@ files:
|
|
56
56
|
- lib/dentaku/binary_operation.rb
|
57
57
|
- lib/dentaku/calculator.rb
|
58
58
|
- lib/dentaku/evaluator.rb
|
59
|
+
- lib/dentaku/expression.rb
|
59
60
|
- lib/dentaku/external_function.rb
|
60
61
|
- lib/dentaku/rules.rb
|
61
62
|
- lib/dentaku/token.rb
|
@@ -67,6 +68,7 @@ files:
|
|
67
68
|
- spec/calculator_spec.rb
|
68
69
|
- spec/dentaku_spec.rb
|
69
70
|
- spec/evaluator_spec.rb
|
71
|
+
- spec/expression_spec.rb
|
70
72
|
- spec/external_function_spec.rb
|
71
73
|
- spec/spec_helper.rb
|
72
74
|
- spec/token_matcher_spec.rb
|
@@ -102,6 +104,7 @@ test_files:
|
|
102
104
|
- spec/calculator_spec.rb
|
103
105
|
- spec/dentaku_spec.rb
|
104
106
|
- spec/evaluator_spec.rb
|
107
|
+
- spec/expression_spec.rb
|
105
108
|
- spec/external_function_spec.rb
|
106
109
|
- spec/spec_helper.rb
|
107
110
|
- spec/token_matcher_spec.rb
|