text_parser 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,4 +1,3 @@
1
- :title: Text Parser Ruby Gem
2
1
  =Arguments
3
2
  * :dictionary => nil,
4
3
  * :order => :word,
@@ -6,7 +5,9 @@
6
5
  * :negative_dictionary => []
7
6
 
8
7
  =Usage
9
- "Simple, simple test".parse # => [{:word => "simple", :hits => 2}, {:word => "test", :hits => 1}]
8
+
9
+ "Simple, simple test".parse
10
+ # => [{:word => "simple", :hits => 2}, {:word => "test", :hits => 1}]
10
11
 
11
12
  my_text = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Pellentesque pretium consectetur."
12
13
  my_text.parse(:dictionary => ["dolor", "consectetur"])
@@ -15,6 +16,4 @@
15
16
  my_text.parse(:dictionary => ["dolor", "consectetur"], :order => :word, :order_direction => :desc)
16
17
  # => [{:word => "dolor", :hits => 1}, {:word => "consectetur", :hits => 2}]
17
18
 
18
-
19
-
20
19
 
data/lib/text_parser.rb CHANGED
@@ -24,4 +24,8 @@ module TextParser
24
24
  def process_text
25
25
  self.gsub(/[^\w\s\-]/, "")
26
26
  end
27
+ end
28
+
29
+ class String
30
+ include TextParser
27
31
  end
@@ -2,7 +2,7 @@ module TextParser
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = 1
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
data/text_parser.gemspec CHANGED
@@ -1,7 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "text_parser"
3
- s.version = "0.1.0"
3
+ s.version = "0.1.1"
4
4
  s.author = "Frederico de Paula"
5
5
  s.summary = "A easy way to parse text."
6
6
  s.files = Dir["{lib/**/*.rb,README.rdoc,test/**/*.rb,Rakefile,*.gemspec}"]
7
+ s.homepage = "https://github.com/fpaula/text_parser/"
7
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: text_parser
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Frederico de Paula
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-01 00:00:00 -02:00
18
+ date: 2011-12-02 00:00:00 -02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -28,7 +28,6 @@ extensions: []
28
28
  extra_rdoc_files: []
29
29
 
30
30
  files:
31
- - lib/string.rb
32
31
  - lib/text_parser/version.rb
33
32
  - lib/text_parser.rb
34
33
  - README.rdoc
@@ -36,7 +35,7 @@ files:
36
35
  - Rakefile
37
36
  - text_parser.gemspec
38
37
  has_rdoc: true
39
- homepage:
38
+ homepage: https://github.com/fpaula/text_parser/
40
39
  licenses: []
41
40
 
42
41
  post_install_message:
data/lib/string.rb DELETED
@@ -1,5 +0,0 @@
1
- require 'text_parser'
2
-
3
- class String
4
- include TextParser
5
- end