rtesseract 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/README.rdoc +1 -0
- data/VERSION +1 -1
- data/lib/processors/mini_magick.rb +2 -1
- data/lib/processors/rmagick.rb +2 -1
- data/lib/rtesseract/mixed.rb +1 -0
- data/lib/rtesseract.rb +1 -0
- data/rtesseract.gemspec +3 -2
- data/spec/rtesseract_mixed_spec.rb +1 -0
- data/spec/rtesseract_spec.rb +1 -0
- data/spec/spec_helper.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0c0910b55321e347dae580af8e3402967ab538e
|
4
|
+
data.tar.gz: bb67c45edf51c59dfb8383d0321ea86b3da450d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71faaeeea40d9511a3f3e74b69168cd711c04e05bff2e84ca047652f7d38b80c188c3975a89b69ecc2c9c3b6cdc6504ce52a560449b254265929789c9ebbe17d
|
7
|
+
data.tar.gz: 7ec59ab1bd7e7011a8fa89b654f75de2065d2c38885d7de4783fe3706bca9757d97ef2b7b1ecfcb0e4b6f8ef86225776ac9d7009c9267a848c641131e2ddf2aa
|
data/.travis.yml
ADDED
data/README.rdoc
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: UTF-8
|
1
2
|
require 'mini_magick'
|
2
3
|
module MiniMagickProcessor
|
3
4
|
extend self
|
@@ -6,7 +7,7 @@ module MiniMagickProcessor
|
|
6
7
|
cat = @instance || read_with_processor(@source.to_s)
|
7
8
|
cat.format("tif")
|
8
9
|
cat.crop("#{@w}x#{@h}+#{@x}+#{@y}") unless [@x, @y, @w, @h].compact == []
|
9
|
-
cat.write tmp_file.to_s
|
10
|
+
cat.write tmp_file.path.to_s
|
10
11
|
return tmp_file
|
11
12
|
end
|
12
13
|
|
data/lib/processors/rmagick.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# encoding: UTF-8
|
1
2
|
require "RMagick"
|
2
3
|
module RMagickProcessor
|
3
4
|
extend self
|
@@ -5,7 +6,7 @@ module RMagickProcessor
|
|
5
6
|
tmp_file = Tempfile.new(["",".tif"])
|
6
7
|
cat = @instance || Magick::Image.read(@source.to_s).first
|
7
8
|
cat.crop!(@x, @y, @w, @h) unless [@x, @y, @w, @h].compact == []
|
8
|
-
cat.write
|
9
|
+
cat.write(tmp_file.path.to_s){self.compression = Magick::NoCompression}
|
9
10
|
return tmp_file
|
10
11
|
end
|
11
12
|
|
data/lib/rtesseract/mixed.rb
CHANGED
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 = "rtesseract"
|
8
|
-
s.version = "1.0.
|
8
|
+
s.version = "1.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 = "2013-
|
12
|
+
s.date = "2013-12-09"
|
13
13
|
s.description = "Ruby library for working with the Tesseract OCR."
|
14
14
|
s.email = "dannnylo@gmail.com"
|
15
15
|
s.extra_rdoc_files = [
|
@@ -19,6 +19,7 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.files = [
|
20
20
|
".document",
|
21
21
|
".rspec",
|
22
|
+
".travis.yml",
|
22
23
|
"Gemfile",
|
23
24
|
"Gemfile.lock",
|
24
25
|
"LICENSE.txt",
|
data/spec/rtesseract_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
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.0.
|
4
|
+
version: 1.0.2
|
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: 2013-
|
11
|
+
date: 2013-12-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
@@ -104,6 +104,7 @@ extra_rdoc_files:
|
|
104
104
|
files:
|
105
105
|
- .document
|
106
106
|
- .rspec
|
107
|
+
- .travis.yml
|
107
108
|
- Gemfile
|
108
109
|
- Gemfile.lock
|
109
110
|
- LICENSE.txt
|