saintly 0.1.5 → 0.1.6

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
@@ -18,5 +18,7 @@
18
18
 
19
19
  * Allows are now regex components. Added matchers to allow *lass (e.g. lass, glass, class) and bass
20
20
 
21
+ === 0.1.6 / 2010-07-12
21
22
 
23
+ * Allows words matching "assoc*"
22
24
 
data/lib/saintly.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Saintly
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
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.*', 'asset.*', '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
@@ -33,6 +33,8 @@ class SaintlyTest < Test::Unit::TestCase
33
33
  assert_equal 'assassin', Saintly.sanitize('assassin')
34
34
  assert_equal 'assumption', Saintly.sanitize('assumption')
35
35
  assert_equal 'assume', Saintly.sanitize('assume')
36
+ assert_equal 'associate', Saintly.sanitize('associate')
37
+
36
38
  assert_equal 'bass', Saintly.sanitize('bass')
37
39
 
38
40
  assert_equal 'scunthorpe', Saintly.sanitize('scunthorpe')
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: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Coyne
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-09 00:00:00 -05:00
18
+ date: 2010-07-12 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency