ocr_space 0.2.6 → 0.2.7

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: 7b6bdb8c6c360ce7f3267b5ede73bcef1491b86a
4
- data.tar.gz: dac528a9c68cc0860ac2db67f13c00c152459099
3
+ metadata.gz: 07c54f34c3ffbac769ca3e06aefeb84f87232a26
4
+ data.tar.gz: 0eb9021b0320048e05304753d717eaf05fd8c3d6
5
5
  SHA512:
6
- metadata.gz: 3eea6ed6133b0c14a702015a1d43777e4f595f629d945b77ed70c5d87811b57cf9b4f3df2471f1b635622aa3b49cf8cba8a923adc79d2d42ec9ef45bb6efd5d5
7
- data.tar.gz: 576aa66efdf0d5447d952f5175b82d577dcd0ac6798e23dfc2d19a13a5def4676c63a1e27480dbeb3b68736f3614e9316840f1db6e4e611f97d31415ce8fdb69
6
+ metadata.gz: 467bb9d9a9273adfcd43faa244ee0a417a22f31af47562a58ab2bd5ffefae6a0e6afdf6c13d64f43c1e5ba8437cdc4dafc368602338d1503460f14d87de760cb
7
+ data.tar.gz: 71f87d3e68891d7b63ed9ece7f5fccac63531e37e399aa3cb24d7f1a6ebca3c2bbc3b2c2d3dccc8c4854e650560fd5f9054df74e390b7e6747c7bb6da3a1b255
data/exe/ocrspace CHANGED
@@ -1,14 +1,15 @@
1
1
  # !/usr/bin/env ruby
2
+ require 'colorize'
2
3
 
3
4
  require_relative "../lib/ocr_space/from_file"
4
5
 
5
6
  if ARGV.empty?
6
- puts "You need to mention the image path"
7
+ puts "You need to mention the image path".colorize(:red)
7
8
  else
8
9
  begin
9
10
  result = OcrSpace::FromFile.new(files: ARGV[0])
10
- puts result.text_data
11
+ puts result.text_data.colorize(:orange)
11
12
  rescue
12
- puts "Something went wrong, Please try again."
13
+ puts "Something went wrong, Please try again.".colorize(:red)
13
14
  end
14
15
  end
@@ -1,3 +1,3 @@
1
1
  module OcrSpace
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
data/ocr_space.gemspec CHANGED
@@ -35,4 +35,5 @@ Gem::Specification.new do |spec|
35
35
  spec.add_dependency "json"
36
36
  spec.add_dependency "httparty"
37
37
  spec.add_dependency "httmultiparty"
38
+ spec.add_dependency 'colorize'
38
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocr_space
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suyesh Bhandari
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: colorize
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  description: 'Free Online OCR for Ruby - Convert images to text '
84
98
  email:
85
99
  - suyeshb@gmail.com