text_parser 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/text_parser.rb +1 -1
  2. data/text_parser.gemspec +1 -1
  3. metadata +2 -2
data/lib/text_parser.rb CHANGED
@@ -17,7 +17,7 @@ module TextParser
17
17
  return [] if options[:dictionary].count < 1
18
18
  regex = Regexp.new(options[:dictionary].join('\\b|\\b'), Regexp::IGNORECASE)
19
19
  match_result = text.scan(regex).map{|i| i.downcase}
20
- match_result.select!{|i| i.size >= options[:minimum_length]} if options[:minimum_length]
20
+ match_result = match_result.select{|i| i.size >= options[:minimum_length]} if options[:minimum_length]
21
21
  match_result.each do |w|
22
22
  result << {:hits => match_result.count(w), :word => w} unless result.select{|r| r[:word] == w}.shift || options[:negative_dictionary].map{|i| i.downcase}.include?(w)
23
23
  end
data/text_parser.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "text_parser"
3
- s.version = "0.1.7"
3
+ s.version = "0.1.8"
4
4
  s.author = "Frederico de Paula"
5
5
  s.email = "fpaula@gmail.com"
6
6
  s.summary = "A easy way to parse a text."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
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: 2011-12-19 00:00:00.000000000Z
12
+ date: 2011-12-20 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: Using method parse in the String object you can parse any text.
15
15
  email: fpaula@gmail.com