kosher 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc CHANGED
@@ -1 +1 @@
1
- rvm --create use ree@kosher
1
+ rvm --create use 1.9.2@kosher
@@ -1,5 +1,5 @@
1
1
  module Kosher
2
- DAMAGED = "missing|torn|broken|split|discard|withdrawn|rent|stain|school|damaged|water"
2
+ DAMAGED = "\\b(?:missing|torn|broken|split|discard|withdrawn|rent|stain|school|damaged|water)"
3
3
  EXLIBRARY = "(?:e?x|discarded|retired|former|has|have)[\\s._-]*lib"
4
4
  MARKED = "(highlight|hilit|underlin)"
5
5
  MISSING_VOL = "(vols?|volume) only"
@@ -1,3 +1,3 @@
1
1
  module Kosher
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -35,6 +35,8 @@ module Kosher
35
35
  end
36
36
 
37
37
  it "does not validate damaged or worn books" do
38
+ this("Different").should be_kosher
39
+ this("Rental").should_not be_kosher
38
40
  this("Torn pages").should_not be_kosher
39
41
  end
40
42
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Paper Cavalier