aspose_slides_cloud 19.9.0 → 20.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/README.md +51 -2
- data/lib/aspose_slides_cloud.rb +6 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +219 -194
- data/lib/aspose_slides_cloud/api/slides_api_requests.rb +178 -105
- data/lib/aspose_slides_cloud/api_client.rb +4 -1
- data/lib/aspose_slides_cloud/configuration.rb +6 -1
- data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +0 -15
- data/lib/aspose_slides_cloud/models/axis.rb +0 -160
- data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +490 -0
- data/lib/aspose_slides_cloud/models/bubble_series.rb +2 -37
- data/lib/aspose_slides_cloud/models/chart.rb +14 -4
- data/lib/aspose_slides_cloud/models/chart_category.rb +237 -0
- data/lib/aspose_slides_cloud/models/chart_wall.rb +0 -10
- data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +205 -0
- data/lib/aspose_slides_cloud/models/document.rb +11 -1
- data/lib/aspose_slides_cloud/models/document_replace_result.rb +11 -1
- data/lib/aspose_slides_cloud/models/legend.rb +0 -30
- data/lib/aspose_slides_cloud/models/line_format.rb +0 -35
- data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +205 -0
- data/lib/aspose_slides_cloud/models/one_value_series.rb +2 -37
- data/lib/aspose_slides_cloud/models/plot_area.rb +0 -25
- data/lib/aspose_slides_cloud/models/scatter_series.rb +2 -37
- data/lib/aspose_slides_cloud/models/series.rb +2 -37
- data/lib/aspose_slides_cloud/models/series_marker.rb +0 -10
- data/lib/aspose_slides_cloud/models/table.rb +0 -40
- data/lib/aspose_slides_cloud/models/table_cell.rb +0 -40
- data/lib/aspose_slides_cloud/models/view_properties.rb +367 -0
- data/lib/aspose_slides_cloud/models/waterfall_series.rb +438 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +1445 -925
- data/spec/extra/extra_spec.rb +20 -2
- data/spec/spec_utils.rb +28 -6
- data/testRules.json +17 -3
- metadata +8 -2
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,10 +75,28 @@ 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)
|
82
82
|
end
|
83
|
+
|
84
|
+
it 'base shape' do
|
85
|
+
#requestParam = AsposeSlidesCloud::GetSlideShapeRequest.new
|
86
|
+
#requestParam.name = "test.ppt"
|
87
|
+
#requestParam.slide_index = 1
|
88
|
+
#requestParam.shape_index = 1
|
89
|
+
#requestParam.password = "password"
|
90
|
+
#requestParam.folder = "TempSlidesSDK"
|
91
|
+
#AsposeSlidesCloud::SpecUtils.initialize('GetSlideShape', nil, nil)
|
92
|
+
#o = AsposeSlidesCloud::SpecUtils.api.get_slide_shape(requestParam)
|
93
|
+
#expect(o.text).to eq("1")
|
94
|
+
end
|
95
|
+
|
96
|
+
it 'chart' do
|
97
|
+
chart = AsposeSlidesCloud::Chart.new
|
98
|
+
expect(chart.type).to eq("Chart")
|
99
|
+
expect(chart.shape_type).to eq("Chart")
|
100
|
+
end
|
83
101
|
end
|
84
102
|
end
|
data/spec/spec_utils.rb
CHANGED
@@ -23,6 +23,27 @@ SOFTWARE.
|
|
23
23
|
module AsposeSlidesCloud
|
24
24
|
class SpecUtils
|
25
25
|
def self.initialize(method, name, value)
|
26
|
+
if !@@is_initialized
|
27
|
+
download_request = AsposeSlidesCloud::DownloadFileRequest.new
|
28
|
+
download_request.path = "TempTests/version.txt"
|
29
|
+
version = SpecUtils.api.download_file(download_request)
|
30
|
+
if version != EXPECTED_TEST_DATA_VERSION
|
31
|
+
Dir.entries(TEST_DATA_PATH).each { |f|
|
32
|
+
if !File.directory? File.join(TEST_DATA_PATH, f)
|
33
|
+
fd = File.binread(File.join(TEST_DATA_PATH, f))
|
34
|
+
upload_request = AsposeSlidesCloud::UploadFileRequest.new
|
35
|
+
upload_request.file = fd
|
36
|
+
upload_request.path = "TempTests/" + f
|
37
|
+
SpecUtils.api.upload_file(upload_request)
|
38
|
+
end
|
39
|
+
}
|
40
|
+
upload_request = AsposeSlidesCloud::UploadFileRequest.new
|
41
|
+
upload_request.file = EXPECTED_TEST_DATA_VERSION
|
42
|
+
upload_request.path = "TempTests/version.txt"
|
43
|
+
SpecUtils.api.upload_file(upload_request)
|
44
|
+
end
|
45
|
+
@@is_initialized = true
|
46
|
+
end
|
26
47
|
files = Hash.new
|
27
48
|
SpecUtils.test_rules["Files"].each do |rule|
|
28
49
|
if SpecUtils.good_rule?(rule, name, method)
|
@@ -38,11 +59,10 @@ module AsposeSlidesCloud
|
|
38
59
|
end
|
39
60
|
files.each do |path, rule|
|
40
61
|
if rule["Action"] == "Put"
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
SpecUtils.api.upload_file(upload_request)
|
62
|
+
copy_request = AsposeSlidesCloud::CopyFileRequest.new
|
63
|
+
copy_request.src_path = "TempTests/" + rule['ActualName']
|
64
|
+
copy_request.dest_path = path
|
65
|
+
SpecUtils.api.copy_file(copy_request)
|
46
66
|
elsif rule["Action"] == "Delete"
|
47
67
|
delete_request = AsposeSlidesCloud::DeleteFileRequest.new
|
48
68
|
delete_request.path = path
|
@@ -142,13 +162,15 @@ module AsposeSlidesCloud
|
|
142
162
|
configuration.app_sid = config["AppSid"]
|
143
163
|
configuration.app_key = config["AppKey"]
|
144
164
|
configuration.debugging = config["Debug"]
|
145
|
-
@@api = AsposeSlidesCloud::SlidesApi.new(
|
165
|
+
@@api = AsposeSlidesCloud::SlidesApi.new(configuration)
|
146
166
|
end
|
147
167
|
@@api
|
148
168
|
end
|
149
169
|
|
150
170
|
@@api = nil
|
171
|
+
@@is_initialized = false
|
151
172
|
|
152
173
|
TEST_DATA_PATH = "TestData"
|
174
|
+
EXPECTED_TEST_DATA_VERSION = "1"
|
153
175
|
end
|
154
176
|
end
|
data/testRules.json
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
{ "Action": "Delete", "File": "test.ppt", "Method": "UploadFile" },
|
7
7
|
{ "Action": "Put", "File": "test-unprotected.ppt", "Method": "DeleteSlidesCleanSlidesList" },
|
8
8
|
{ "Action": "Put", "File": "test-unprotected.ppt", "Method": "PutSlidesSlide" },
|
9
|
-
{ "Action": "Put", "File": "
|
9
|
+
{ "Action": "Put", "File": "TemplateCV.pptx", "Method": "PostSlidesDocument" },
|
10
10
|
{ "Action": "Delete", "Folder": "%v", "File": "test.ppt", "Parameter": "Folder" },
|
11
11
|
{ "Action": "Delete", "File": "%v", "Parameter": "Name" },
|
12
12
|
{ "Action": "Delete", "File": "changedtest.ppt", "Method": "PostSlidesDocument" },
|
@@ -20,7 +20,9 @@
|
|
20
20
|
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.ppt", "Method": "PostSlidesDocumentFromTemplate" },
|
21
21
|
{ "Action": "Delete", "File": "changedtest.ppt", "Method": "PutNewPresentation" },
|
22
22
|
{ "Action": "Delete", "File": "invalidchangedtest.ppt", "Method": "PutNewPresentation" },
|
23
|
-
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.ppt", "Method": "PutNewPresentation" }
|
23
|
+
{ "Action": "Delete", "Folder": "TempSlidesSDKinvalid", "File": "changedtest.ppt", "Method": "PutNewPresentation" },
|
24
|
+
{ "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.ppt", "Parameter": "CloneFrom" },
|
25
|
+
{ "Action": "Delete", "Folder": "invalidTempSlidesSDK", "File": "test.ppt", "Parameter": "SourcePath" }
|
24
26
|
],
|
25
27
|
"Values": [
|
26
28
|
{ "InvalidValue": "%vinvalid" },
|
@@ -36,7 +38,7 @@
|
|
36
38
|
{ "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "SrcPath" },
|
37
39
|
{ "Value": "TempSlidesSDK/changedtest.ppt", "InvalidValue": "invalid%v", "Parameter": "DestPath" },
|
38
40
|
{ "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "TemplatePath" },
|
39
|
-
{ "Value": "TempSlidesSDK/
|
41
|
+
{ "Value": "TempSlidesSDK/TemplateCV.pptx", "InvalidValue": "invalid%v", "Parameter": "TemplatePath", "Method": "PostSlidesDocument" },
|
40
42
|
{ "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "CloneFrom" },
|
41
43
|
{ "Value": "TempSlidesSDK/test.ppt", "InvalidValue": "invalid%v", "Parameter": "Source" },
|
42
44
|
{ "Value": "TempSlidesSDK/out.pdf", "Parameter": "OutPath" },
|
@@ -108,6 +110,7 @@
|
|
108
110
|
"Type": "Shape",
|
109
111
|
"Parameter": "DTO"
|
110
112
|
},
|
113
|
+
{ "Value": {}, "InvalidValue": null, "Type": "ViewProperties", "Parameter": "DTO", "Method": "PutSlidesViewProperties" },
|
111
114
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostAddNewPortion" },
|
112
115
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostNotesSlideAddNewPortion" },
|
113
116
|
{ "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PutSetParagraphPortionProperties" },
|
@@ -124,8 +127,10 @@
|
|
124
127
|
{ "Value": "pdf", "Parameter": "Format" },
|
125
128
|
{ "InvalidValue": "svg", "Parameter": "Format", "Language": "NET" },
|
126
129
|
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "GetNotesSlideWithFormat", "Language": "NET" },
|
130
|
+
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "PostGetNotesSlideWithFormat", "Language": "NET" },
|
127
131
|
{ "InvalidValue": "gif", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "NET" },
|
128
132
|
{ "Value": "png", "Parameter": "Format", "Method": "GetNotesSlideWithFormat" },
|
133
|
+
{ "Value": "png", "Parameter": "Format", "Method": "PostGetNotesSlideWithFormat" },
|
129
134
|
{ "Value": "png", "Parameter": "Format", "Method": "GetShapeWithFormat" },
|
130
135
|
{ "Value": "png", "Parameter": "Format", "Method": "PostShapeSaveAs" },
|
131
136
|
{ "Value": "png", "Parameter": "Format", "Method": "PutShapeSaveAs" },
|
@@ -192,6 +197,12 @@
|
|
192
197
|
{ "Parameter": "Format", "Language": "NET" },
|
193
198
|
{ "Parameter": "Format", "Language": "Java", "Method": "PostSlidesSplit" },
|
194
199
|
{ "Parameter": "Dto", "Method": "PostAddNotesSlide" },
|
200
|
+
{ "Parameter": "Dto", "Language": "Swift" },
|
201
|
+
{ "Parameter": "Request", "Language": "Swift" },
|
202
|
+
{ "Parameter": "Effect", "Language": "Swift" },
|
203
|
+
{ "Parameter": "Sequence", "Language": "Swift" },
|
204
|
+
{ "Parameter": "Pipeline", "Language": "Swift" },
|
205
|
+
{ "Parameter": "Properties", "Language": "Swift" },
|
195
206
|
{ "Parameter": "Position", "Method": "PostSlidesReorderPosition" },
|
196
207
|
{ "Parameter": "Name", "Method": "PostSlidesDocument" },
|
197
208
|
{ "Parameter": "Name", "Method": "PostSlidesDocumentFromHtml" },
|
@@ -313,7 +324,9 @@
|
|
313
324
|
{ "Message": "Can't read MSCDFileSystem.", "Parameter": "Data", "Language": "Python", "Method": "PostSlidesDocument" },
|
314
325
|
{ "Message": "Can't read MSCDFileSystem.", "Parameter": "Document" },
|
315
326
|
{ "Message": "The stream is empty.", "Parameter": "Document", "Language": "NodeJS" },
|
327
|
+
{ "Message": "The stream is empty.", "Parameter": "Document", "Language": "PHP" },
|
316
328
|
{ "Message": "The stream is empty.", "Parameter": "Document", "Language": "Python" },
|
329
|
+
{ "Message": "The stream is empty.", "Parameter": "Document", "Language": "Go" },
|
317
330
|
{ "Message": "The stream is empty.", "Parameter": "Document", "Language": "Ruby" },
|
318
331
|
{ "Message": " DTO expected.", "Parameter": "DTO" },
|
319
332
|
{ "Message": " DTO expected.", "Parameter": "SlideDTO" },
|
@@ -325,6 +338,7 @@
|
|
325
338
|
{ "Message": " DTO expected.", "Parameter": "Sequence" },
|
326
339
|
{ "Message": " DTO expected.", "Parameter": "Effect" },
|
327
340
|
{ "Message": " DTO expected.", "Parameter": "Request" },
|
341
|
+
{ "Message": "Layout slide DTO must be not null and contain", "Parameter": "SlideDTO", "Language": "Swift" },
|
328
342
|
{ "Message": "Object reference not set to an instance of an object.", "Parameter": "Bounds" },
|
329
343
|
{ "Code": 409, "Message": " is not empty.", "Parameter": "Recursive" },
|
330
344
|
{ "Message": "An error has occurred.", "Code": 500, "Parameter": "Options" },
|
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:
|
4
|
+
version: 20.5.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:
|
11
|
+
date: 2020-05-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -225,12 +225,15 @@ files:
|
|
225
225
|
- lib/aspose_slides_cloud/models/axis.rb
|
226
226
|
- lib/aspose_slides_cloud/models/base64_input_file.rb
|
227
227
|
- lib/aspose_slides_cloud/models/blur_effect.rb
|
228
|
+
- lib/aspose_slides_cloud/models/box_and_whisker_series.rb
|
228
229
|
- lib/aspose_slides_cloud/models/bubble_chart_data_point.rb
|
229
230
|
- lib/aspose_slides_cloud/models/bubble_series.rb
|
230
231
|
- lib/aspose_slides_cloud/models/chart.rb
|
232
|
+
- lib/aspose_slides_cloud/models/chart_category.rb
|
231
233
|
- lib/aspose_slides_cloud/models/chart_title.rb
|
232
234
|
- lib/aspose_slides_cloud/models/chart_wall.rb
|
233
235
|
- lib/aspose_slides_cloud/models/color_scheme.rb
|
236
|
+
- lib/aspose_slides_cloud/models/common_slide_view_properties.rb
|
234
237
|
- lib/aspose_slides_cloud/models/connector.rb
|
235
238
|
- lib/aspose_slides_cloud/models/custom_dash_pattern.rb
|
236
239
|
- lib/aspose_slides_cloud/models/disc_usage.rb
|
@@ -278,6 +281,7 @@ files:
|
|
278
281
|
- lib/aspose_slides_cloud/models/merge.rb
|
279
282
|
- lib/aspose_slides_cloud/models/merging_source.rb
|
280
283
|
- lib/aspose_slides_cloud/models/no_fill.rb
|
284
|
+
- lib/aspose_slides_cloud/models/normal_view_restored_properties.rb
|
281
285
|
- lib/aspose_slides_cloud/models/notes_slide.rb
|
282
286
|
- lib/aspose_slides_cloud/models/notes_slide_export_format.rb
|
283
287
|
- lib/aspose_slides_cloud/models/object_exist.rb
|
@@ -361,6 +365,8 @@ files:
|
|
361
365
|
- lib/aspose_slides_cloud/models/update_background.rb
|
362
366
|
- lib/aspose_slides_cloud/models/update_shape.rb
|
363
367
|
- lib/aspose_slides_cloud/models/video_frame.rb
|
368
|
+
- lib/aspose_slides_cloud/models/view_properties.rb
|
369
|
+
- lib/aspose_slides_cloud/models/waterfall_series.rb
|
364
370
|
- lib/aspose_slides_cloud/models/xps_export_options.rb
|
365
371
|
- lib/aspose_slides_cloud/version.rb
|
366
372
|
- spec/api/slides_api_spec.rb
|