classyfier 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -106,7 +106,7 @@ module Classyfier
106
106
  end
107
107
 
108
108
  unless !opts[:text]
109
- chunks = opts[:text].split(" ")
109
+ chunks = opts[:text].split(/[,\s]/)
110
110
  for word in chunks
111
111
  cleanword = clean_word(word.downcase)
112
112
 
@@ -116,6 +116,8 @@ module Classyfier
116
116
  return @codes[state] if state
117
117
  end
118
118
  end
119
+
120
+ return nil
119
121
  end
120
122
 
121
123
  protected
@@ -1,3 +1,3 @@
1
1
  module Classyfier
2
- VERSION = "0.1.4"
2
+ VERSION = "0.1.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: classyfier
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: