eye-of-newt 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/eye_of_newt/tokenizer.rb +4 -4
- data/lib/eye_of_newt/units.rb +2 -0
- data/lib/eye_of_newt/version.rb +1 -1
- data/test/examples.txt +1 -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: cc1184f54a4aac5a3e779685f661ff8d67575e45
|
4
|
+
data.tar.gz: ef2c419a4acb019a36ad2acf7af13a8cefef1f5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3987e80af077ae560f675b21000311e2300135bf60a2bc1983745193c5c2ca01f4dce8d8b80c676afca52df89699f58927e9c0f51619649dce71c54deee3a795
|
7
|
+
data.tar.gz: 47b9df47b03212cefd21583f1b8329d38f8eb7e38a89176d61b87f7a0237c804b52d8175d5fdc2bddbc6b7b7a455c89f430b5254c6fe3ee0a00502b7bedcf63f
|
@@ -8,10 +8,10 @@ module EyeOfNewt
|
|
8
8
|
ANYTHING = /[^()]+/
|
9
9
|
WORD = /\w+(-\w+)*/
|
10
10
|
NUMBER = /\d+/
|
11
|
-
OF = /of/
|
12
|
-
OR = /or/
|
13
|
-
A = /an?/
|
14
|
-
TO_TASTE = /to taste/
|
11
|
+
OF = /of/i
|
12
|
+
OR = /or/i
|
13
|
+
A = /an?/i
|
14
|
+
TO_TASTE = /to taste/i
|
15
15
|
|
16
16
|
attr_reader :string, :units, :unit_modifiers
|
17
17
|
|
data/lib/eye_of_newt/units.rb
CHANGED
data/lib/eye_of_newt/version.rb
CHANGED
data/test/examples.txt
CHANGED
@@ -28,3 +28,4 @@ heaping tablespoon of sugar | sugar | 1 | tbsp | | | heaping
|
|
28
28
|
4-5 handfuls of spinach, very roughly chopped | spinach | 4-5 | handfuls | very roughly chopped
|
29
29
|
1 (46 oz) can tomato juice | tomato juice | 1 | cans | | | 46 oz
|
30
30
|
kale or chard or spinach | kale,chard,spinach | 1 | units
|
31
|
+
kale OR chard OR spinach | kale,chard,spinach | 1 | units
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eye-of-newt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter McCracken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|