rtesseract 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/processors/mini_magick.rb +3 -1
- data/rtesseract.gemspec +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f448efba206c34ef3b724c94cef32431e204c63d
|
4
|
+
data.tar.gz: e5dc7a8774b74c1905f173cc865ccca2529a9ec6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e946b231c93e453fe65464dfbd1ca2a460494fc4b07aefcfab0bc16eac7ad2f95ab23079af3b1c6a710c726704a5e8e3d9511fc7877736b96f26b5d52113772
|
7
|
+
data.tar.gz: 04b78ea1c989450a88d1b336c8981d9ee50c7520f96b4faa3593f3246acae8fa54a2fbe6768070f5e331b608e62c0e32e6cb8cf78051b363898a25d0176472dd
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.4
|
@@ -5,7 +5,9 @@ module MiniMagickProcessor
|
|
5
5
|
def image_to_tiff
|
6
6
|
tmp_file = Tempfile.new(["",".tif"])
|
7
7
|
cat = @instance || read_with_processor(@source.to_s)
|
8
|
-
cat.format("tif")
|
8
|
+
cat.format("tif") do |c|
|
9
|
+
c.compress "None"
|
10
|
+
end
|
9
11
|
cat.crop("#{@w}x#{@h}+#{@x}+#{@y}") unless [@x, @y, @w, @h].compact == []
|
10
12
|
cat.write tmp_file.path.to_s
|
11
13
|
return tmp_file
|
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.4"
|
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 = "
|
12
|
+
s.date = "2014-01-15"
|
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 = [
|
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.4
|
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:
|
11
|
+
date: 2014-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|