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 +3 -4
- data/lib/text_parser.rb +4 -0
- data/lib/text_parser/version.rb +1 -1
- data/text_parser.gemspec +2 -1
- metadata +5 -6
- data/lib/string.rb +0 -5
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
|
-
|
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
data/lib/text_parser/version.rb
CHANGED
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.
|
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:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
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-
|
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:
|