aspose_pdf_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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4dfe9ad456d9c33846ecc45efdb621e3de898f73
4
- data.tar.gz: cd0b099cec246aae2587c82757f3a02b6157ea9b
3
+ metadata.gz: 4889f65897dbbe87d6e7c3bebc0f8dc393a2d2ec
4
+ data.tar.gz: ccfd88ed8b80aa46b3ee35d62aabf7e34ed44137
5
5
  SHA512:
6
- metadata.gz: d8df0951ef5224680f7dc74b25d7d581b0a5b6e4fc27d8940e585172c4f83970c252b2d00cda8483038bf10ac340fc3a94fc4df334086913bcb5be2798898278
7
- data.tar.gz: 3b105708c044d83073f7a26c48940dace1d3919670bd8cbbd3d365c7f661c5a44782a387222f60666a59f293ec5e35b52155f08d4092a5ba075b972a74a93290
6
+ metadata.gz: e8bfe679b03de54b651a76c27535a567516128596e9a4dd506f3709eca479539225aca9cd1890f958c12c1a115eee3521fcae89436bb1c2790344d436c0eeade
7
+ data.tar.gz: 461190ec44191e84fb42e4205061a475a3acb884be321adfc3b4f6096bc6bcd896257d6bab87a5347d245fbc53527d960158eb943cb6484ddc0d4ce3676d07f0
data/README.md CHANGED
@@ -1,10 +1,14 @@
1
1
  # Aspose.Pdf Cloud SDK For Ruby
2
2
  This SDK lets you use [Aspose Cloud PDF APIs](http://www.aspose.com/cloud/pdf-api.aspx) in your web apps.
3
3
 
4
- ## Installing
5
- You can simply install AsposePDFCloud with gem:
4
+ <p align="center">
5
+ <a title="Download complete Aspose.PDF for Cloud source code" href="https://github.com/asposepdf/Aspose_pdf_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>
6
9
 
7
- `gem install aspose_pdf_cloud`
10
+ ##How to Use the SDK?
11
+ 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 website](http://www.aspose.com/docs/display/pdfcloud/Available+SDKs).
8
12
 
9
13
  ## Usage
10
14
  APIs of this SDK can be called as follows:
@@ -34,8 +38,6 @@ end
34
38
  ## Unit Tests
35
39
  Aspose PDF SDK includes a suite of unit tests within the [test](https://github.com/asposepdf/Aspose_Pdf_Cloud/blob/master/SDKs/Aspose.Pdf_Cloud_SDK_for_Ruby/test/pdf_tests.rb) subdirectory. These Unit Tests also serves as examples of how to use the Aspose PDF SDK.
36
40
 
37
- ## Contact
38
- Your feedback is very important to us. Please email us all your queries and feedback at marketplace@aspose.com.
41
+ ##Contact Us
42
+ Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://www.aspose.com/community/forums/).
39
43
 
40
- ## License
41
- Aspose PDF SDK is available under the MIT license. See the [LICENSE](https://github.com/asposepdf/Aspose_Pdf_Cloud/blob/master/SDKs/Aspose.Pdf_Cloud_SDK_for_Ruby/LICENSE) file for more info.
@@ -227,7 +227,7 @@ module AsposePDFCloud
227
227
  # close and delete temp file
228
228
  tmp_file.close!
229
229
 
230
- File.open(path, 'w') { |file| file.write(response.body) }
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)
@@ -1,3 +1,3 @@
1
1
  module AsposePDFCloud
2
- VERSION = "1.0.1"
2
+ VERSION = "1.0.2"
3
3
  end
@@ -19,14 +19,14 @@ class PDFTests < 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
 
26
26
  def test_put_convert_document
27
27
  file_name = "Sample.pdf"
28
28
 
29
- response = @pdf_api.put_convert_document(File.open("data/" << file_name,"r") { |io| io.read }, {format: "tiff"})
29
+ response = @pdf_api.put_convert_document(File.open("../../../data/" << file_name,"r") { |io| io.read }, {format: "doc"})
30
30
  assert(response, message="Failed to convert document from request content to format specified")
31
31
  end
32
32
 
@@ -34,7 +34,7 @@ class PDFTests < Minitest::Test
34
34
  file_name = "Sample.pdf"
35
35
  upload_file(file_name)
36
36
 
37
- format = "doc"
37
+ format = "html"
38
38
  response = @pdf_api.get_document_with_format(file_name, format)
39
39
  assert(response, message="Failed to convert document to specified format")
40
40
  end
@@ -620,4 +620,4 @@ class PDFTests < Minitest::Test
620
620
  assert(response, message="Failed to read document image by number.")
621
621
  end
622
622
 
623
- end
623
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_pdf_cloud
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
  - M. Sohail Ismail
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-09 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -157,21 +157,6 @@ files:
157
157
  - lib/aspose_pdf_cloud/models/word_count.rb
158
158
  - lib/aspose_pdf_cloud/models/word_count_response.rb
159
159
  - lib/aspose_pdf_cloud/version.rb
160
- - test/data/Sample-Annotation-Property.pdf
161
- - test/data/Sample-Annotation.pdf
162
- - test/data/Sample-Bookmark.pdf
163
- - test/data/Sample.pdf
164
- - test/data/SampleAttachment.pdf
165
- - test/data/SampleBarCodeImage.pdf
166
- - test/data/SampleImage.pdf
167
- - test/data/aspose-cloud.png
168
- - test/data/pkc7-sample.pfx
169
- - test/data/sample-field.pdf
170
- - test/data/sample-home.jpg
171
- - test/data/sample-input-2.pdf
172
- - test/data/sample-input.pdf
173
- - test/data/sample-merged.pdf
174
- - test/data/sample.tiff
175
160
  - test/pdf_tests.rb
176
161
  homepage: http://www.aspose.com/cloud/pdf-api.aspx
177
162
  licenses:
@@ -193,24 +178,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
178
  version: '0'
194
179
  requirements: []
195
180
  rubyforge_project:
196
- rubygems_version: 2.5.1
181
+ rubygems_version: 2.6.8
197
182
  signing_key:
198
183
  specification_version: 4
199
184
  summary: Aspose.Pdf for Cloud
200
185
  test_files:
201
- - test/data/Sample-Annotation-Property.pdf
202
- - test/data/Sample-Annotation.pdf
203
- - test/data/Sample-Bookmark.pdf
204
- - test/data/Sample.pdf
205
- - test/data/SampleAttachment.pdf
206
- - test/data/SampleBarCodeImage.pdf
207
- - test/data/SampleImage.pdf
208
- - test/data/aspose-cloud.png
209
- - test/data/pkc7-sample.pfx
210
- - test/data/sample-field.pdf
211
- - test/data/sample-home.jpg
212
- - test/data/sample-input-2.pdf
213
- - test/data/sample-input.pdf
214
- - test/data/sample-merged.pdf
215
- - test/data/sample.tiff
216
186
  - test/pdf_tests.rb
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file