saintly 0.1.6 → 0.1.7

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.
data/History.txt CHANGED
@@ -22,3 +22,6 @@
22
22
 
23
23
  * Allows words matching "assoc*"
24
24
 
25
+ === 0.1.7 / 2010-07-12
26
+
27
+ * Allows words matching ".*lass.*" (e.g. classified, glassware)
data/lib/saintly.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Saintly
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
 
4
4
  def self.sanitize(text)
5
5
  return if text.nil?
@@ -18,7 +18,7 @@ module Saintly
18
18
  end
19
19
 
20
20
 
21
- ALLOWED_WORDS = [ '.*lass', 'bass', 'scunthorpe', 'assum.+', 'assassin.*', 'ass(et|oc).*', 'shitake.*']
21
+ ALLOWED_WORDS = [ '.*lass.*', 'bass', 'scunthorpe', 'assum.+', 'assassin.*', 'ass(et|oc).*', 'shitake.*']
22
22
 
23
23
 
24
24
  RESTRICTED_PARTIALS = [
data/test/saintly_test.rb CHANGED
@@ -42,6 +42,7 @@ class SaintlyTest < Test::Unit::TestCase
42
42
 
43
43
  assert_equal 'assets', Saintly.sanitize('assets')
44
44
  assert_equal 'glass', Saintly.sanitize('glass')
45
+ assert_equal 'classified', Saintly.sanitize('classified')
45
46
 
46
47
  end
47
48
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: saintly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Coyne