sad_panda 0.1.9 → 0.2.0
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/lib/sad_panda.rb +2 -1
- data/lib/sad_panda/version.rb +1 -1
- metadata +2 -2
data/lib/sad_panda.rb
CHANGED
|
@@ -32,7 +32,8 @@ module SadPanda
|
|
|
32
32
|
end
|
|
33
33
|
|
|
34
34
|
message_text = @message.gsub(/[^a-z ]/i, '').downcase
|
|
35
|
-
message_text
|
|
35
|
+
message_text.gsub!(/(?=\w*h)(?=\w*t)(?=\w*t)(?=\w*p)\w*/, '')
|
|
36
|
+
message_text.gsub!(/\s\s+/,' ')
|
|
36
37
|
words = message_text.split(" ")
|
|
37
38
|
|
|
38
39
|
#filter for english stopwords
|
data/lib/sad_panda/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sad_panda
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2013-06-
|
|
12
|
+
date: 2013-06-21 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|