aspose_slides_cloud 22.7.0 → 22.9.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 +4 -4
- data/Gemfile.lock +7 -7
- data/README.md +17 -1
- data/TestData/calibri.ttf +0 -0
- data/TestData/shapes.svg +20 -0
- data/TestData/test.pptx +0 -0
- data/docker-entrypoint.sh +3 -1
- data/lib/aspose_slides_cloud/api/slides_api.rb +953 -51
- data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +5 -1
- data/lib/aspose_slides_cloud/models/data_point.rb +42 -2
- data/lib/aspose_slides_cloud/models/export_options.rb +13 -1
- data/lib/aspose_slides_cloud/models/font_data.rb +221 -0
- data/lib/aspose_slides_cloud/models/font_subst_rule.rb +231 -0
- data/lib/aspose_slides_cloud/models/fonts_data.rb +213 -0
- data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/html5_export_options.rb +2 -1
- 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/one_value_chart_data_point.rb +5 -1
- data/lib/aspose_slides_cloud/models/pdf_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/pptx_export_options.rb +2 -1
- data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +5 -1
- 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/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/type_registry.rb +3 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +3 -0
- data/spec/api/slides_api_spec.rb +2414 -4
- data/spec/spec_utils.rb +5 -1
- data/spec/use_cases/chart_spec.rb +209 -0
- data/spec/use_cases/comment_spec.rb +159 -0
- data/spec/use_cases/convert_spec.rb +39 -0
- data/spec/use_cases/font_spec.rb +143 -0
- data/spec/use_cases/layout_slide_spec.rb +18 -0
- data/spec/use_cases/master_slide_spec.rb +16 -0
- data/spec/use_cases/merge_spec.rb +21 -0
- data/spec/use_cases/notes_slide_spec.rb +34 -0
- data/spec/use_cases/paragraph_spec.rb +322 -0
- data/spec/use_cases/portion_spec.rb +316 -0
- data/spec/use_cases/property_spec.rb +37 -1
- data/spec/use_cases/shape_spec.rb +193 -0
- data/spec/use_cases/slide_spec.rb +197 -0
- data/spec/use_cases/text_format_spec.rb +74 -0
- data/spec/use_cases/text_spec.rb +39 -0
- data/testRules.json +32 -1
- metadata +19 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '096527bfe3f62445755c0568bfdebc96ab63d2ab72f889df6360d3e2d101e77a'
|
4
|
+
data.tar.gz: 38dd1eec7b62033a282bd67d5a6df3c411714b7cc78f645240fb222ee5bf3a32
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94fabb39f800a4caf730dfc9ff9fb4bef95601c9ef5382a66b35f335437a96638b6fe150608074a87ce0d35b2ec80625b63e983214f7c97ee7ab90ceaa3345f9
|
7
|
+
data.tar.gz: 94099a45452b3789015eab90fbc5bda06deccb053783b00bdc05135cacb787f3c096f5677d2cb150fd4a5e09ffb913ce03de546767880630a3c033805f0192e0
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aspose_slides_cloud (22.
|
4
|
+
aspose_slides_cloud (22.9.0)
|
5
5
|
faraday (~> 0.17, >= 0.17.3)
|
6
6
|
json (~> 2.1, >= 2.1.0)
|
7
7
|
|
@@ -9,8 +9,8 @@ GEM
|
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
ZenTest (4.12.1)
|
12
|
-
addressable (2.8.
|
13
|
-
public_suffix (>= 2.0.2, <
|
12
|
+
addressable (2.8.1)
|
13
|
+
public_suffix (>= 2.0.2, < 6.0)
|
14
14
|
autotest (4.4.6)
|
15
15
|
ZenTest (>= 4.4.1)
|
16
16
|
autotest-fsevent (0.2.19)
|
@@ -26,7 +26,7 @@ GEM
|
|
26
26
|
hashdiff (1.0.1)
|
27
27
|
json (2.6.2)
|
28
28
|
multipart-post (2.2.3)
|
29
|
-
public_suffix (
|
29
|
+
public_suffix (5.0.0)
|
30
30
|
rake (12.3.3)
|
31
31
|
rexml (3.2.5)
|
32
32
|
rspec (3.11.0)
|
@@ -35,14 +35,14 @@ GEM
|
|
35
35
|
rspec-mocks (~> 3.11.0)
|
36
36
|
rspec-core (3.11.0)
|
37
37
|
rspec-support (~> 3.11.0)
|
38
|
-
rspec-expectations (3.11.
|
38
|
+
rspec-expectations (3.11.1)
|
39
39
|
diff-lcs (>= 1.2.0, < 2.0)
|
40
40
|
rspec-support (~> 3.11.0)
|
41
41
|
rspec-mocks (3.11.1)
|
42
42
|
diff-lcs (>= 1.2.0, < 2.0)
|
43
43
|
rspec-support (~> 3.11.0)
|
44
|
-
rspec-support (3.11.
|
45
|
-
rspec_junit_formatter (0.
|
44
|
+
rspec-support (3.11.1)
|
45
|
+
rspec_junit_formatter (0.6.0)
|
46
46
|
rspec-core (>= 2, < 4, != 2.12.0)
|
47
47
|
rubyzip (2.3.2)
|
48
48
|
sys-uname (1.2.2)
|
data/README.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
# Ruby REST API to Process Presentation in Cloud
|
4
4
|
This repository contains Aspose.Slides Cloud SDK for Ruby source code. This SDK allows you to [process & manipulate PPT, PPTX, ODP, OTP](https://products.aspose.cloud/slides/java) using Aspose.slides Cloud REST APIs in your Ruby applications.
|
5
5
|
|
6
|
-
You may want to check out Aspose free [
|
6
|
+
You may want to check out Aspose free [Powerpoint to PDF](https://products.aspose.app/slides/conversion), [Powerpoint to Word](https://products.aspose.app/slides/conversion/ppt-to-word), [Powerpoint to JPG](https://products.aspose.app/slides/conversion/ppt-to-jpg), [Powerpoint to PNG](https://products.aspose.app/slides/conversion/ppt-to-png), [PDF to Powerpoint](https://products.aspose.app/slides/import/pdf-to-powerpoint), [JPG to Powerpoint](https://products.aspose.app/slides/import/jpg-to-ppt), and [PNG to Powerpoint](https://products.aspose.app/slides/import/png-to-ppt) converters because they are live implementations of popular conversion processes.
|
7
7
|
|
8
8
|
## Presentation Processing Features
|
9
9
|
|
@@ -27,6 +27,22 @@ You may want to check out Aspose free [PPT to PDF](https://products.aspose.app/s
|
|
27
27
|
**Web:** HTML/HTML5
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
29
29
|
|
30
|
+
## Enhancements in Version 22.9
|
31
|
+
|
32
|
+
* Added new **ReplaceFont** and **ReplaceFontOnline** methods that allow replacing presentation fonts.
|
33
|
+
* Added new **SetEmbeddedFontFromRequest** and **SetEmbeddedFontFromRequestOnline** that allow to embed fonts without uploading them to the storage.
|
34
|
+
* Added an optional **fontsFolder** parameter to **SetEmbeddedFont** and **SetEmbeddedFontOnline** methods to enable using custom fonts with those methods.
|
35
|
+
* Added **FontSubstRules** property to **ExportOptions** class to allow specifying font substitution rules in conversion methods.
|
36
|
+
* Added an optional **group** parameter to **ImportImagesFromSvg** method to allow importing SVG images as a GroupShape.
|
37
|
+
* Added new **CreateSmartArtNode** and **DeleteSmartArtNode** methods to manage individual nodes in SmartArt shapes.
|
38
|
+
* Added **FillFomat**, **LineFormat**, **EffectFormat** and **ThreeDFormat** properties to **DataPoint** class that allow formatting individual chart data points.
|
39
|
+
|
40
|
+
## Enhancements in Version 22.8
|
41
|
+
|
42
|
+
* With new **GetFonts** and **GetFontsOnline** methods you can get a list for fonts used in the presentation.
|
43
|
+
* Added new **SetEmbeddedFont**, **SetEmbeddedFontOnline**, **DeleteEmbeddedFont** and **DeleteEmbeddedFontOnline** methods to embed/unembed presentation fonts.
|
44
|
+
* Added new **ImportImagesFromSvg** method to import SVG images as individual geometry shapes.
|
45
|
+
|
30
46
|
## Enhancements in Version 22.7
|
31
47
|
|
32
48
|
* Added **Html**, **Pdf**, **Xps**, **Pptx**, **Odp**, **Otp**, **Ppt**, **Pps**, **Ppsx**, **Pptm**, **Ppsm**, **Potx**, **Pot**, **Potm**, **Svg**, **Fodp**, **Xaml**, **Html5** to the list of allowed values for **SlideExportFormat** enum. You can now export slide notes to those formats.
|
Binary file
|
data/TestData/shapes.svg
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="1280" height="720" viewBox="-196.5 -102 393 204" xml:space="preserve">
|
2
|
+
<desc>Created with Fabric.js 4.6.0</desc>
|
3
|
+
<defs>
|
4
|
+
</defs>
|
5
|
+
<g transform="matrix(1 0 0 1 -37.79 -46.59)" >
|
6
|
+
<rect style="stroke: rgb(76,84,94); stroke-width: 4; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: round; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-opacity: 0; fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" x="-50" y="-25" rx="0" ry="0" width="100" height="50" />
|
7
|
+
</g>
|
8
|
+
<g transform="matrix(1 0 0 1 -55.95 24.61)" >
|
9
|
+
<polygon style="stroke: rgb(76,84,94); stroke-width: 4; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: round; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-opacity: 0; fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" points="0,-35 40,35 -40,35 " />
|
10
|
+
</g>
|
11
|
+
<g transform="matrix(1 0 0 1 -46.97 39.61)" >
|
12
|
+
<circle style="stroke: rgb(76,84,94); stroke-width: 4; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: round; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-opacity: 0; fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" cx="0" cy="0" r="50" />
|
13
|
+
</g>
|
14
|
+
<g transform="matrix(1 0 0 1 70.14 37.97)" >
|
15
|
+
<polygon style="stroke: rgb(76,84,94); stroke-width: 4; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: round; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-opacity: 0; fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" points="-60,0 -20,30 -20,10 60,10 60,-10 -20,-10 -20,-30 " />
|
16
|
+
</g>
|
17
|
+
<g transform="matrix(1 0 0 1 0 -17.7)" >
|
18
|
+
<line style="stroke: rgb(76,84,94); stroke-width: 4; stroke-dasharray: none; stroke-linecap: butt; stroke-dashoffset: 0; stroke-linejoin: miter; stroke-miterlimit: 4; fill: rgb(0,0,0); fill-rule: nonzero; opacity: 1;" vector-effect="non-scaling-stroke" x1="-174.95139114253502" y1="71.91991432084097" x2="174.95139114253502" y2="-71.91991432084097" />
|
19
|
+
</g>
|
20
|
+
</svg>
|
data/TestData/test.pptx
CHANGED
Binary file
|
data/docker-entrypoint.sh
CHANGED
@@ -4,4 +4,6 @@ sed -i "s/@your_client_id@/${CLIENT_ID}/g" testConfig.json
|
|
4
4
|
sed -i "s/@your_client_secret@/${CLIENT_SECRET}/g" testConfig.json
|
5
5
|
if [ -n "$BASE_URL" ] ; then sed -i "s+https://api-qa.aspose.cloud+${BASE_URL}+g" testConfig.json ; fi
|
6
6
|
|
7
|
-
|
7
|
+
rm -rf spec/api
|
8
|
+
mkdir testResults
|
9
|
+
#rspec spec --format RspecJunitFormatter --out testResults/rspec.xml
|