aspose_ocr_cloud 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +11 -7
- data/lib/aspose_ocr_cloud/api_client.rb +1 -1
- data/lib/aspose_ocr_cloud/version.rb +1 -1
- data/test/ocr_tests.rb +1 -1
- metadata +3 -5
- data/test/data/Sampleocr.bmp +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6edde516a5535e3a8d109007423e6583214ebe65
|
4
|
+
data.tar.gz: 9530011c71e591e120064e7593c07d2c010b1c29
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53fd9244cadd090a6221681064cb0855fd8c99f56af0358d4c3c8853f3bfd5b91c8052bcd7103504f448a68d45d66c21a5f63fc3e39851fcca05c1eb5e7a5d61
|
7
|
+
data.tar.gz: 50d511489e9f2e289e64bcc200ddd44f63a5a411d5ba2d7d420b6797bfe4b6c7889de60ad2aa57a2928968e7655e1f5afde30dc8997452815d27aecee2955f7a
|
data/README.md
CHANGED
@@ -1,10 +1,16 @@
|
|
1
1
|
# Aspose.OCR Cloud SDK For Ruby
|
2
2
|
This SDK lets you use [Aspose Cloud OCR APIs](http://www.aspose.com/cloud/ocr-api.aspx) in your Ruby web apps.
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
<p align="center">
|
5
|
+
<a title="Download complete Aspose.OCR for Cloud source code" href="https://github.com/asposeocr/Aspose_ocr_Cloud/archive/master.zip">
|
6
|
+
<img src="https://raw.github.com/AsposeExamples/java-examples-dashboard/master/images/downloadZip-Button-Large.png" />
|
7
|
+
</a>
|
8
|
+
</p>
|
9
|
+
|
10
|
+
## How to use the SDK?
|
11
|
+
|
12
|
+
The complete source code is available in this repository folder, you can either directly use it in your project or use RubyGems. For more details, please visit our [documentation](http://www.aspose.com/docs/display/ocrcloud/Available+SDKs).
|
6
13
|
|
7
|
-
`gem install aspose_ocr_cloud`
|
8
14
|
|
9
15
|
## Usage
|
10
16
|
APIs of this SDK can be called as follows:
|
@@ -41,8 +47,6 @@ end
|
|
41
47
|
## Unit Tests
|
42
48
|
Aspose OCR SDK includes a suite of unit tests within the [test](https://github.com/asposeocr/Aspose_OCR_Cloud/blob/master/SDKs/Aspose.OCR_Cloud_SDK_for_Ruby/test/ocr_tests.rb) subdirectory. These Unit Tests also serves as examples of how to use the Aspose OCR SDK.
|
43
49
|
|
44
|
-
##
|
45
|
-
Your feedback is very important to us. Please
|
50
|
+
##Contact Us
|
51
|
+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://www.aspose.com/community/forums/).
|
46
52
|
|
47
|
-
## License
|
48
|
-
Aspose OCR SDK is available under the MIT license. See the [LICENSE](https://github.com/asposeocr/Aspose_OCR_Cloud/blob/master/SDKs/Aspose.OCR_Cloud_SDK_for_Ruby/LICENSE) file for more info.
|
@@ -227,7 +227,7 @@ module AsposeOCRCloud
|
|
227
227
|
# close and delete temp file
|
228
228
|
tmp_file.close!
|
229
229
|
|
230
|
-
File.open(path, '
|
230
|
+
File.open(path, 'wb') { |file| file.write(response.body) }
|
231
231
|
Configuration.logger.info "File written to #{path}. Please move the file to a proper "\
|
232
232
|
"folder for further processing and delete the temp afterwards"
|
233
233
|
File.new(path)
|
data/test/ocr_tests.rb
CHANGED
@@ -19,7 +19,7 @@ class OCRTests < Minitest::Test
|
|
19
19
|
|
20
20
|
def upload_file(file_name)
|
21
21
|
@storage_api = StorageApi.new
|
22
|
-
response = @storage_api.put_create(file_name, File.open("data/" << file_name,"r") { |io| io.read } )
|
22
|
+
response = @storage_api.put_create(file_name, File.open("../../../data/" << file_name,"r") { |io| io.read } )
|
23
23
|
assert(response, message="Failed to upload {file_name} file.")
|
24
24
|
end
|
25
25
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_ocr_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- M. Sohail Ismail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -100,7 +100,6 @@ files:
|
|
100
100
|
- lib/aspose_ocr_cloud/models/part_info.rb
|
101
101
|
- lib/aspose_ocr_cloud/models/parts_info.rb
|
102
102
|
- lib/aspose_ocr_cloud/version.rb
|
103
|
-
- test/data/Sampleocr.bmp
|
104
103
|
- test/ocr_tests.rb
|
105
104
|
homepage: http://www.aspose.com/cloud/ocr-api.aspx
|
106
105
|
licenses:
|
@@ -122,10 +121,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
122
121
|
version: '0'
|
123
122
|
requirements: []
|
124
123
|
rubyforge_project:
|
125
|
-
rubygems_version: 2.
|
124
|
+
rubygems_version: 2.6.8
|
126
125
|
signing_key:
|
127
126
|
specification_version: 4
|
128
127
|
summary: Aspose.OCR for Cloud
|
129
128
|
test_files:
|
130
|
-
- test/data/Sampleocr.bmp
|
131
129
|
- test/ocr_tests.rb
|
data/test/data/Sampleocr.bmp
DELETED
Binary file
|