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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bff852efe41047726ea1a68ef50438e4656f6765
4
- data.tar.gz: 134b056d3ccb8a57c8292339e6b9c72d4d5d25bd
3
+ metadata.gz: 289089ba85c97772c7a7ce7c37cc57d543403ccf
4
+ data.tar.gz: d7c5a0630399a4a29299e68f3063554925129a23
5
5
  SHA512:
6
- metadata.gz: 39150133cb08807e1ee4d86f6f176748d6056e83c3084339fad2c3d83af833107cf371c124650af56550783916cb5a173234ed15736abbb4017d38c250ced14e
7
- data.tar.gz: 07d19dd13c1ad7e4f285eb9cbc448d785f7f2af6718eecb9eb0c6ea36a28d856706f1e5be78da08ec21732276d5f7378b144c81d4d73f4aae5127c5e01eabfa7
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.0)
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.1.3)
15
- docile (1.1.3)
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.7)
19
- github_api (0.11.3)
18
+ git (1.2.8)
19
+ github_api (0.12.1)
20
20
  addressable (~> 2.3)
21
- descendants_tracker (~> 0.0.1)
21
+ descendants_tracker (~> 0.0.4)
22
22
  faraday (~> 0.8, < 0.10)
23
- hashie (>= 1.2)
23
+ hashie (>= 3.2)
24
24
  multi_json (>= 1.7.5, < 2.0)
25
- nokogiri (~> 1.6.0)
25
+ nokogiri (~> 1.6.3)
26
26
  oauth2
27
- hashie (3.0.0)
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.1)
41
- mini_magick (3.7.0)
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
- nokogiri (1.6.2.1)
47
+ netrc (0.7.7)
48
+ nokogiri (1.6.3.1)
48
49
  mini_portile (= 0.6.0)
49
- oauth2 (0.9.4)
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.6.7)
61
- mime-types (>= 1.16)
62
- rmagick (2.13.2)
63
- rspec (2.8.0)
64
- rspec-core (~> 2.8.0)
65
- rspec-expectations (~> 2.8.0)
66
- rspec-mocks (~> 2.8.0)
67
- rspec-core (2.8.0)
68
- rspec-expectations (2.8.0)
69
- diff-lcs (~> 1.1.2)
70
- rspec-mocks (2.8.0)
71
- simplecov (0.8.2)
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.2.2)
78
- tins (~> 0.8)
79
- thor (0.18.1)
83
+ term-ansicolor (1.3.0)
84
+ tins (~> 1.0)
85
+ thor (0.19.1)
80
86
  thread_safe (0.3.4)
81
- tins (0.13.2)
87
+ tins (1.3.1)
82
88
 
83
89
  PLATFORMS
84
90
  ruby
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
@@ -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.2 ruby lib
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.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-07-02"
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.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.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-07-02 00:00:00.000000000 Z
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.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.