aspose_words_cloud 26.9 → 26.10

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ebe540abcc0fa66d9f01ea29e9fe5eb9a1d4dd2a1b3e6d12d658ce924137c058
4
- data.tar.gz: 51e670ac59d1a8dc106de6d6d459ec1e6e44e0ec3929c1403aeb79605f9e760c
3
+ metadata.gz: ec14f969f69d3dc35e3266efb5c4c8ddd2d59f4c829b8381f920767dc2177cca
4
+ data.tar.gz: f0ab912c81c94e5394f4fc9c4fd6fe655c3f621af56afbf952abf85cc2a8b4b6
5
5
  SHA512:
6
- metadata.gz: 8ab93380604349a0043d72d734a5101d5ec30a2272040e8517f1abc481b948895594eaa3870a477936c0fce4e252633584e8021c18a4c8c6ddbe82055d50e3a6
7
- data.tar.gz: 3535765b370df3cb5e827098d027f0ec0e50fbc75e2e9f1d63640598c456158f69a85acd9b76824e721121fc0712feb309f0a7990774f9fd732cccf13bfc73ac
6
+ metadata.gz: dd3ba5939380de99a008903ad158b3aeb367e99b747a01e01ee99dc8bf6156285cdb8d8f59ab0b90ff43c7aac58916358f1c6b11414aaaa6aa644524eadffb5b
7
+ data.tar.gz: 220a824f8d08be346a8e9365917d00cd07c6168d15d21f1ff249ad831c7fa0ce6f399c6ae0b1ab19528f9a1964e6745569368d449605c7dad2bce83bdc70ead9
@@ -0,0 +1,227 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="advanced_compare_options.rb">
3
+ # Copyright (c) 2026 Aspose.Words for Cloud
4
+ # </copyright>
5
+ # <summary>
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to deal
8
+ # in the Software without restriction, including without limitation the rights
9
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ # copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in all
14
+ # copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ # SOFTWARE.
23
+ # </summary>
24
+ # ------------------------------------------------------------------------------------
25
+
26
+ require 'date'
27
+
28
+ module AsposeWordsCloud
29
+
30
+ # Allows to set advanced compare options.
31
+ class AdvancedCompareOptions
32
+ # Gets or sets the value indicating whether list definition contents are compared instead of list definition Ids.
33
+ # Default value is false.
34
+ attr_accessor :compare_list_definitions
35
+
36
+ # Gets or sets the value indicating whether to ignore difference in DrawingML unique Id.
37
+ # Default value is false.
38
+ attr_accessor :ignore_dml_unique_id
39
+
40
+ # Gets or sets the value indicating whether to ignore difference in StructuredDocumentTag store item Id.
41
+ # Default value is false.
42
+ attr_accessor :ignore_store_item_id
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'compare_list_definitions' => :'CompareListDefinitions',
47
+ :'ignore_dml_unique_id' => :'IgnoreDmlUniqueId',
48
+ :'ignore_store_item_id' => :'IgnoreStoreItemId'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.swagger_types
54
+ {
55
+ :'compare_list_definitions' => :'BOOLEAN',
56
+ :'ignore_dml_unique_id' => :'BOOLEAN',
57
+ :'ignore_store_item_id' => :'BOOLEAN'
58
+ }
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ return unless attributes.is_a?(Hash)
65
+
66
+ # convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
+
69
+ if attributes.key?(:'CompareListDefinitions')
70
+ self.compare_list_definitions = attributes[:'CompareListDefinitions']
71
+ end
72
+
73
+ if attributes.key?(:'IgnoreDmlUniqueId')
74
+ self.ignore_dml_unique_id = attributes[:'IgnoreDmlUniqueId']
75
+ end
76
+
77
+ if attributes.key?(:'IgnoreStoreItemId')
78
+ self.ignore_store_item_id = attributes[:'IgnoreStoreItemId']
79
+ end
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ return true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(other)
91
+ return true if self.equal?(other)
92
+ self.class == other.class &&
93
+ compare_list_definitions == other.compare_list_definitions &&
94
+ ignore_dml_unique_id == other.ignore_dml_unique_id &&
95
+ ignore_store_item_id == other.ignore_store_item_id
96
+ end
97
+
98
+ # @see the `==` method
99
+ # @param [Object] Object to be compared
100
+ def eql?(other)
101
+ self == other
102
+ end
103
+
104
+ # Calculates hash code according to all attributes.
105
+ # @return [Fixnum] Hash code
106
+ def hash
107
+ [compare_list_definitions, ignore_dml_unique_id, ignore_store_item_id].hash
108
+ end
109
+
110
+ # Builds the object from hash
111
+ # @param [Hash] attributes Model attributes in the form of hash
112
+ # @return [Object] Returns the model itself
113
+ def build_from_hash(attributes)
114
+ return nil unless attributes.is_a?(Hash)
115
+ self.class.swagger_types.each_pair do |key, type|
116
+ if type =~ /\AArray<(.*)>/i
117
+ # check to ensure the input is an array given that the the attribute
118
+ # is documented as an array but the input is not
119
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
120
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
121
+ end
122
+ elsif !attributes[self.class.attribute_map[key]].nil?
123
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
124
+ end
125
+ # or else data not found in attributes(hash), not an issue as the data can be optional
126
+ end
127
+
128
+ self
129
+ end
130
+
131
+ # Deserializes the data based on type
132
+ # @param string type Data type
133
+ # @param string value Value to be deserialized
134
+ # @return [Object] Deserialized data
135
+ def _deserialize(type, value)
136
+ case type.to_sym
137
+ when :DateTime
138
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
139
+ when :Date
140
+ Time.at(/\d/.match(value)[0].to_f).to_date
141
+ when :String
142
+ value.to_s
143
+ when :Integer
144
+ value.to_i
145
+ when :Float
146
+ value.to_f
147
+ when :BOOLEAN
148
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
149
+ true
150
+ else
151
+ false
152
+ end
153
+ when :Object
154
+ # generic object (usually a Hash), return directly
155
+ value
156
+ when /\AArray<(?<inner_type>.+)>\z/
157
+ inner_type = Regexp.last_match[:inner_type]
158
+ value.map { |v| _deserialize(inner_type, v) }
159
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
160
+ k_type = Regexp.last_match[:k_type]
161
+ v_type = Regexp.last_match[:v_type]
162
+ {}.tap do |hash|
163
+ value.each do |k, v|
164
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
165
+ end
166
+ end
167
+ else
168
+ # model
169
+ if value[:'$type']
170
+ type = value[:'$type'][0..-4]
171
+ end
172
+
173
+ temp_model = AsposeWordsCloud.const_get(type).new
174
+ temp_model.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ next if value.nil?
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map { |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ def collectFilesContent(resultFilesContent)
221
+ end
222
+
223
+ def validate()
224
+ end
225
+
226
+ end
227
+ end
@@ -29,6 +29,9 @@ module AsposeWordsCloud
29
29
 
30
30
  # Container class for compare documents.
31
31
  class CompareData
32
+ # Gets or sets advanced compare options that might help to produce more precise comparison output.
33
+ attr_accessor :advanced_options
34
+
32
35
  # Gets or sets the initials of the author to use for revisions.
33
36
  attr_accessor :author
34
37
 
@@ -49,6 +52,7 @@ module AsposeWordsCloud
49
52
  # Attribute mapping from ruby-style variable name to JSON key.
50
53
  def self.attribute_map
51
54
  {
55
+ :'advanced_options' => :'AdvancedOptions',
52
56
  :'author' => :'Author',
53
57
  :'compare_options' => :'CompareOptions',
54
58
  :'comparing_with_document' => :'ComparingWithDocument',
@@ -61,6 +65,7 @@ module AsposeWordsCloud
61
65
  # Attribute type mapping.
62
66
  def self.swagger_types
63
67
  {
68
+ :'advanced_options' => :'AdvancedCompareOptions',
64
69
  :'author' => :'String',
65
70
  :'compare_options' => :'CompareOptions',
66
71
  :'comparing_with_document' => :'String',
@@ -78,6 +83,10 @@ module AsposeWordsCloud
78
83
  # convert string to symbol for hash key
79
84
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
80
85
 
86
+ if attributes.key?(:'AdvancedOptions')
87
+ self.advanced_options = attributes[:'AdvancedOptions']
88
+ end
89
+
81
90
  if attributes.key?(:'Author')
82
91
  self.author = attributes[:'Author']
83
92
  end
@@ -114,6 +123,7 @@ module AsposeWordsCloud
114
123
  def ==(other)
115
124
  return true if self.equal?(other)
116
125
  self.class == other.class &&
126
+ advanced_options == other.advanced_options &&
117
127
  author == other.author &&
118
128
  compare_options == other.compare_options &&
119
129
  comparing_with_document == other.comparing_with_document &&
@@ -131,7 +141,7 @@ module AsposeWordsCloud
131
141
  # Calculates hash code according to all attributes.
132
142
  # @return [Fixnum] Hash code
133
143
  def hash
134
- [author, compare_options, comparing_with_document, date_time, file_reference, result_document_format].hash
144
+ [advanced_options, author, compare_options, comparing_with_document, date_time, file_reference, result_document_format].hash
135
145
  end
136
146
 
137
147
  # Builds the object from hash
@@ -255,6 +265,9 @@ module AsposeWordsCloud
255
265
  def validate()
256
266
  raise ArgumentError, 'Property author in CompareData is required.' if self.author.nil?
257
267
  raise ArgumentError, 'Property file_reference in CompareData is required.' if self.file_reference.nil?
268
+ unless self.advanced_options.nil?
269
+ self.advanced_options.validate
270
+ end
258
271
  unless self.compare_options.nil?
259
272
  self.compare_options.validate
260
273
  end
@@ -24,5 +24,5 @@
24
24
  # ------------------------------------------------------------------------------------
25
25
 
26
26
  module AsposeWordsCloud
27
- VERSION = "26.9".freeze
27
+ VERSION = "26.10".freeze
28
28
  end
@@ -32,6 +32,7 @@ require_relative 'aspose_words_cloud/job_handler'
32
32
 
33
33
  # Models
34
34
  require_relative 'aspose_words_cloud/models/file_reference'
35
+ require_relative 'aspose_words_cloud/models/advanced_compare_options'
35
36
  require_relative 'aspose_words_cloud/models/response_error'
36
37
  require_relative 'aspose_words_cloud/models/available_fonts_response'
37
38
  require_relative 'aspose_words_cloud/models/azw3_save_options_data'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_words_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '26.9'
4
+ version: '26.10'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aspose
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-13 00:00:00.000000000 Z
11
+ date: 2026-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -91,6 +91,7 @@ files:
91
91
  - lib/aspose_words_cloud/api_error.rb
92
92
  - lib/aspose_words_cloud/configuration.rb
93
93
  - lib/aspose_words_cloud/job_handler.rb
94
+ - lib/aspose_words_cloud/models/advanced_compare_options.rb
94
95
  - lib/aspose_words_cloud/models/available_fonts_response.rb
95
96
  - lib/aspose_words_cloud/models/azw3_save_options_data.rb
96
97
  - lib/aspose_words_cloud/models/bmp_save_options_data.rb