rtesseract 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +22 -5
- data/Rakefile +3 -2
- data/lib/rtesseract.rb +1 -1
- data/rtesseract.gemspec +3 -3
- data/test/helper.rb +1 -0
- data/test/test_rtesseract.rb +2 -0
- metadata +5 -5
data/README.rdoc
CHANGED
@@ -9,16 +9,33 @@ To work properly rtesseract are needed:
|
|
9
9
|
* ImageMagic - Program
|
10
10
|
* RMagick - Gem
|
11
11
|
|
12
|
+
== EXAMPLE USAGE
|
13
|
+
|
14
|
+
It's very simple to use rtesseract:
|
15
|
+
|
16
|
+
=== CONVERT IMAGE TO STRING
|
17
|
+
|
18
|
+
image = RTesseract.new("my_image.jpg")
|
19
|
+
image.to_s #Getting the value
|
20
|
+
|
21
|
+
=== CHANGE THE IMAGE
|
22
|
+
|
23
|
+
image = RTesseract.new("my_image.jpg")
|
24
|
+
image.source = "new_image.png"
|
25
|
+
image.to_s
|
26
|
+
|
12
27
|
== Note on Patches/Pull Requests
|
13
|
-
|
28
|
+
|
14
29
|
* Fork the project.
|
15
30
|
* Make your feature addition or bug fix.
|
16
|
-
* Add tests for it. This is important so I don't break it in a
|
17
|
-
future version unintentionally.
|
18
|
-
* Commit, do not mess with rakefile, version, or history.
|
19
|
-
(if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
|
20
31
|
* Send me a pull request. Bonus points for topic branches.
|
21
32
|
|
33
|
+
== Links
|
34
|
+
|
35
|
+
* Github - http://github.com/dannnylo/rtesseract
|
36
|
+
* Rubygems - http://rubygems.org/gems/rtesseract
|
37
|
+
|
22
38
|
== Copyright
|
23
39
|
|
24
40
|
Copyright (c) 2010 Danilo Jeremias da Silva. See LICENSE for details.
|
41
|
+
|
data/Rakefile
CHANGED
@@ -5,14 +5,14 @@ begin
|
|
5
5
|
require 'jeweler'
|
6
6
|
Jeweler::Tasks.new do |gem|
|
7
7
|
gem.name = "rtesseract"
|
8
|
-
gem.version = '0.0.
|
8
|
+
gem.version = '0.0.2'
|
9
9
|
gem.summary = "Ruby library for working with the Tesseract OCR."
|
10
10
|
gem.description = "Ruby library for working with the Tesseract OCR."
|
11
11
|
gem.email = "dannnylo@gmail.com"
|
12
12
|
gem.homepage = "http://github.com/dannnylo/rtesseract"
|
13
13
|
gem.authors = ["Danilo Jeremias da Silva"]
|
14
14
|
gem.add_development_dependency "thoughtbot-shoulda", ">= 0"
|
15
|
-
gem.
|
15
|
+
gem.add_runtime_dependency "rmagick", '>= 2.13.1'
|
16
16
|
end
|
17
17
|
Jeweler::GemcutterTasks.new
|
18
18
|
rescue LoadError
|
@@ -52,3 +52,4 @@ Rake::RDocTask.new do |rdoc|
|
|
52
52
|
rdoc.rdoc_files.include('README*')
|
53
53
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
54
54
|
end
|
55
|
+
|
data/lib/rtesseract.rb
CHANGED
data/rtesseract.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{rtesseract}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Danilo Jeremias da Silva"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-09-10}
|
13
13
|
s.description = %q{Ruby library for working with the Tesseract OCR.}
|
14
14
|
s.email = %q{dannnylo@gmail.com}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
|
44
44
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
45
45
|
s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
46
|
-
s.
|
46
|
+
s.add_runtime_dependency(%q<rmagick>, [">= 2.13.1"])
|
47
47
|
else
|
48
48
|
s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
|
49
49
|
s.add_dependency(%q<rmagick>, [">= 2.13.1"])
|
data/test/helper.rb
CHANGED
data/test/test_rtesseract.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtesseract
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Danilo Jeremias da Silva
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-09-10 00:00:00 -03:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -46,7 +46,7 @@ dependencies:
|
|
46
46
|
- 13
|
47
47
|
- 1
|
48
48
|
version: 2.13.1
|
49
|
-
type: :
|
49
|
+
type: :runtime
|
50
50
|
version_requirements: *id002
|
51
51
|
description: Ruby library for working with the Tesseract OCR.
|
52
52
|
email: dannnylo@gmail.com
|