rtesseract 1.0.1 → 1.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dbda8dc2323560a32c4dc2d0a315e2da468b0bc9
4
- data.tar.gz: 86e1ab220a95da21d016d50e30e29c7ad3c631e1
3
+ metadata.gz: d0c0910b55321e347dae580af8e3402967ab538e
4
+ data.tar.gz: bb67c45edf51c59dfb8383d0321ea86b3da450d7
5
5
  SHA512:
6
- metadata.gz: b71d4de6d9c53ef72f51a2c22c41cc43a891afcfee8938176ced5f0930f674997144f0027b3e74ca1f0d73b551ed4889f497648e452ea43f3ba4b04b092e6631
7
- data.tar.gz: a738f677cedbd27256a7fbbb6d6a1bb90dced8d3fe3548822287ba4cd8f9b743c3c1a553bc070f04a674b53c144771f80eae0f2d89d2e43d4f88e984e3ec6268
6
+ metadata.gz: 71faaeeea40d9511a3f3e74b69168cd711c04e05bff2e84ca047652f7d38b80c188c3975a89b69ecc2c9c3b6cdc6504ce52a560449b254265929789c9ebbe17d
7
+ data.tar.gz: 7ec59ab1bd7e7011a8fa89b654f75de2065d2c38885d7de4783fe3706bca9757d97ef2b7b1ecfcb0e4b6f8ef86225776ac9d7009c9267a848c641131e2ddf2aa
data/.travis.yml ADDED
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 1.9.2
5
+ - 2.0.0
data/README.rdoc CHANGED
@@ -1,4 +1,5 @@
1
1
  = rtesseract
2
+ {<img src="https://badge.fury.io/rb/rtesseract.png" alt="Gem Version" />}[http://badge.fury.io/rb/rtesseract]
2
3
 
3
4
  Ruby library for working with the Tesseract OCR.
4
5
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
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
 
@@ -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 tmp_file.path.to_s
9
+ cat.write(tmp_file.path.to_s){self.compression = Magick::NoCompression}
9
10
  return tmp_file
10
11
  end
11
12
 
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  class RTesseract
2
3
  class Mixed
3
4
  def initialize(src="", options={})
data/lib/rtesseract.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require "pathname"
2
3
  require "tempfile"
3
4
 
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.1"
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-11-21"
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",
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
3
 
3
4
  describe "Rtesseract::Mixed" do
@@ -1,4 +1,5 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+ # encoding: UTF-8
2
3
  require 'pathname'
3
4
 
4
5
  describe "Rtesseract" do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # encoding: UTF-8
1
2
  $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
3
  $LOAD_PATH.unshift(File.dirname(__FILE__))
3
4
  require 'rspec'
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.1
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-21 00:00:00.000000000 Z
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