aspose_words_cloud 21.5.1 → 21.6.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/lib/aspose_words_cloud/api/words_api.rb +1 -0
- data/lib/aspose_words_cloud/api_client.rb +2 -1
- data/lib/aspose_words_cloud/models/compare_options.rb +11 -1
- data/lib/aspose_words_cloud/models/requests/compare_document_online_request.rb +8 -1
- data/lib/aspose_words_cloud/models/requests/execute_mail_merge_request.rb +2 -2
- data/lib/aspose_words_cloud/models/requests/insert_watermark_image_request.rb +2 -2
- data/lib/aspose_words_cloud/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fab39e91be9a6adfe58f149efc6f9d96f6693ff94ed88f6038348f029b89f87
|
4
|
+
data.tar.gz: c6dd67d5a1433b8218b195a120eda50e8c7f92305269a92ae3bd14b089721f5e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd96b053acc75055f7b525f7a993f838608583ec8e677d67e6aa1da28b2c498170d2ec0d4d6eaedda7716dcb339119d3a26bb3f5f2e01daf5f70a21db810f723
|
7
|
+
data.tar.gz: 6202a720cc956df2552bdcd0a5d82555331de2249b3e861de55f2aa751f24d8a6046617ba2838488c418581ddf0beea44422d36e5c873fd23c666a5a8585d658
|
@@ -987,6 +987,7 @@ module AsposeWordsCloud
|
|
987
987
|
form_params = {}
|
988
988
|
form_params[downcase_first_letter('Document')] = request.document
|
989
989
|
form_params[downcase_first_letter('CompareData')] = request.compare_data.to_body.to_json
|
990
|
+
form_params[downcase_first_letter('ComparingDocument')] = request.comparing_document
|
990
991
|
|
991
992
|
# http body (model)
|
992
993
|
post_body = nil
|
@@ -352,9 +352,10 @@ module AsposeWordsCloud
|
|
352
352
|
def download_file_from_multipart(body)
|
353
353
|
prefix = 'download-'
|
354
354
|
prefix += '-' unless prefix.end_with?('-')
|
355
|
-
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding:body.encoding)
|
355
|
+
tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding:body.encoding, binmode: true)
|
356
356
|
@tempfile = tempfile
|
357
357
|
tempfile.write(body)
|
358
|
+
tempfile.size
|
358
359
|
@config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
|
359
360
|
"with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
|
360
361
|
"will be deleted automatically with GC. It's also recommended to delete the temp file "\
|
@@ -29,6 +29,9 @@ module AsposeWordsCloud
|
|
29
29
|
|
30
30
|
# DTO container with compare documents options.
|
31
31
|
class CompareOptions
|
32
|
+
# Gets or sets whether accept revisions before comparison or not.
|
33
|
+
attr_accessor :accept_all_revisions_before_comparison
|
34
|
+
|
32
35
|
# Gets or sets a value indicating whether documents comparison is case insensitive. By default comparison is case sensitive.
|
33
36
|
attr_accessor :ignore_case_changes
|
34
37
|
|
@@ -81,6 +84,7 @@ module AsposeWordsCloud
|
|
81
84
|
# Attribute mapping from ruby-style variable name to JSON key.
|
82
85
|
def self.attribute_map
|
83
86
|
{
|
87
|
+
:'accept_all_revisions_before_comparison' => :'AcceptAllRevisionsBeforeComparison',
|
84
88
|
:'ignore_case_changes' => :'IgnoreCaseChanges',
|
85
89
|
:'ignore_comments' => :'IgnoreComments',
|
86
90
|
:'ignore_fields' => :'IgnoreFields',
|
@@ -96,6 +100,7 @@ module AsposeWordsCloud
|
|
96
100
|
# Attribute type mapping.
|
97
101
|
def self.swagger_types
|
98
102
|
{
|
103
|
+
:'accept_all_revisions_before_comparison' => :'BOOLEAN',
|
99
104
|
:'ignore_case_changes' => :'BOOLEAN',
|
100
105
|
:'ignore_comments' => :'BOOLEAN',
|
101
106
|
:'ignore_fields' => :'BOOLEAN',
|
@@ -116,6 +121,10 @@ module AsposeWordsCloud
|
|
116
121
|
# convert string to symbol for hash key
|
117
122
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
118
123
|
|
124
|
+
if attributes.key?(:'AcceptAllRevisionsBeforeComparison')
|
125
|
+
self.accept_all_revisions_before_comparison = attributes[:'AcceptAllRevisionsBeforeComparison']
|
126
|
+
end
|
127
|
+
|
119
128
|
if attributes.key?(:'IgnoreCaseChanges')
|
120
129
|
self.ignore_case_changes = attributes[:'IgnoreCaseChanges']
|
121
130
|
end
|
@@ -189,6 +198,7 @@ module AsposeWordsCloud
|
|
189
198
|
def ==(other)
|
190
199
|
return true if self.equal?(other)
|
191
200
|
self.class == other.class &&
|
201
|
+
accept_all_revisions_before_comparison == other.accept_all_revisions_before_comparison &&
|
192
202
|
ignore_case_changes == other.ignore_case_changes &&
|
193
203
|
ignore_comments == other.ignore_comments &&
|
194
204
|
ignore_fields == other.ignore_fields &&
|
@@ -209,7 +219,7 @@ module AsposeWordsCloud
|
|
209
219
|
# Calculates hash code according to all attributes.
|
210
220
|
# @return [Fixnum] Hash code
|
211
221
|
def hash
|
212
|
-
[ignore_case_changes, ignore_comments, ignore_fields, ignore_footnotes, ignore_formatting, ignore_headers_and_footers, ignore_tables, ignore_textboxes, target].hash
|
222
|
+
[accept_all_revisions_before_comparison, ignore_case_changes, ignore_comments, ignore_fields, ignore_footnotes, ignore_formatting, ignore_headers_and_footers, ignore_tables, ignore_textboxes, target].hash
|
213
223
|
end
|
214
224
|
|
215
225
|
# Builds the object from hash
|
@@ -35,6 +35,9 @@ module AsposeWordsCloud
|
|
35
35
|
# Compare data.
|
36
36
|
attr_accessor :compare_data
|
37
37
|
|
38
|
+
# The comparing document.
|
39
|
+
attr_accessor :comparing_document
|
40
|
+
|
38
41
|
# Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
39
42
|
attr_accessor :load_encoding
|
40
43
|
|
@@ -48,13 +51,15 @@ module AsposeWordsCloud
|
|
48
51
|
# Initializes a new instance.
|
49
52
|
# @param document The document.
|
50
53
|
# @param compare_data Compare data.
|
54
|
+
# @param comparing_document The comparing document.
|
51
55
|
# @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
|
52
56
|
# @param password Password for opening an encrypted document.
|
53
57
|
# @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
|
54
58
|
|
55
|
-
def initialize(document, compare_data, load_encoding = nil, password = nil, dest_file_name = nil)
|
59
|
+
def initialize(document, compare_data, comparing_document = nil, load_encoding = nil, password = nil, dest_file_name = nil)
|
56
60
|
self.document = document
|
57
61
|
self.compare_data = compare_data
|
62
|
+
self.comparing_document = comparing_document
|
58
63
|
self.load_encoding = load_encoding
|
59
64
|
self.password = password
|
60
65
|
self.dest_file_name = dest_file_name
|
@@ -90,6 +95,7 @@ module AsposeWordsCloud
|
|
90
95
|
form_params = {}
|
91
96
|
form_params[downcase_first_letter('Document')] = self.document
|
92
97
|
form_params[downcase_first_letter('CompareData')] = self.compare_data.to_body.to_json
|
98
|
+
form_params[downcase_first_letter('ComparingDocument')] = self.comparing_document unless self.comparing_document.nil?
|
93
99
|
|
94
100
|
# http body (model)
|
95
101
|
post_body = nil
|
@@ -139,6 +145,7 @@ module AsposeWordsCloud
|
|
139
145
|
form_params = {}
|
140
146
|
form_params[downcase_first_letter('Document')] = self.document
|
141
147
|
form_params[downcase_first_letter('CompareData')] = self.compare_data.to_body.to_json
|
148
|
+
form_params[downcase_first_letter('ComparingDocument')] = self.comparing_document unless self.comparing_document.nil?
|
142
149
|
|
143
150
|
# http body (model)
|
144
151
|
post_body = nil
|
@@ -123,7 +123,7 @@ module AsposeWordsCloud
|
|
123
123
|
|
124
124
|
# form parameters
|
125
125
|
form_params = {}
|
126
|
-
form_params[downcase_first_letter('Data')] = self.data
|
126
|
+
form_params[downcase_first_letter('Data')] = self.data unless self.data.nil?
|
127
127
|
|
128
128
|
# http body (model)
|
129
129
|
post_body = nil
|
@@ -176,7 +176,7 @@ module AsposeWordsCloud
|
|
176
176
|
|
177
177
|
# form parameters
|
178
178
|
form_params = {}
|
179
|
-
form_params[downcase_first_letter('Data')] = self.data
|
179
|
+
form_params[downcase_first_letter('Data')] = self.data unless self.data.nil?
|
180
180
|
|
181
181
|
# http body (model)
|
182
182
|
post_body = nil
|
@@ -123,7 +123,7 @@ module AsposeWordsCloud
|
|
123
123
|
|
124
124
|
# form parameters
|
125
125
|
form_params = {}
|
126
|
-
form_params[downcase_first_letter('ImageFile')] = self.image_file
|
126
|
+
form_params[downcase_first_letter('ImageFile')] = self.image_file unless self.image_file.nil?
|
127
127
|
|
128
128
|
# http body (model)
|
129
129
|
post_body = nil
|
@@ -176,7 +176,7 @@ module AsposeWordsCloud
|
|
176
176
|
|
177
177
|
# form parameters
|
178
178
|
form_params = {}
|
179
|
-
form_params[downcase_first_letter('ImageFile')] = self.image_file
|
179
|
+
form_params[downcase_first_letter('ImageFile')] = self.image_file unless self.image_file.nil?
|
180
180
|
|
181
181
|
# http body (model)
|
182
182
|
post_body = nil
|
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: 21.
|
4
|
+
version: 21.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- YaroslawEkimov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|