aspose_slides_cloud 19.10.0 → 19.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +51 -2
- data/lib/aspose_slides_cloud/api/slides_api.rb +3 -2
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/extra/extra_spec.rb +5 -5
- data/spec/spec_utils.rb +1 -1
- data/testRules.json +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e74906507d4392793835298279e28553917fc5bd5b45ef92ca6188ea6446c322
|
4
|
+
data.tar.gz: 022b1b98adc5e8aa30e8e7219f2495cfa13609bedd6cdcdc5cf616bd68a9ac2d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57ce368fd53b20fff39f1fa0b784802647ec90cfab2911554325992ac51aee7c7b119ec89a6305d2dc0dc82791efd34e12be32557b783cbfae1c04bfe527b62f
|
7
|
+
data.tar.gz: 7a735b9801a49910d8549e5550b13ba80f3fed84a39cd7ce9daa4628116c1470714359999fd1ad641b86100fe73da24dfa9afe36b79e9472b1d326ce1932aff3
|
data/README.md
CHANGED
@@ -1,12 +1,61 @@
|
|
1
1
|
# Aspose.Slides Cloud SDK for Ruby
|
2
2
|
This repository contains Aspose.Slides Cloud SDK for Ruby source code. This SDK allows you to work with Aspose.Slides Cloud REST APIs in your Ruby applications.
|
3
3
|
|
4
|
+
## Key Features
|
5
|
+
* Conversion between various document-related formats (20+ formats supported), including PDF<->PowerPoint conversion
|
6
|
+
* Download slides and shapes in various formats, including PDF and SVG
|
7
|
+
* Merge and split PowerPoint presentations
|
8
|
+
* Access PowerPoint presentation metadata and statistics
|
9
|
+
* Find and replace
|
10
|
+
* Full read & write access to Document Object Model, including slides, shapes, paragraphs, portions and many others
|
11
|
+
* Support of Aspose.Storage API
|
12
|
+
|
13
|
+
## Licensing
|
14
|
+
All Aspose.Slides Cloud SDKs are licensed under MIT License.
|
15
|
+
|
4
16
|
## How to use the SDK?
|
5
|
-
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get [Ruby gem] (recommended).
|
17
|
+
The complete source code is available in this repository folder. You can either directly use it in your project via source code or get [Ruby gem](https://rubygems.org/gems/aspose_slides_cloud) (recommended).
|
6
18
|
|
7
19
|
## Prerequisites
|
20
|
+
To use Aspose Slides Cloud SDK for Ruby you need to register an account with [Aspose Cloud](https://www.aspose.cloud/) and lookup/create App Key and SID at [Cloud Dashboard](https://dashboard.aspose.cloud/#/apps). There is free quota available. For more details, see [Aspose Cloud Pricing](https://purchase.aspose.cloud/pricing).
|
21
|
+
|
22
|
+
### Installation
|
23
|
+
|
24
|
+
```sh
|
25
|
+
gem install aspose_slides_cloud
|
26
|
+
```
|
27
|
+
|
28
|
+
### Sample usage
|
8
29
|
|
9
|
-
|
30
|
+
The example code below converts a PowerPoint document to PDF format using aspose_slides_cloud library:
|
31
|
+
```ruby
|
32
|
+
require 'aspose_slides_cloud'
|
33
|
+
|
34
|
+
configuration = AsposeSlidesCloud::Configuration.new
|
35
|
+
configuration.app_sid = "MyAppSid"
|
36
|
+
configuration.app_key = "MyAppKey"
|
37
|
+
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
38
|
+
requestParam = AsposeSlidesCloud::PostSlidesConvertRequest.new
|
39
|
+
requestParam.format = "pdf"
|
40
|
+
requestParam.document = File.binread("MyPresentation.pptx")
|
41
|
+
result = api.post_slides_convert(requestParam)
|
42
|
+
File.binwrite("MyPresentation.pdf", result)
|
43
|
+
```
|
10
44
|
|
11
45
|
## Contact Us
|
46
|
+
|
12
47
|
Your feedback is very important to us. Please feel free to contact us using our [Support Forums](https://forum.aspose.cloud/c/slides).
|
48
|
+
|
49
|
+
## Resources
|
50
|
+
|
51
|
+
[Website](https://www.aspose.cloud/)
|
52
|
+
[Product Home](https://products.aspose.cloud/slides/family)
|
53
|
+
[API Reference](https://apireference.aspose.cloud/slides/)
|
54
|
+
[Documentation](https://docs.aspose.cloud/display/slidescloud/Home)
|
55
|
+
[Blog](https://blog.aspose.cloud/category/slides/)
|
56
|
+
|
57
|
+
## Other languages
|
58
|
+
|
59
|
+
We generate our SDKs in different languages so you may check if yours is available in our [list](https://github.com/aspose-slides-cloud).
|
60
|
+
|
61
|
+
If you don't find your language in the list, feel free to request it from us, or use raw REST API requests as you can find it [here](https://products.aspose.cloud/slides/curl).
|
@@ -26,9 +26,10 @@ module AsposeSlidesCloud
|
|
26
26
|
class SlidesApi
|
27
27
|
attr_accessor :api_client
|
28
28
|
|
29
|
-
def initialize(
|
30
|
-
@api_client =
|
29
|
+
def initialize(configuration = Configuration.default)
|
30
|
+
@api_client = AsposeSlidesCloud::ApiClient.new(configuration)
|
31
31
|
end
|
32
|
+
|
32
33
|
# Copy file
|
33
34
|
# @param request operation request
|
34
35
|
def copy_file(request)
|
data/spec/extra/extra_spec.rb
CHANGED
@@ -56,7 +56,7 @@ describe 'SlidesApiExtra' do
|
|
56
56
|
configuration.app_sid = "invalid"
|
57
57
|
configuration.app_key = "invalid"
|
58
58
|
configuration.debugging = config["Debug"]
|
59
|
-
api = AsposeSlidesCloud::SlidesApi.new(
|
59
|
+
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
60
60
|
begin
|
61
61
|
o, c, _h = api.get_slides_api_info_with_http_info
|
62
62
|
fail "An exception expected"
|
@@ -75,7 +75,7 @@ describe 'SlidesApiExtra' do
|
|
75
75
|
configuration.app_key = config["AppKey"]
|
76
76
|
configuration.access_token = "expired.token"
|
77
77
|
configuration.debugging = config["Debug"]
|
78
|
-
api = AsposeSlidesCloud::SlidesApi.new(
|
78
|
+
api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
79
79
|
o, c, _h = api.get_slides_api_info_with_http_info
|
80
80
|
expect(c).to eq(200)
|
81
81
|
expect(o).not_to be(nil)
|
@@ -94,9 +94,9 @@ describe 'SlidesApiExtra' do
|
|
94
94
|
end
|
95
95
|
|
96
96
|
it 'chart' do
|
97
|
-
|
98
|
-
|
99
|
-
|
97
|
+
chart = AsposeSlidesCloud::Chart.new
|
98
|
+
expect(chart.type).to eq("Chart")
|
99
|
+
expect(chart.shape_type).to eq("Chart")
|
100
100
|
end
|
101
101
|
end
|
102
102
|
end
|
data/spec/spec_utils.rb
CHANGED
@@ -162,7 +162,7 @@ module AsposeSlidesCloud
|
|
162
162
|
configuration.app_sid = config["AppSid"]
|
163
163
|
configuration.app_key = config["AppKey"]
|
164
164
|
configuration.debugging = config["Debug"]
|
165
|
-
@@api = AsposeSlidesCloud::SlidesApi.new(
|
165
|
+
@@api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
166
166
|
end
|
167
167
|
@@api
|
168
168
|
end
|
data/testRules.json
CHANGED
@@ -316,6 +316,7 @@
|
|
316
316
|
{ "Message": "Can't read MSCDFileSystem.", "Parameter": "Document" },
|
317
317
|
{ "Message": "The stream is empty.", "Parameter": "Document", "Language": "NodeJS" },
|
318
318
|
{ "Message": "The stream is empty.", "Parameter": "Document", "Language": "Python" },
|
319
|
+
{ "Message": "The stream is empty.", "Parameter": "Document", "Language": "Go" },
|
319
320
|
{ "Message": "The stream is empty.", "Parameter": "Document", "Language": "Ruby" },
|
320
321
|
{ "Message": " DTO expected.", "Parameter": "DTO" },
|
321
322
|
{ "Message": " DTO expected.", "Parameter": "SlideDTO" },
|
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: 19.
|
4
|
+
version: 19.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Putrov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-12-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|