svxbox 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- 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