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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a22153a502ff31dcf2c78bbc353759a09e3a972d
4
- data.tar.gz: 9942d74541ae7d441540ef11c99ef39d44a106c0
3
+ metadata.gz: cc1184f54a4aac5a3e779685f661ff8d67575e45
4
+ data.tar.gz: ef2c419a4acb019a36ad2acf7af13a8cefef1f5c
5
5
  SHA512:
6
- metadata.gz: cf13232d805fc460a0e5accb943d6841fa17b9ad3eb7ccc5d11eb1d4e93dac5b5408a31ea5afa3c6be1ab38903b6aa32f8b3b48e3e3b14f133b33ea5e993de48
7
- data.tar.gz: 677735c13e5b2d58cae5523c86fef5a2d328166e9cedef99682a47612999c59d75d8f635b4481a328a131b7630b96cfd6a354c2ddadd355b3f4577fee3e72723
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
 
@@ -93,6 +93,8 @@ module EyeOfNewt
93
93
  add_unit "bunches", "bunch"
94
94
  add_unit "sprigs", "sprig"
95
95
  add_unit "cans", "can"
96
+ add_unit "packages", "package"
97
+ add_unit "containers", "container"
96
98
 
97
99
  add_unit_modifier "big"
98
100
  add_unit_modifier "large"
@@ -1,3 +1,3 @@
1
1
  module EyeOfNewt
2
- VERSION = "0.0.10"
2
+ VERSION = "0.0.11"
3
3
  end
@@ -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.10
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-10 00:00:00.000000000 Z
11
+ date: 2015-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport