aspose_slides_cloud 19.10.0 → 19.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0192b8a850075f93dbdf34e271ed979875abaaf931ea2e2ffb0d4c8b6e37c30b'
4
- data.tar.gz: 3a214622c624ecb0c79af550649db45e5b284a3f0ccd5017ae54b27d36bfb30b
3
+ metadata.gz: e74906507d4392793835298279e28553917fc5bd5b45ef92ca6188ea6446c322
4
+ data.tar.gz: 022b1b98adc5e8aa30e8e7219f2495cfa13609bedd6cdcdc5cf616bd68a9ac2d
5
5
  SHA512:
6
- metadata.gz: b4ba98bcea2f6b1ba68d861f10909163acb0c5ac5feec79147c27c82aca9c200354302d12d69c5b8a4f6853d1f88332b2b3b926fc460a9c9cc0e5d014cde9324
7
- data.tar.gz: 1092643a4283e72a7f24777c1d85f65b117842ca5e29b823b271c98b2c23134d94ed8c8156beff1d5dcce37e59f7c67782a0f7a3b553a14b1e4a61ac7d92a319
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
- To use Aspose Slides for Cloud Python SDK 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).
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(api_client = ApiClient.default)
30
- @api_client = 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)
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeSlidesCloud
24
- VERSION = '19.10.0'
24
+ VERSION = '19.12.0'
25
25
  end
@@ -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(AsposeSlidesCloud::ApiClient.new(configuration))
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(AsposeSlidesCloud::ApiClient.new(configuration))
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
- #chart = Chart.new
98
- #expect(chart.type).to eq("Chart")
99
- #expect(chart.shape_type).to eq("Chart")
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
@@ -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(AsposeSlidesCloud::ApiClient.new(configuration))
165
+ @@api = AsposeSlidesCloud::SlidesApi.new(configuration)
166
166
  end
167
167
  @@api
168
168
  end
@@ -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.10.0
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-04 00:00:00.000000000 Z
11
+ date: 2019-12-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday