Skip to content

Commit 36a4911

Browse files
Merge branch 'master' into release
2 parents 11f6133 + 40971f7 commit 36a4911

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+1494
-1449
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ This repository contains Aspose.Words Cloud SDK for Ruby source code. This SDK a
1313
* Watermarks and protection
1414
* Full read & write access to Document Object Model, including sections, paragraphs, text, images, tables, headers/footers and many others
1515

16+
## Enhancements in Version 23.6
17+
18+
19+
1620
## Enhancements in Version 23.5
1721

1822
- Added InsertSection method.
@@ -274,7 +278,7 @@ To use Aspose Words for Cloud Ruby SDK you need to register an account with [Asp
274278
To install this package do the following:
275279
update your Gemfile
276280
```ruby
277-
gem 'aspose_words_cloud', '~> 23.5'
281+
gem 'aspose_words_cloud', '~> 23.6'
278282
```
279283
or install directly
280284
```bash

lib/aspose_words_cloud/models/bmp_save_options_data.rb

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,6 @@ class BmpSaveOptionsData
126126
# Gets or sets a value indicating whether to use anti-aliasing for rendering.
127127
attr_accessor :use_anti_aliasing
128128

129-
# Gets or sets a value indicating whether to use GDI+ or Aspose.Words metafile renderer when saving to EMF.
130-
attr_accessor :use_gdi_emf_renderer
131-
132129
# Gets or sets a value indicating whether to use high quality (i.e. slow) rendering algorithms.
133130
attr_accessor :use_high_quality_rendering
134131

@@ -137,6 +134,9 @@ class BmpSaveOptionsData
137134
# The default value is 96.
138135
attr_accessor :vertical_resolution
139136

137+
# Gets or sets a value indicating whether to use GDI+ or Aspose.Words metafile renderer when saving to EMF.
138+
attr_accessor :use_gdi_emf_renderer
139+
140140
# Gets the format of save.
141141
attr_accessor :save_format
142142

@@ -194,9 +194,9 @@ def self.attribute_map
194194
:'resolution' => :'Resolution',
195195
:'scale' => :'Scale',
196196
:'use_anti_aliasing' => :'UseAntiAliasing',
197-
:'use_gdi_emf_renderer' => :'UseGdiEmfRenderer',
198197
:'use_high_quality_rendering' => :'UseHighQualityRendering',
199198
:'vertical_resolution' => :'VerticalResolution',
199+
:'use_gdi_emf_renderer' => :'UseGdiEmfRenderer',
200200
:'save_format' => :'SaveFormat'
201201
}
202202
end
@@ -233,9 +233,9 @@ def self.swagger_types
233233
:'resolution' => :'Float',
234234
:'scale' => :'Float',
235235
:'use_anti_aliasing' => :'BOOLEAN',
236-
:'use_gdi_emf_renderer' => :'BOOLEAN',
237236
:'use_high_quality_rendering' => :'BOOLEAN',
238237
:'vertical_resolution' => :'Float',
238+
:'use_gdi_emf_renderer' => :'BOOLEAN',
239239
:'save_format' => :'String'
240240
}
241241
end
@@ -366,17 +366,17 @@ def initialize(attributes = {})
366366
self.use_anti_aliasing = attributes[:'UseAntiAliasing']
367367
end
368368

369-
if attributes.key?(:'UseGdiEmfRenderer')
370-
self.use_gdi_emf_renderer = attributes[:'UseGdiEmfRenderer']
371-
end
372-
373369
if attributes.key?(:'UseHighQualityRendering')
374370
self.use_high_quality_rendering = attributes[:'UseHighQualityRendering']
375371
end
376372

377373
if attributes.key?(:'VerticalResolution')
378374
self.vertical_resolution = attributes[:'VerticalResolution']
379375
end
376+
377+
if attributes.key?(:'UseGdiEmfRenderer')
378+
self.use_gdi_emf_renderer = attributes[:'UseGdiEmfRenderer']
379+
end
380380
end
381381

382382
# Show invalid properties with the reasons. Usually used together with valid?
@@ -556,9 +556,9 @@ def ==(other)
556556
resolution == other.resolution &&
557557
scale == other.scale &&
558558
use_anti_aliasing == other.use_anti_aliasing &&
559-
use_gdi_emf_renderer == other.use_gdi_emf_renderer &&
560559
use_high_quality_rendering == other.use_high_quality_rendering &&
561560
vertical_resolution == other.vertical_resolution &&
561+
use_gdi_emf_renderer == other.use_gdi_emf_renderer &&
562562
save_format == other.save_format
563563
end
564564

@@ -571,7 +571,7 @@ def eql?(other)
571571
# Calculates hash code according to all attributes.
572572
# @return [Fixnum] Hash code
573573
def hash
574-
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_gdi_emf_renderer, use_high_quality_rendering, vertical_resolution, save_format].hash
574+
[allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_high_quality_rendering, vertical_resolution, use_gdi_emf_renderer, save_format].hash
575575
end
576576

577577
# Builds the object from hash

lib/aspose_words_cloud/models/comment.rb

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -32,51 +32,51 @@ class Comment
3232
# Gets or sets the link to the document.
3333
attr_accessor :link
3434

35-
# Gets or sets the author name for a comment.
36-
attr_accessor :author
35+
# Gets or sets the link to comment range start node.
36+
attr_accessor :range_start
3737

38-
# Gets or sets the content of the comment.
39-
attr_accessor :content
38+
# Gets or sets the link to comment range end node.
39+
attr_accessor :range_end
4040

41-
# Gets or sets the date and time that the comment was made.
42-
attr_accessor :date_time
41+
# Gets or sets the author name for a comment.
42+
attr_accessor :author
4343

4444
# Gets or sets the initials of the user associated with a specific comment.
4545
attr_accessor :initial
4646

47-
# Gets or sets the link to comment range end node.
48-
attr_accessor :range_end
49-
50-
# Gets or sets the link to comment range start node.
51-
attr_accessor :range_start
47+
# Gets or sets the date and time that the comment was made.
48+
attr_accessor :date_time
5249

5350
# Gets or sets text of the comment.
5451
attr_accessor :text
52+
53+
# Gets or sets the content of the comment.
54+
attr_accessor :content
5555
# Attribute mapping from ruby-style variable name to JSON key.
5656
def self.attribute_map
5757
{
5858
:'link' => :'Link',
59+
:'range_start' => :'RangeStart',
60+
:'range_end' => :'RangeEnd',
5961
:'author' => :'Author',
60-
:'content' => :'Content',
61-
:'date_time' => :'DateTime',
6262
:'initial' => :'Initial',
63-
:'range_end' => :'RangeEnd',
64-
:'range_start' => :'RangeStart',
65-
:'text' => :'Text'
63+
:'date_time' => :'DateTime',
64+
:'text' => :'Text',
65+
:'content' => :'Content'
6666
}
6767
end
6868

6969
# Attribute type mapping.
7070
def self.swagger_types
7171
{
7272
:'link' => :'WordsApiLink',
73+
:'range_start' => :'DocumentPosition',
74+
:'range_end' => :'DocumentPosition',
7375
:'author' => :'String',
74-
:'content' => :'StoryChildNodes',
75-
:'date_time' => :'DateTime',
7676
:'initial' => :'String',
77-
:'range_end' => :'DocumentPosition',
78-
:'range_start' => :'DocumentPosition',
79-
:'text' => :'String'
77+
:'date_time' => :'DateTime',
78+
:'text' => :'String',
79+
:'content' => :'StoryChildNodes'
8080
}
8181
end
8282

@@ -92,33 +92,33 @@ def initialize(attributes = {})
9292
self.link = attributes[:'Link']
9393
end
9494

95-
if attributes.key?(:'Author')
96-
self.author = attributes[:'Author']
95+
if attributes.key?(:'RangeStart')
96+
self.range_start = attributes[:'RangeStart']
9797
end
9898

99-
if attributes.key?(:'Content')
100-
self.content = attributes[:'Content']
99+
if attributes.key?(:'RangeEnd')
100+
self.range_end = attributes[:'RangeEnd']
101101
end
102102

103-
if attributes.key?(:'DateTime')
104-
self.date_time = attributes[:'DateTime']
103+
if attributes.key?(:'Author')
104+
self.author = attributes[:'Author']
105105
end
106106

107107
if attributes.key?(:'Initial')
108108
self.initial = attributes[:'Initial']
109109
end
110110

111-
if attributes.key?(:'RangeEnd')
112-
self.range_end = attributes[:'RangeEnd']
113-
end
114-
115-
if attributes.key?(:'RangeStart')
116-
self.range_start = attributes[:'RangeStart']
111+
if attributes.key?(:'DateTime')
112+
self.date_time = attributes[:'DateTime']
117113
end
118114

119115
if attributes.key?(:'Text')
120116
self.text = attributes[:'Text']
121117
end
118+
119+
if attributes.key?(:'Content')
120+
self.content = attributes[:'Content']
121+
end
122122
end
123123

124124
# Show invalid properties with the reasons. Usually used together with valid?
@@ -140,13 +140,13 @@ def ==(other)
140140
return true if self.equal?(other)
141141
self.class == other.class &&
142142
link == other.link &&
143+
range_start == other.range_start &&
144+
range_end == other.range_end &&
143145
author == other.author &&
144-
content == other.content &&
145-
date_time == other.date_time &&
146146
initial == other.initial &&
147-
range_end == other.range_end &&
148-
range_start == other.range_start &&
149-
text == other.text
147+
date_time == other.date_time &&
148+
text == other.text &&
149+
content == other.content
150150
end
151151

152152
# @see the `==` method
@@ -158,7 +158,7 @@ def eql?(other)
158158
# Calculates hash code according to all attributes.
159159
# @return [Fixnum] Hash code
160160
def hash
161-
[link, author, content, date_time, initial, range_end, range_start, text].hash
161+
[link, range_start, range_end, author, initial, date_time, text, content].hash
162162
end
163163

164164
# Builds the object from hash

lib/aspose_words_cloud/models/comment_insert.rb

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,12 @@ module AsposeWordsCloud
2929

3030
# Comment insert.
3131
class CommentInsert
32+
# Gets or sets the link to comment range start node.
33+
attr_accessor :range_start
34+
35+
# Gets or sets the link to comment range end node.
36+
attr_accessor :range_end
37+
3238
# Gets or sets the author name for a comment.
3339
attr_accessor :author
3440

@@ -38,34 +44,28 @@ class CommentInsert
3844
# Gets or sets the initials of the user associated with a specific comment.
3945
attr_accessor :initial
4046

41-
# Gets or sets the link to comment range end node.
42-
attr_accessor :range_end
43-
44-
# Gets or sets the link to comment range start node.
45-
attr_accessor :range_start
46-
4747
# Gets or sets text of the comment.
4848
attr_accessor :text
4949
# Attribute mapping from ruby-style variable name to JSON key.
5050
def self.attribute_map
5151
{
52+
:'range_start' => :'RangeStart',
53+
:'range_end' => :'RangeEnd',
5254
:'author' => :'Author',
5355
:'date_time' => :'DateTime',
5456
:'initial' => :'Initial',
55-
:'range_end' => :'RangeEnd',
56-
:'range_start' => :'RangeStart',
5757
:'text' => :'Text'
5858
}
5959
end
6060

6161
# Attribute type mapping.
6262
def self.swagger_types
6363
{
64+
:'range_start' => :'NewDocumentPosition',
65+
:'range_end' => :'NewDocumentPosition',
6466
:'author' => :'String',
6567
:'date_time' => :'DateTime',
6668
:'initial' => :'String',
67-
:'range_end' => :'NewDocumentPosition',
68-
:'range_start' => :'NewDocumentPosition',
6969
:'text' => :'String'
7070
}
7171
end
@@ -78,6 +78,14 @@ def initialize(attributes = {})
7878
# convert string to symbol for hash key
7979
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
8080

81+
if attributes.key?(:'RangeStart')
82+
self.range_start = attributes[:'RangeStart']
83+
end
84+
85+
if attributes.key?(:'RangeEnd')
86+
self.range_end = attributes[:'RangeEnd']
87+
end
88+
8189
if attributes.key?(:'Author')
8290
self.author = attributes[:'Author']
8391
end
@@ -90,14 +98,6 @@ def initialize(attributes = {})
9098
self.initial = attributes[:'Initial']
9199
end
92100

93-
if attributes.key?(:'RangeEnd')
94-
self.range_end = attributes[:'RangeEnd']
95-
end
96-
97-
if attributes.key?(:'RangeStart')
98-
self.range_start = attributes[:'RangeStart']
99-
end
100-
101101
if attributes.key?(:'Text')
102102
self.text = attributes[:'Text']
103103
end
@@ -121,11 +121,11 @@ def valid?
121121
def ==(other)
122122
return true if self.equal?(other)
123123
self.class == other.class &&
124+
range_start == other.range_start &&
125+
range_end == other.range_end &&
124126
author == other.author &&
125127
date_time == other.date_time &&
126128
initial == other.initial &&
127-
range_end == other.range_end &&
128-
range_start == other.range_start &&
129129
text == other.text
130130
end
131131

@@ -138,7 +138,7 @@ def eql?(other)
138138
# Calculates hash code according to all attributes.
139139
# @return [Fixnum] Hash code
140140
def hash
141-
[author, date_time, initial, range_end, range_start, text].hash
141+
[range_start, range_end, author, date_time, initial, text].hash
142142
end
143143

144144
# Builds the object from hash

0 commit comments

Comments
 (0)