rtesseract 1.2.2 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +35 -29
- data/VERSION +1 -1
- data/lib/rtesseract/mixed.rb +2 -2
- data/rtesseract.gemspec +4 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 289089ba85c97772c7a7ce7c37cc57d543403ccf
|
4
|
+
data.tar.gz: d7c5a0630399a4a29299e68f3063554925129a23
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e6aa15578ac98e45469f423dbfd8568b99716519274094f7a582c92deac6c2b60627034a9ad05a5f1ddad34979fcc59b189d2a68d8a18cdf95fc66fc11c6c81
|
7
|
+
data.tar.gz: d34561a264b2725d192fbafe41856cf107c41df810238ad0b460526da3b14b0f517ccd120d650cb602f426f7886c17d2e59e7463f14d398d5644ac9f36131e97
|
data/Gemfile.lock
CHANGED
@@ -3,7 +3,7 @@ GEM
|
|
3
3
|
specs:
|
4
4
|
addressable (2.3.6)
|
5
5
|
builder (3.2.2)
|
6
|
-
coveralls (0.7.
|
6
|
+
coveralls (0.7.1)
|
7
7
|
multi_json (~> 1.3)
|
8
8
|
rest-client
|
9
9
|
simplecov (>= 0.7)
|
@@ -11,20 +11,20 @@ GEM
|
|
11
11
|
thor
|
12
12
|
descendants_tracker (0.0.4)
|
13
13
|
thread_safe (~> 0.3, >= 0.3.1)
|
14
|
-
diff-lcs (1.
|
15
|
-
docile (1.1.
|
14
|
+
diff-lcs (1.2.5)
|
15
|
+
docile (1.1.5)
|
16
16
|
faraday (0.9.0)
|
17
17
|
multipart-post (>= 1.2, < 3)
|
18
|
-
git (1.2.
|
19
|
-
github_api (0.
|
18
|
+
git (1.2.8)
|
19
|
+
github_api (0.12.1)
|
20
20
|
addressable (~> 2.3)
|
21
|
-
descendants_tracker (~> 0.0.
|
21
|
+
descendants_tracker (~> 0.0.4)
|
22
22
|
faraday (~> 0.8, < 0.10)
|
23
|
-
hashie (>=
|
23
|
+
hashie (>= 3.2)
|
24
24
|
multi_json (>= 1.7.5, < 2.0)
|
25
|
-
nokogiri (~> 1.6.
|
25
|
+
nokogiri (~> 1.6.3)
|
26
26
|
oauth2
|
27
|
-
hashie (3.
|
27
|
+
hashie (3.2.0)
|
28
28
|
highline (1.6.21)
|
29
29
|
jeweler (2.0.1)
|
30
30
|
builder
|
@@ -37,16 +37,17 @@ GEM
|
|
37
37
|
rdoc
|
38
38
|
json (1.8.1)
|
39
39
|
jwt (1.0.0)
|
40
|
-
mime-types (2.
|
41
|
-
mini_magick (3.
|
40
|
+
mime-types (2.3)
|
41
|
+
mini_magick (3.8.0)
|
42
42
|
subexec (~> 0.2.1)
|
43
43
|
mini_portile (0.6.0)
|
44
44
|
multi_json (1.10.1)
|
45
45
|
multi_xml (0.5.5)
|
46
46
|
multipart-post (2.0.0)
|
47
|
-
|
47
|
+
netrc (0.7.7)
|
48
|
+
nokogiri (1.6.3.1)
|
48
49
|
mini_portile (= 0.6.0)
|
49
|
-
oauth2 (0.
|
50
|
+
oauth2 (1.0.0)
|
50
51
|
faraday (>= 0.8, < 0.10)
|
51
52
|
jwt (~> 1.0)
|
52
53
|
multi_json (~> 1.3)
|
@@ -57,28 +58,33 @@ GEM
|
|
57
58
|
rake (10.3.2)
|
58
59
|
rdoc (4.1.1)
|
59
60
|
json (~> 1.4)
|
60
|
-
rest-client (1.
|
61
|
-
mime-types (>= 1.16)
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
rspec-
|
66
|
-
rspec-
|
67
|
-
|
68
|
-
rspec-
|
69
|
-
|
70
|
-
rspec-
|
71
|
-
|
61
|
+
rest-client (1.7.2)
|
62
|
+
mime-types (>= 1.16, < 3.0)
|
63
|
+
netrc (~> 0.7)
|
64
|
+
rmagick (2.13.3)
|
65
|
+
rspec (3.0.0)
|
66
|
+
rspec-core (~> 3.0.0)
|
67
|
+
rspec-expectations (~> 3.0.0)
|
68
|
+
rspec-mocks (~> 3.0.0)
|
69
|
+
rspec-core (3.0.4)
|
70
|
+
rspec-support (~> 3.0.0)
|
71
|
+
rspec-expectations (3.0.4)
|
72
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
+
rspec-support (~> 3.0.0)
|
74
|
+
rspec-mocks (3.0.4)
|
75
|
+
rspec-support (~> 3.0.0)
|
76
|
+
rspec-support (3.0.4)
|
77
|
+
simplecov (0.9.0)
|
72
78
|
docile (~> 1.1.0)
|
73
79
|
multi_json
|
74
80
|
simplecov-html (~> 0.8.0)
|
75
81
|
simplecov-html (0.8.0)
|
76
82
|
subexec (0.2.3)
|
77
|
-
term-ansicolor (1.
|
78
|
-
tins (~> 0
|
79
|
-
thor (0.
|
83
|
+
term-ansicolor (1.3.0)
|
84
|
+
tins (~> 1.0)
|
85
|
+
thor (0.19.1)
|
80
86
|
thread_safe (0.3.4)
|
81
|
-
tins (
|
87
|
+
tins (1.3.1)
|
82
88
|
|
83
89
|
PLATFORMS
|
84
90
|
ruby
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.2.
|
1
|
+
1.2.3
|
data/lib/rtesseract/mixed.rb
CHANGED
@@ -23,7 +23,7 @@ class RTesseract
|
|
23
23
|
|
24
24
|
# Convert parts of image to string
|
25
25
|
def convert
|
26
|
-
@value =
|
26
|
+
@value = []
|
27
27
|
@areas.each_with_object(RTesseract.new(@source.to_s, @options.dup)) do |area, image|
|
28
28
|
image.crop!(area[:x], area[:y], area[:width], area[:height])
|
29
29
|
@value << image.to_s
|
@@ -37,7 +37,7 @@ class RTesseract
|
|
37
37
|
return @value if @value != ''
|
38
38
|
if @source.file?
|
39
39
|
convert
|
40
|
-
@value
|
40
|
+
@value.join
|
41
41
|
else
|
42
42
|
fail RTesseract::ImageNotSelectedError.new(@source)
|
43
43
|
end
|
data/rtesseract.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: rtesseract 1.2.
|
5
|
+
# stub: rtesseract 1.2.3 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "rtesseract"
|
9
|
-
s.version = "1.2.
|
9
|
+
s.version = "1.2.3"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Danilo Jeremias da Silva"]
|
14
|
-
s.date = "2014-
|
14
|
+
s.date = "2014-08-18"
|
15
15
|
s.description = "Ruby library for working with the Tesseract OCR."
|
16
16
|
s.email = "dannnylo@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
@@ -49,7 +49,7 @@ Gem::Specification.new do |s|
|
|
49
49
|
]
|
50
50
|
s.homepage = "http://github.com/dannnylo/rtesseract"
|
51
51
|
s.licenses = ["MIT"]
|
52
|
-
s.rubygems_version = "2.2.
|
52
|
+
s.rubygems_version = "2.2.1"
|
53
53
|
s.summary = "Ruby library for working with the Tesseract OCR."
|
54
54
|
|
55
55
|
if s.respond_to? :specification_version then
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rtesseract
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danilo Jeremias da Silva
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -149,7 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
requirements: []
|
151
151
|
rubyforge_project:
|
152
|
-
rubygems_version: 2.2.
|
152
|
+
rubygems_version: 2.2.1
|
153
153
|
signing_key:
|
154
154
|
specification_version: 4
|
155
155
|
summary: Ruby library for working with the Tesseract OCR.
|