sad_panda 0.1.9 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
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 = message_text.gsub(/\s\s+/,' ')
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
@@ -1,3 +1,3 @@
1
1
  module SadPanda
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.9
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-07 00:00:00.000000000 Z
12
+ date: 2013-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler