saintly 0.1.1 → 0.1.2

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.
Files changed (3) hide show
  1. data/History.txt +5 -1
  2. data/lib/saintly.rb +2 -1
  3. metadata +3 -3
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
1
  === 0.1.1 / 2010-06-30
2
2
 
3
- * starting point
3
+ * starting point
4
+
5
+ === 0.1.2 / 2010-06-30
6
+
7
+ * Fixed NPE
data/lib/saintly.rb CHANGED
@@ -1,7 +1,8 @@
1
1
  module Saintly
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
 
4
4
  def self.sanitize(text)
5
+ return if text.nil?
5
6
  text.gsub(exclude_regex){|m| ALLOWED_WORDS.include?(m) ? m : '*' * m.length}
6
7
  end
7
8
 
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: 25
4
+ hash: 31
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Coyne