aspose_slides_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 +12 -10
- data/lib/aspose_slides_cloud/api_client.rb +1 -1
- data/lib/aspose_slides_cloud/configuration.rb +1 -1
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/test/slides_tests.rb +6 -6
- metadata +3 -15
- data/test/data/ReadMe.html +0 -48
- data/test/data/Test.html +0 -6
- data/test/data/demo.pptx +0 -0
- data/test/data/sample-input.pptx +0 -0
- data/test/data/sample.pptx +0 -0
- data/test/data/welcome.pptx +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5abfa2fb7bc7c233102ac09b201645ba0ea1994
|
4
|
+
data.tar.gz: 4ba6df70558d4c95f82f9f6039c946a74f60ca24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2726b9abbf2f57f8e5bcb9dead21279647311e9666a06b16b4530546734b64d49ad1922838cd027e758148912ae97ee81ddba68fa3fb04a01390cd4a88fbe572
|
7
|
+
data.tar.gz: 01822425f0d4d7081a58075dd5fcd4d73f9c7c4f906c9a3791739051d25d07ae93026bd6d0c466578ec95c10d7f9bc43c37d6336579d7ae72fda8da98d18e172
|
data/README.md
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
# Aspose.Slides Cloud SDK For Ruby
|
2
|
-
This SDK lets you use [Aspose Cloud Slides APIs](
|
2
|
+
This SDK lets you use [Aspose Cloud Slides APIs](https://www.aspose.com/products/slides/cloud) in your web apps.
|
3
3
|
|
4
|
-
|
5
|
-
|
4
|
+
<p align="center">
|
5
|
+
<a title="Download complete Aspose.Slides for Cloud source code" href="https://github.com/asposeslides/Aspose_slides_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
|
+
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](https://docs.aspose.com/display/slidescloud/Available+SDKs).
|
6
12
|
|
7
|
-
`gem install aspose_slides_cloud`
|
8
13
|
|
9
14
|
## Usage
|
10
15
|
APIs of this SDK can be called as follows:
|
@@ -33,10 +38,7 @@ class SlidesUsage
|
|
33
38
|
end
|
34
39
|
```
|
35
40
|
## Unit Tests
|
36
|
-
Aspose Slides SDK includes a suite of unit tests within the [test](https://github.com/
|
37
|
-
|
38
|
-
## Contact
|
39
|
-
Your feedback is very important to us. Please email us all your queries and feedback at marketplace@aspose.com.
|
41
|
+
Aspose Slides SDK includes a suite of unit tests within the [test](https://github.com/aspose-slides/Aspose.Slides-for-Cloud/blob/master/SDKs/Aspose.Slides-Cloud-SDK-for-Ruby/test/slides_tests.rb) subdirectory. These Unit Tests also serves as examples of how to use the Aspose Slides SDK.
|
40
42
|
|
41
|
-
##
|
42
|
-
|
43
|
+
## Contact Us
|
44
|
+
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://www.aspose.com/community/forums/).
|
@@ -227,7 +227,7 @@ module AsposeSlidesCloud
|
|
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/slides_tests.rb
CHANGED
@@ -19,14 +19,14 @@ class SlidesTests < 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_slides_convert
|
27
27
|
file_name = "sample.pptx"
|
28
28
|
convert_to_format = "pdf"
|
29
|
-
response = @slides_api.put_slides_convert(File.open("data/" << file_name,"r") { |io| io.read }, {format: convert_to_format})
|
29
|
+
response = @slides_api.put_slides_convert(File.open("../../../data/" << file_name,"r") { |io| io.read }, {format: convert_to_format})
|
30
30
|
assert(response, message="Failed to convert presentation from request content to format specified.")
|
31
31
|
end
|
32
32
|
|
@@ -43,7 +43,7 @@ class SlidesTests < Minitest::Test
|
|
43
43
|
template_path = "sample.pptx"
|
44
44
|
upload_file(template_path)
|
45
45
|
|
46
|
-
response = @slides_api.put_new_presentation_from_stored_template(file_name, template_path, File.open("data/Test.html","r") { |io| io.read })
|
46
|
+
response = @slides_api.put_new_presentation_from_stored_template(file_name, template_path, File.open("../../../data/Test.html","r") { |io| io.read })
|
47
47
|
assert(response, message="Failed to add new presentation from stored template.")
|
48
48
|
end
|
49
49
|
|
@@ -52,7 +52,7 @@ class SlidesTests < Minitest::Test
|
|
52
52
|
template_path = "sample.pptx"
|
53
53
|
upload_file(template_path)
|
54
54
|
|
55
|
-
response = @slides_api.post_slides_document(file_name, template_path, File.open("data/Test.html","r") { |io| io.read })
|
55
|
+
response = @slides_api.post_slides_document(file_name, template_path, File.open("../../../data/Test.html","r") { |io| io.read })
|
56
56
|
assert(response, message="Failed to create presentation.")
|
57
57
|
end
|
58
58
|
|
@@ -120,7 +120,7 @@ class SlidesTests < Minitest::Test
|
|
120
120
|
def test_put_slides_document_from_html
|
121
121
|
file_name = "newPresentation.pptx"
|
122
122
|
|
123
|
-
response = @slides_api.put_slides_document_from_html(file_name, File.open("data/ReadMe.html","r") { |io| io.read })
|
123
|
+
response = @slides_api.put_slides_document_from_html(file_name, File.open("../../../data/ReadMe.html","r") { |io| io.read })
|
124
124
|
assert(response, message="Failed to create presentation document from html.")
|
125
125
|
end
|
126
126
|
|
@@ -497,7 +497,7 @@ class SlidesTests < Minitest::Test
|
|
497
497
|
def test_put_new_presentation
|
498
498
|
file_name = "newPresentation.pptx"
|
499
499
|
|
500
|
-
response = @slides_api.put_new_presentation(file_name, File.open("data/sample.pptx","r") { |io| io.read })
|
500
|
+
response = @slides_api.put_new_presentation(file_name, File.open("../../../data/sample.pptx","r") { |io| io.read })
|
501
501
|
assert(response, message="Failed to create presentation")
|
502
502
|
end
|
503
503
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_slides_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
|
@@ -159,12 +159,6 @@ files:
|
|
159
159
|
- lib/aspose_slides_cloud/models/theme_response.rb
|
160
160
|
- lib/aspose_slides_cloud/models/tiff_export_options.rb
|
161
161
|
- lib/aspose_slides_cloud/version.rb
|
162
|
-
- test/data/ReadMe.html
|
163
|
-
- test/data/Test.html
|
164
|
-
- test/data/demo.pptx
|
165
|
-
- test/data/sample-input.pptx
|
166
|
-
- test/data/sample.pptx
|
167
|
-
- test/data/welcome.pptx
|
168
162
|
- test/slides_tests.rb
|
169
163
|
homepage: http://www.aspose.com/cloud/powerpoint-api.aspx
|
170
164
|
licenses:
|
@@ -186,15 +180,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
186
180
|
version: '0'
|
187
181
|
requirements: []
|
188
182
|
rubyforge_project:
|
189
|
-
rubygems_version: 2.
|
183
|
+
rubygems_version: 2.6.8
|
190
184
|
signing_key:
|
191
185
|
specification_version: 4
|
192
186
|
summary: Aspose.Slides for Cloud
|
193
187
|
test_files:
|
194
|
-
- test/data/ReadMe.html
|
195
|
-
- test/data/Test.html
|
196
|
-
- test/data/demo.pptx
|
197
|
-
- test/data/sample-input.pptx
|
198
|
-
- test/data/sample.pptx
|
199
|
-
- test/data/welcome.pptx
|
200
188
|
- test/slides_tests.rb
|
data/test/data/ReadMe.html
DELETED
@@ -1,48 +0,0 @@
|
|
1
|
-
<html>
|
2
|
-
<head></head>
|
3
|
-
<body>
|
4
|
-
<h2><a id="user-content-asposepdf-for-cloud" class="anchor" href="#asposepdf-for-cloud" aria-hidden="true"><span class="octicon octicon-link"></span></a>Aspose.Pdf for Cloud</h2>
|
5
|
-
|
6
|
-
<p>This repository contains examples and SDKs for <a href="http://www.aspose.com/cloud/pdf-api.aspx">Aspose.Pdf for Cloud</a>.</p>
|
7
|
-
|
8
|
-
<h2><a id="user-content-why-sdks" class="anchor" href="#why-sdks" aria-hidden="true"><span class="octicon octicon-link"></span></a>Why SDKs?</h2>
|
9
|
-
|
10
|
-
<p>Aspose.Pdf for Cloud is implemented as a REST API. If you use SDK, it hides the REST API calls and lets you use Aspose.Pdf features in a native way for your preferred language.</p>
|
11
|
-
|
12
|
-
<p align="center">
|
13
|
-
<a title="Download complete Aspose.Pdf for Cloud source code" href="https://github.com/asposepdf/Aspose_Pdf_Cloud/archive/master.zip">
|
14
|
-
<img src="https://camo.githubusercontent.com/11839cd752a2d367f3149c7bee1742b68e4a4d37/68747470733a2f2f7261772e6769746875622e636f6d2f4173706f73654578616d706c65732f6a6176612d6578616d706c65732d64617368626f6172642f6d61737465722f696d616765732f646f776e6c6f61645a69702d427574746f6e2d4c617267652e706e67" data-canonical-src="https://raw.github.com/AsposeExamples/java-examples-dashboard/master/images/downloadZip-Button-Large.png" style="max-width:100%;">
|
15
|
-
</a>
|
16
|
-
</p>
|
17
|
-
|
18
|
-
<table><thead>
|
19
|
-
<tr>
|
20
|
-
<th>Directory</th>
|
21
|
-
<th>Description</th>
|
22
|
-
</tr>
|
23
|
-
</thead><tbody>
|
24
|
-
<tr>
|
25
|
-
<td><a href="https://github.com/asposepdf/Aspose_Pdf_Cloud/tree/master/SDKs/Aspose.Pdf_Cloud_SDK_for_Java">Java SDK</a></td>
|
26
|
-
<td>Aspose.Pdf Cloud SDK for Java.</td>
|
27
|
-
</tr>
|
28
|
-
<tr>
|
29
|
-
<td><a href="https://github.com/asposepdf/Aspose_Pdf_Cloud/tree/master/SDKs/Aspose.Pdf_Cloud_SDK_for_PHP">PHP SDK</a></td>
|
30
|
-
<td>Aspose.Pdf Cloud SDK for PHP.</td>
|
31
|
-
</tr>
|
32
|
-
<tr>
|
33
|
-
<td><a href="https://github.com/asposepdf/Aspose_Pdf_Cloud/tree/master/SDKs/Aspose.Pdf_Cloud_SDK_for_Python">Python SDK</a></td>
|
34
|
-
<td>Aspose.Pdf Cloud SDK for Python.</td>
|
35
|
-
</tr>
|
36
|
-
</tbody></table>
|
37
|
-
|
38
|
-
<h2><a id="user-content-resources" class="anchor" href="#resources" aria-hidden="true"><span class="octicon octicon-link"></span></a>Resources</h2>
|
39
|
-
|
40
|
-
<ul>
|
41
|
-
<li><strong>Website:</strong> <a href="http://www.aspose.com">www.aspose.com</a></li>
|
42
|
-
<li><strong>Product Home:</strong> <a href="http://www.aspose.com/cloud/pdf-api.aspx">Aspose.Pdf for Cloud</a></li>
|
43
|
-
<li><strong>Documentation:</strong> <a href="http://www.aspose.com/docs/display/pdfcloud/Home">Aspose.Pdf for Cloud Documentation</a></li>
|
44
|
-
<li><strong>Forum:</strong> <a href="http://www.aspose.com/community/forums/aspose.pdf-product-family/75/showforum.aspx">Aspose.Pdf for Cloud Forum</a></li>
|
45
|
-
<li><strong>Blog:</strong> <a href="http://www.aspose.com/blogs/aspose-products/aspose-pdf-product-family.html">Aspose.Pdf for Cloud Blog</a></li>
|
46
|
-
</ul>
|
47
|
-
</body>
|
48
|
-
</html>
|
data/test/data/Test.html
DELETED
data/test/data/demo.pptx
DELETED
Binary file
|
data/test/data/sample-input.pptx
DELETED
Binary file
|
data/test/data/sample.pptx
DELETED
Binary file
|
data/test/data/welcome.pptx
DELETED
Binary file
|