aspose_slides_cloud 24.5.0 → 24.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +11 -9
- data/README.md +17 -0
- data/TestData/pictureFrame.html +39 -0
- data/TestData/test.pptx +0 -0
- data/aspose_slides_cloud.gemspec +1 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +75 -204
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +8 -8
- data/lib/aspose_slides_cloud/api_client.rb +15 -3
- data/lib/aspose_slides_cloud/models/document_property.rb +0 -5
- data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/export_options.rb +23 -1
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/gradient_fill.rb +0 -25
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +13 -2
- data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
- data/lib/aspose_slides_cloud/models/markdown_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/operation.rb +1 -10
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -2
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +26 -3
- data/lib/aspose_slides_cloud/models/protection_properties.rb +0 -10
- data/lib/aspose_slides_cloud/models/save.rb +2 -2
- data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
- data/lib/aspose_slides_cloud/models/slide.rb +0 -5
- data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
- data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/table.rb +12 -2
- data/lib/aspose_slides_cloud/models/table_cell.rb +11 -1
- data/lib/aspose_slides_cloud/models/table_cell_merge_options.rb +0 -5
- data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/spec/api/slides_api_spec.rb +96 -543
- data/spec/use_cases/text_spec.rb +7 -4
- metadata +23 -2
data/spec/use_cases/text_spec.rb
CHANGED
@@ -47,14 +47,17 @@ describe 'UseCases' do
|
|
47
47
|
old_value = "text"
|
48
48
|
new_value = "new_text"
|
49
49
|
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
50
|
-
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text(file_name, old_value, new_value, nil, password, folder_name)
|
50
|
+
result = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text(file_name, old_value, new_value, nil, nil, password, folder_name)
|
51
51
|
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
52
|
-
result_with_empty = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text(file_name, old_value, new_value, true, password, folder_name)
|
52
|
+
result_with_empty = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text(file_name, old_value, new_value, true, nil, password, folder_name)
|
53
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
54
|
+
result_whole_words = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text(file_name, old_value, new_value, true, true, password, folder_name)
|
53
55
|
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
54
56
|
slide_result = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_slide_text(file_name, slide_index, old_value, new_value, nil, password, folder_name)
|
55
57
|
AsposeSlidesCloud::SpecUtils.testSlidesApi.copy_file("TempTests/" + file_name, folder_name + "/" + file_name)
|
56
58
|
slide_result_with_empty = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_slide_text(file_name, slide_index, old_value, new_value, true, password, folder_name)
|
57
59
|
expect(result_with_empty.matches).to be > result.matches
|
60
|
+
expect(result_with_empty.matches).to be > result_whole_words.matches
|
58
61
|
expect(result.matches).to be > slide_result.matches
|
59
62
|
expect(slide_result_with_empty.matches).to be > slide_result.matches
|
60
63
|
end
|
@@ -65,8 +68,8 @@ describe 'UseCases' do
|
|
65
68
|
old_value = "text"
|
66
69
|
new_value = "new_text"
|
67
70
|
source = File.binread("TestData/test.pptx")
|
68
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online(source, old_value, new_value, nil, password)
|
69
|
-
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online(source, old_value, new_value, true, password)
|
71
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online(source, old_value, new_value, nil, nil, password)
|
72
|
+
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online(source, old_value, new_value, true, nil, password)
|
70
73
|
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_slide_text_online(source, slide_index, old_value, new_value, nil, password)
|
71
74
|
AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_slide_text_online(source, slide_index, old_value, new_value, true, password)
|
72
75
|
end
|
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.
|
4
|
+
version: 24.7.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-
|
11
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -90,6 +90,26 @@ dependencies:
|
|
90
90
|
- - ">="
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: 2.1.0
|
93
|
+
- !ruby/object:Gem::Dependency
|
94
|
+
name: warning
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
96
|
+
requirements:
|
97
|
+
- - "~>"
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: '1.4'
|
100
|
+
- - ">="
|
101
|
+
- !ruby/object:Gem::Version
|
102
|
+
version: 1.4.0
|
103
|
+
type: :runtime
|
104
|
+
prerelease: false
|
105
|
+
version_requirements: !ruby/object:Gem::Requirement
|
106
|
+
requirements:
|
107
|
+
- - "~>"
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '1.4'
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
version: 1.4.0
|
93
113
|
- !ruby/object:Gem::Dependency
|
94
114
|
name: rspec
|
95
115
|
requirement: !ruby/object:Gem::Requirement
|
@@ -268,6 +288,7 @@ files:
|
|
268
288
|
- TestData/calibri.ttf
|
269
289
|
- TestData/macros.pptm
|
270
290
|
- TestData/oleObject.xlsx
|
291
|
+
- TestData/pictureFrame.html
|
271
292
|
- TestData/shapes.svg
|
272
293
|
- TestData/test-unprotected.pptx
|
273
294
|
- TestData/test.pdf
|