svxbox 0.0.11 → 0.0.12
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/Rakefile +2 -0
- data/VERSION +1 -1
- data/lib/svxbox/lexicali.rb +1 -1
- data/lib/svxbox/sinatricus.rb +1 -1
- metadata +2 -2
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.12
|
data/lib/svxbox/lexicali.rb
CHANGED
@@ -13,7 +13,7 @@ module SvxBox
|
|
13
13
|
# given a string, it create a hash of each word and the number of times
|
14
14
|
# each word occurs in the text
|
15
15
|
def svxwc(wstring)
|
16
|
-
return
|
16
|
+
return unless wstring.is_a?(String)
|
17
17
|
h = Hash.new(0)
|
18
18
|
wstring.downcase!
|
19
19
|
wstring.gsub!(%q{'s },' ')
|
data/lib/svxbox/sinatricus.rb
CHANGED