saintly 0.1.2 → 0.1.3

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
@@ -4,4 +4,8 @@
4
4
 
5
5
  === 0.1.2 / 2010-06-30
6
6
 
7
- * Fixed NPE
7
+ * Fixed NPE
8
+
9
+ === 0.1.3 / 2010-06-30
10
+
11
+ * Case insensitive
data/lib/saintly.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module Saintly
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
 
4
4
  def self.sanitize(text)
5
5
  return if text.nil?
@@ -9,7 +9,7 @@ module Saintly
9
9
  private
10
10
 
11
11
  def self.exclude_regex
12
- /\b(#{(RESTRICTED_WORDS + partials_regex_array).join('|')})\b/
12
+ /\b(#{(RESTRICTED_WORDS + partials_regex_array).join('|')})\b/i
13
13
  end
14
14
 
15
15
  def self.partials_regex_array
data/test/saintly_test.rb CHANGED
@@ -22,6 +22,11 @@ class SaintlyTest < Test::Unit::TestCase
22
22
 
23
23
  end
24
24
 
25
+ should "not care about case" do
26
+ assert_equal '***', Saintly.sanitize('Ass')
27
+
28
+ end
29
+
25
30
  should "not sanitize allowed words" do
26
31
  assert_equal 'shitake', Saintly.sanitize('shitake')
27
32
 
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: 31
4
+ hash: 29
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Coyne