ocr_space 0.2.8.2 → 0.2.8.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: c28a6190c76b3fd6e878cddc7f36ed53bee25a76
4
- data.tar.gz: 69be5b64ec056f5d25127eea6aaedc66a173d778
3
+ metadata.gz: 6687999fbeae8360ae4329d86622fb66b1117f5d
4
+ data.tar.gz: 256df82ba753776f5265e1a2da819c155aa94ae4
5
5
  SHA512:
6
- metadata.gz: 50309680a6a5bd8cfb2eb28c0f463181ade64a6084376d64074e1ef65667df4d43d315ce1f2a102e05d3af10ce1710065da2b5fe2894d73e13b3c453c1a3d185
7
- data.tar.gz: 52cf2597180f4e9a5c8ef6be7d0ed0993c5d04fc86a004551b13d4a45d49a629950fa52ba3bfae52e82163ebd01c3f93aeaf633b861c0f2b9032da90190fc61b
6
+ metadata.gz: d102f2da5071aaf421fe76c8e7260da62a708a3bcb0915c8ec0a7416876282910b3318c3c4520e9a213e4859f730082429ba18533e7218178eb3dbe8c0e81ea3
7
+ data.tar.gz: 4e3dea76cee240a3f398df315bea81df7b4daac698a5736370edbe28589e87fcb57c9b5ea55934346e8ebc56520d7660f0015045131f6cb926cca7c2b54338e3
data/README.md CHANGED
@@ -49,7 +49,7 @@ puts result.text_data #Clean result
49
49
  ```ruby
50
50
  require 'ocr_space'
51
51
 
52
- result = OcrSpace::FromFile.new(apikey: "YOUR API KEY", files: "./nicola_tesla.jpg")
52
+ result = OcrSpace::FromFile.new(apikey: "YOUR API KEY", files: "/Users/suyesh/Desktop/nicola_tesla.jpg")
53
53
 
54
54
  puts result.data #Raw result
55
55
 
@@ -66,7 +66,7 @@ puts result.text_data #Clean result
66
66
  You can run ocr_space through shell to get quick result from a image using filepath
67
67
 
68
68
  ```
69
- $ ocrspace home/suyesh/nicola_tesla.jpg
69
+ $ ocrspace /Users/suyesh/Desktop/nicola_tesla.jpg
70
70
 
71
71
  => If you want to find the secrets of the universe, think in terms of energy, frequency and vibration. AZ QUOTES
72
72
 
@@ -0,0 +1,27 @@
1
+ module OcrSpace
2
+ class Banner
3
+ def initialize(env = ENV)
4
+ @env = env
5
+ end
6
+
7
+ def to_s
8
+ ocr_space_banner
9
+ end
10
+
11
+ private
12
+
13
+ def ocr_space_banner
14
+ %q{
15
+
16
+ _______ _______ _______ _______ _______ _______ _______ _______
17
+ ( ___ )( ____ \( ____ ) ( ____ \( ____ )( ___ )( ____ \( ____ \
18
+ | ( ) || ( \/| ( )| | ( \/| ( )|| ( ) || ( \/| ( \/
19
+ | | | || | | (____)| | (_____ | (____)|| (___) || | | (__
20
+ | | | || | | __) (_____ )| _____)| ___ || | | __)
21
+ | | | || | | (\ ( ) || ( | ( ) || | | (
22
+ | (___) || (____/\| ) \ \__ _ /\____) || ) | ) ( || (____/\| (____/\
23
+ (_______)(_______/|/ \__/(_)\_______)|/ |/ \|(_______/(_______/
24
+ }
25
+ end
26
+ end
27
+ end
@@ -1,3 +1,3 @@
1
1
  module OcrSpace
2
- VERSION = '0.2.8.2'.freeze
2
+ VERSION = '0.2.8.3'.freeze
3
3
  end
data/lib/ocr_space.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  require 'ocr_space/version'
2
2
  require 'ocr_space/from_url'
3
3
  require 'ocr_space/from_file'
4
+ require 'ocr_space/banner'
data/ocr_space.gemspec CHANGED
@@ -2,6 +2,7 @@
2
2
  lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'ocr_space/version'
5
+ require 'ocr_space/banner'
5
6
 
6
7
  Gem::Specification.new do |spec|
7
8
  spec.name = 'ocr_space'
@@ -29,6 +30,7 @@ Gem::Specification.new do |spec|
29
30
  spec.bindir = 'exe'
30
31
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
32
  spec.require_paths = ['lib']
33
+ spec.post_install_message = OcrSpace::Banner.new.to_s
32
34
 
33
35
  spec.add_development_dependency 'bundler', '~> 1.13'
34
36
  spec.add_development_dependency 'rake', '~> 10.0'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocr_space
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8.2
4
+ version: 0.2.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Suyesh Bhandari
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-27 00:00:00.000000000 Z
11
+ date: 2017-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,6 +113,7 @@ files:
113
113
  - bin/setup
114
114
  - exe/ocrspace
115
115
  - lib/ocr_space.rb
116
+ - lib/ocr_space/banner.rb
116
117
  - lib/ocr_space/file_post.rb
117
118
  - lib/ocr_space/from_file.rb
118
119
  - lib/ocr_space/from_url.rb
@@ -123,7 +124,16 @@ licenses:
123
124
  - MIT
124
125
  metadata:
125
126
  allowed_push_host: https://rubygems.org
126
- post_install_message:
127
+ post_install_message: "\n\n _______ _______ _______ _______ _______
128
+ \ _______ _______ _______\n ( ___ )( ____ \\( ____ ) ( ____
129
+ \\( ____ )( ___ )( ____ \\( ____ \\\n | ( ) || ( \\/| ( )|
130
+ \ | ( \\/| ( )|| ( ) || ( \\/| ( \\/\n | | | || |
131
+ \ | (____)| | (_____ | (____)|| (___) || | | (__\n | | |
132
+ || | | __) (_____ )| _____)| ___ || | | __)\n |
133
+ | | || | | (\\ ( ) || ( | ( ) || | | (\n |
134
+ (___) || (____/\\| ) \\ \\__ _ /\\____) || ) | ) ( || (____/\\| (____/\\\n
135
+ \ (_______)(_______/|/ \\__/(_)\\_______)|/ |/ \\|(_______/(_______/\n
136
+ \ "
127
137
  rdoc_options: []
128
138
  require_paths:
129
139
  - lib