ocr_space 0.2.8.1 → 0.2.8.2

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: d307c51a47c8d24a8841dc7fb91c69e6ded50b08
4
- data.tar.gz: 818ce81415b49d521f39617722d3c3d3ca8320f7
3
+ metadata.gz: c28a6190c76b3fd6e878cddc7f36ed53bee25a76
4
+ data.tar.gz: 69be5b64ec056f5d25127eea6aaedc66a173d778
5
5
  SHA512:
6
- metadata.gz: 90d9e1af8655d9cf1fda95bcc93b28b8e265a89001ddce07dd839c340c6c1c991046f9686fa01a7f78e08cafb9130c3b8eda1926282c198c7ef95b596d7cf12a
7
- data.tar.gz: 9d84440183c42e822636245b628aa7cfba365e00d45dceb394af5f6fb5e229c898b1b024e0a3a867b3b54d10566b593c2e8a8383927e64357dacf09e53bc3db0
6
+ metadata.gz: 50309680a6a5bd8cfb2eb28c0f463181ade64a6084376d64074e1ef65667df4d43d315ce1f2a102e05d3af10ce1710065da2b5fe2894d73e13b3c453c1a3d185
7
+ data.tar.gz: 52cf2597180f4e9a5c8ef6be7d0ed0993c5d04fc86a004551b13d4a45d49a629950fa52ba3bfae52e82163ebd01c3f93aeaf633b861c0f2b9032da90190fc61b
data/README.md CHANGED
@@ -68,10 +68,7 @@ You can run ocr_space through shell to get quick result from a image using filep
68
68
  ```
69
69
  $ ocrspace home/suyesh/nicola_tesla.jpg
70
70
 
71
- => If you want to find the secrets of the
72
- universe, think in terms of energy,
73
- frequency and vibration.
74
- AZ QUOTES
71
+ => If you want to find the secrets of the universe, think in terms of energy, frequency and vibration. AZ QUOTES
75
72
 
76
73
  ```
77
74
  #NOTE
@@ -1,10 +1,9 @@
1
1
  require 'ocr_space/file_post'
2
- require 'fileutils'
3
2
 
4
3
  module OcrSpace
5
4
  class FromFile
6
5
  attr_reader :data
7
- def initialize(apikey: ENV['ocr_api_key'], language: 'eng', isOverlayRequired: false, files: nil, ocr_space: 'https://api.ocr.space/parse/image')
6
+ def initialize(apikey: ENV['ocr_api_key'], language: 'eng', isOverlayRequired: false, files: nil)
8
7
  @file = File.new(files)
9
8
  @data = OcrSpace::FilePost.post('/parse/image',
10
9
  body: { apikey: apikey,
@@ -4,7 +4,7 @@ module OcrSpace
4
4
  class FromUrl
5
5
  attr_reader :data
6
6
  def initialize(apikey: ENV['ocr_api_key'], language: 'eng', isOverlayRequired: false, url: nil, ocr_space: 'https://api.ocr.space/parse/image')
7
- @data = HTTParty.post('https://api.ocr.space/parse/image',
7
+ @data = HTTParty.post(ocr_space,
8
8
  body: { apikey: apikey,
9
9
  language: language,
10
10
  isOverlayRequired: isOverlayRequired,
@@ -1,3 +1,3 @@
1
1
  module OcrSpace
2
- VERSION = '0.2.8.1'.freeze
2
+ VERSION = '0.2.8.2'.freeze
3
3
  end
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.1
4
+ version: 0.2.8.2
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-26 00:00:00.000000000 Z
11
+ date: 2016-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler