aspose_slides_cloud 24.3.0 → 24.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,7 @@ describe 'UseCases' do
32
32
  configuration.app_sid = config["ClientId"]
33
33
  configuration.app_key = config["ClientSecret"]
34
34
  configuration.debugging = config["Debug"]
35
+ configuration.verify_ssl = !config["AllowInsecureRequests"]
35
36
  api = AsposeSlidesCloud::SlidesApi.new(configuration)
36
37
  o, c, _h = api.get_api_info_with_http_info
37
38
  expect(c).to eq(200)
@@ -46,6 +47,7 @@ describe 'UseCases' do
46
47
  configuration.app_sid = "invalid"
47
48
  configuration.app_key = config["ClientSecret"]
48
49
  configuration.debugging = config["Debug"]
50
+ configuration.verify_ssl = !config["AllowInsecureRequests"]
49
51
  api = AsposeSlidesCloud::SlidesApi.new(configuration)
50
52
  begin
51
53
  o, c, _h = api.get_api_info_with_http_info
@@ -64,6 +66,7 @@ describe 'UseCases' do
64
66
  configuration.app_sid = config["ClientId"]
65
67
  configuration.app_key = config["ClientSecret"]
66
68
  configuration.debugging = config["Debug"]
69
+ configuration.verify_ssl = !config["AllowInsecureRequests"]
67
70
  api = AsposeSlidesCloud::SlidesApi.new(configuration)
68
71
  api.get_api_info_with_http_info
69
72
  configuration.app_sid = "invalid"
@@ -82,6 +85,7 @@ describe 'UseCases' do
82
85
  configuration.app_key = config["ClientSecret"]
83
86
  configuration.access_token = "expired.token"
84
87
  configuration.debugging = config["Debug"]
88
+ configuration.verify_ssl = !config["AllowInsecureRequests"]
85
89
  api = AsposeSlidesCloud::SlidesApi.new(configuration)
86
90
  o, c, _h = api.get_api_info_with_http_info
87
91
  expect(c).to eq(200)
@@ -97,6 +101,7 @@ describe 'UseCases' do
97
101
  configuration.app_key = config["ClientSecret"]
98
102
  configuration.access_token = "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJuYmYiOjE2ODYzMzI5ODAsImV4cCI6MTY4NjQxOTM4MCwiaXNzIjoiaHR0cHM6Ly9hcGkuYXNwb3NlLmNsb3VkIiwiYXVkIjpbImh0dHBzOi8vYXBpLmFzcG9zZS5jbG91ZC9yZXNvdXJjZXMiLCJhcGkuYmlsbGluZyIsImFwaS5pZGVudGl0eSIsImFwaS5wcm9kdWN0cyIsImFwaS5zdG9yYWdlIl0sImNsaWVudF9pZCI6ImVhMTFkNzAwLWE3YjAtNDgwMi05YjFjLWRmYWVhNGI2OTA0YSIsImNsaWVudF9kZWZhdWx0X3N0b3JhZ2UiOiIyNDc5NjRmYy04MjIyLTQ4M2EtYmZmMS1kNTYxYzM5MjQ3ZWIiLCJjbGllbnRfaWRlbnRpdHlfdXNlcl9pZCI6Ijc2MjY4MiIsInNjb3BlIjpbImFwaS5iaWxsaW5nIiwiYXBpLmlkZW50aXR5IiwiYXBpLnByb2R1Y3RzIiwiYXBpLnN0b3JhZ2UiXX0.qGRwbpVQNJ7k09FF81bfknBd_9bERkProMukobxkAEzwIhIRSwCDvzgVhhUcA-OMr8s-49XLYtFb6ZtuDT2r3xDsYXWxwjYekFk4MZhEFKeIqLyI9-kSxanL7w4WoKkE_OAXHquChRJcsqz5vhKOOJ9swu4PS0TSRYHfkLFsLpZLXIV4X53Ear8vDosOfeZONq9QPCfikCi1ruSMa3OddD2WE17_V3FzzyuC7d3FQxRznFJhyWoKI2jvOw7a92KatWVt3I78fOl9M-3MkkHR1ip5CXp3arnn139i73D-TfXeRNcAU5UpAGfuYPbIDpTkJ-DirqYWO6I5S7JmchPl1A"
99
103
  configuration.debugging = config["Debug"]
104
+ configuration.verify_ssl = !config["AllowInsecureRequests"]
100
105
  api = AsposeSlidesCloud::SlidesApi.new(configuration)
101
106
  o, c, _h = api.get_api_info_with_http_info
102
107
  expect(c).to eq(200)
@@ -83,7 +83,7 @@ describe 'UseCases' do
83
83
  file_name = "test.pptx"
84
84
  AsposeSlidesCloud::SpecUtils.testSlidesApi.delete_file(folder_name + "/" + file_name)
85
85
  source = File.binread("TestData/test.pdf")
86
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf(file_name, source, nil, folder_name)
86
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf(file_name, source, nil, nil, folder_name)
87
87
  end
88
88
 
89
89
  it 'append from PDF' do
@@ -93,7 +93,9 @@ describe 'UseCases' do
93
93
  AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
94
94
  slide_count = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slides(file_name, password, folder_name).slide_list.length
95
95
  source = File.binread("TestData/test.pdf")
96
- AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf(file_name, source, password, folder_name)
96
+ options = AsposeSlidesCloud::PdfImportOptions.new
97
+ options.detect_tables = false
98
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.import_from_pdf(file_name, source, options, password, folder_name)
97
99
  new_slide_count = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_slides(file_name, password, folder_name).slide_list.length
98
100
  expect(new_slide_count).to eq(slide_count + 4)
99
101
  end
@@ -135,7 +135,7 @@ describe 'UseCases' do
135
135
  folder_name = "TempSlidesSDK"
136
136
  file_name = "test.pptx"
137
137
  AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
138
- mathMl = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml(file_name, 2, 3, 1, 1, "password", folder_name)
138
+ mathMl = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion(file_name, 2, 3, 1, 1, "MathML", "password", folder_name)
139
139
  expect(mathMl).to be_truthy
140
140
  end
141
141
 
@@ -144,7 +144,7 @@ describe 'UseCases' do
144
144
  file_name = "test.pptx"
145
145
  AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
146
146
  begin
147
- AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml(file_name, 2, 1, 1, 1, "password", folder_name)
147
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.download_math_portion(file_name, 2, 1, 1, 1, "MathML", "password", folder_name)
148
148
  fail "Must have failed because conversion to MathML works only for math portions"
149
149
  rescue AsposeSlidesCloud::ApiError => e
150
150
  expect(e.code).to eq(400)
@@ -156,7 +156,7 @@ describe 'UseCases' do
156
156
  file_name = "test.pptx"
157
157
  out_path = folder_name + "/mathml.xml"
158
158
  AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
159
- mathMl = AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml(file_name, 2, 3, 1, 1, out_path, "password", folder_name)
159
+ mathMl = AsposeSlidesCloud::SpecUtils.testSlidesApi.save_math_portion(file_name, 2, 3, 1, 1, "MathML", out_path, "password", folder_name)
160
160
  expect(AsposeSlidesCloud::SpecUtils.testSlidesApi.object_exists(out_path).exists).to be true
161
161
  end
162
162
  end
@@ -39,8 +39,8 @@ describe 'UseCases' do
39
39
  dto.chart_type = "Line"
40
40
  dto.width = 400.0
41
41
  dto.height = 300.0
42
+ dto.has_title = true
42
43
  dto.title = AsposeSlidesCloud::ChartTitle.new
43
- dto.title.has_title = true
44
44
  dto.title.text = "MyTitle"
45
45
 
46
46
  category1 = AsposeSlidesCloud::ChartCategory.new
data/testConfig.json CHANGED
@@ -4,5 +4,6 @@
4
4
  "BaseUrl" : "@base_url@",
5
5
  "AsyncBaseUrl" : "@async_base_url@",
6
6
  "AuthBaseUrl" : "@base_auth_url@",
7
- "Debug" : false
7
+ "Debug" : false,
8
+ "AllowInsecureRequests" : true
8
9
  }
data/testRules.json CHANGED
@@ -31,13 +31,13 @@
31
31
  { "Value": 7, "Parameter": "SlideIndex", "Method": "/SmartArt/" },
32
32
  { "Value": 5, "Parameter": "SlideIndex", "Method": "CreateSection" },
33
33
  { "Value": 4, "Parameter": "SlideIndex", "Method": "/ShapeGeometryPath/" },
34
- { "Value": 2, "Parameter": "SlideIndex", "Method": "/AsMathMl/" },
34
+ { "Value": 2, "Parameter": "SlideIndex", "Method": "/Math/" },
35
35
  { "Value": 2, "Parameter": "SlideIndex", "Method": "DeletePictureCroppedAreas" },
36
36
  { "Value": 2, "Parameter": "ShapeIndex", "Method": "/ChartDataPoint/" },
37
37
  { "Value": 2, "Parameter": "ShapeIndex", "Method": "/ChartWall/" },
38
38
  { "Value": 2, "Parameter": "ShapeIndex", "Method": "/ShapeGeometryPath/" },
39
39
  { "Value": 2, "Parameter": "ShapeIndex", "Method": "DeletePictureCroppedAreas" },
40
- { "Value": 3, "Parameter": "ShapeIndex", "Method": "/AsMathMl/" },
40
+ { "Value": 3, "Parameter": "ShapeIndex", "Method": "/Math/" },
41
41
  { "Value": 2, "Parameter": "SectionIndex" },
42
42
  { "Value": 20, "InvalidValue": 593, "Parameter": "FontHeight" },
43
43
  { "Value": 256, "InvalidValue": 593, "Parameter": "FontColor" },
@@ -113,6 +113,7 @@
113
113
  { "InvalidValue": "svg", "Parameter": "Format", "Language": "NET" },
114
114
  { "InvalidValue": "gif", "Parameter": "Format", "Method": "/NotesSlide/", "Language": "NET" },
115
115
  { "InvalidValue": "gif", "Parameter": "Format", "Method": "/Image/", "Language": "NET" },
116
+ { "Value": "MathML", "InvalidValue": "LaTeX", "Parameter": "Format", "Method": "/Math/" },
116
117
  { "Value": "MasterSlide", "Parameter": "SlideType" },
117
118
  { "InvalidValue": "LayoutSlide", "Parameter": "SlideType", "Language": "NET" },
118
119
  { "Value": "Chart", "InvalidValue": "Table", "Parameter": "ShapeType" },
@@ -174,6 +175,7 @@
174
175
  { "Parameter": "Format", "Language": "NET" },
175
176
  { "Parameter": "Format", "Language": "Java" },
176
177
  { "Parameter": "Format", "Language": "Swift" },
178
+ { "Parameter": "Format", "Method": "/Math/" },
177
179
  { "Parameter": "SlideType" },
178
180
  { "Parameter": "ShapeType" },
179
181
  { "Parameter": "AlignmentType" },
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: 24.3.0
4
+ version: 24.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: 2024-04-01 00:00:00.000000000 Z
11
+ date: 2024-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -401,9 +401,11 @@ files:
401
401
  - lib/aspose_slides_cloud/models/line_to_path_segment.rb
402
402
  - lib/aspose_slides_cloud/models/literals.rb
403
403
  - lib/aspose_slides_cloud/models/luminance_effect.rb
404
+ - lib/aspose_slides_cloud/models/markdown_export_options.rb
404
405
  - lib/aspose_slides_cloud/models/master_slide.rb
405
406
  - lib/aspose_slides_cloud/models/master_slides.rb
406
407
  - lib/aspose_slides_cloud/models/math_element.rb
408
+ - lib/aspose_slides_cloud/models/math_format.rb
407
409
  - lib/aspose_slides_cloud/models/math_paragraph.rb
408
410
  - lib/aspose_slides_cloud/models/matrix_element.rb
409
411
  - lib/aspose_slides_cloud/models/merge.rb
@@ -433,6 +435,7 @@ files:
433
435
  - lib/aspose_slides_cloud/models/path_segment.rb
434
436
  - lib/aspose_slides_cloud/models/pattern_fill.rb
435
437
  - lib/aspose_slides_cloud/models/pdf_export_options.rb
438
+ - lib/aspose_slides_cloud/models/pdf_import_options.rb
436
439
  - lib/aspose_slides_cloud/models/picture_fill.rb
437
440
  - lib/aspose_slides_cloud/models/picture_frame.rb
438
441
  - lib/aspose_slides_cloud/models/pipeline.rb