aspose_html_cloud 22.12.1 → 25.12.1

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
- SHA256:
3
- metadata.gz: a927f766c44d069be1fa647614ed0ba4df757135ba36df1ab5fd03f44ada11e2
4
- data.tar.gz: 5ed40aeaedfb53018f57e6a4b8ebc70e299caddb5f7ebf98bb012f3aa2aaca5e
2
+ SHA1:
3
+ metadata.gz: ed0fa6996d6f10b1315f7396882f2d9f9fd367b2
4
+ data.tar.gz: 334771ccec0c53589d50a74a1869838f6a512734
5
5
  SHA512:
6
- metadata.gz: af3da353d85ddcad122665d921ce8ea46a5ab01f90062721d2794c7b61f1f503ae1ec4269d94a73ce4f08670f7f18d6d7a083eff92f9dcac04d90510fa6f8672
7
- data.tar.gz: 05b35cfe4175def4f7e3de35dbbb7f85607b93ac3f227f0fed129aa0f09d404f5f94026d216e7e86c580a53e78dafc10514fcfa51a5b6808ccc946efeb016c6c
6
+ metadata.gz: 629834350fc0d90ec58000150a6bd04944908868bde02d461a571e1245b06370a655b70ee2d5d146b7e60fa420ee561083446436f7a7cc1fff2cba1446f7d569
7
+ data.tar.gz: 6efed6276e85835e15f7fc97c9e2c1d766673a37c788287ec4c03c88638ee9a55061137b4b0b3da8e06b258c66aa5e6eb53fad4e4c6e30276b37219875f94a89
@@ -57,7 +57,7 @@ module AsposeHtml
57
57
  'User-Agent' => @user_agent,
58
58
  'Authorization' => "Bearer #{@config.access_token}",
59
59
  'x-aspose-client' => "aspose.html-cloud ruby sdk",
60
- 'x-aspose-client-version' => "22.12.1"
60
+ 'x-aspose-client-version' => "25.12.1"
61
61
  }
62
62
  end
63
63
 
@@ -1,140 +1,140 @@
1
- # -*- coding: utf-8 -*-
2
- =begin
3
- --------------------------------------------------------------------------------------------------------------------
4
- <copyright company="Aspose" file="conversion_result.rb">
5
- </copyright>
6
- Copyright (c) 2022 Aspose.HTML for Cloud
7
- <summary>
8
- Permission is hereby granted, free of charge, to any person obtaining a copy
9
- of this software and associated documentation files (the "Software"), to deal
10
- in the Software without restriction, including without limitation the rights
11
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
- copies of the Software, and to permit persons to whom the Software is
13
- furnished to do so, subject to the following conditions:
14
-
15
- The above copyright notice and this permission notice shall be included in all
16
- copies or substantial portions of the Software.
17
-
18
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
- SOFTWARE.
25
- </summary>
26
- --------------------------------------------------------------------------------------------------------------------
27
- =end
28
-
29
- require_relative 'base_model'
30
-
31
- module AsposeHtml
32
- class OperationResult < BaseModel
33
- attr_accessor :code
34
-
35
- attr_accessor :id
36
-
37
- attr_accessor :status
38
-
39
- attr_accessor :description
40
-
41
- attr_accessor :links
42
-
43
- attr_accessor :file
44
-
45
- # Attribute mapping from ruby-style variable name to JSON key.
46
- def self.attribute_map
47
- {
48
- :'code' => :'code',
49
- :'id' => :'id',
50
- :'status' => :'status',
51
- :'description' => :'description',
52
- :'links' => :'links',
53
- :'file' => :'file'
54
- }
55
- end
56
-
57
- # Attribute type mapping.
58
- def self.model_types
59
- {
60
- :'code' => :'Integer',
61
- :'id' => :'String',
62
- :'status' => :'String',
63
- :'description' => :'String',
64
- :'links' => :'Object',
65
- :'file' => :'String'
66
- }
67
- end
68
-
69
- # Initializes the object
70
- # @param [Hash] attributes Model attributes in the form of hash
71
- def initialize(attributes = {})
72
- return unless attributes.is_a?(Hash)
73
-
74
- # convert string to symbol for hash key
75
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
76
-
77
- if attributes.has_key?(:'code')
78
- self.code = attributes[:'code']
79
- end
80
-
81
- if attributes.has_key?(:'id')
82
- self.id = attributes[:'id']
83
- end
84
-
85
- if attributes.has_key?(:'status')
86
- self.status = attributes[:'status']
87
- end
88
-
89
- if attributes.has_key?(:'description')
90
- self.description = attributes[:'description']
91
- end
92
-
93
- if attributes.has_key?(:'links')
94
- self.links = attributes[:'links']
95
- end
96
-
97
- if attributes.has_key?(:'file')
98
- self.file = attributes[:'file']
99
- end
100
- end
101
-
102
- # Show invalid properties with the reasons. Usually used together with valid?
103
- # @return Array for valid properties with the reasons
104
- def list_invalid_properties
105
- invalid_properties = Array.new
106
- if @code.nil?
107
- invalid_properties.push('invalid value for "code", code cannot be nil.')
108
- end
109
-
110
- invalid_properties
111
- end
112
-
113
- # Check to see if the all the properties in the model are valid
114
- # @return true if the model is valid
115
- def valid?
116
- return false if @code.nil?
117
- true
118
- end
119
-
120
- # Checks equality by comparing each attribute.
121
- # @param [Object] Object to be compared
122
- def ==(o)
123
- return true if self.equal?(o)
124
- self.class == o.class &&
125
- code == o.code &&
126
- id == o.id &&
127
- status == o.status &&
128
- description == o.description &&
129
- links == o.links &&
130
- file == o.file
131
- end
132
-
133
- # Calculates hash code according to all attributes.
134
- # @return [Fixnum] Hash code
135
- def hash
136
- [code, id, status, description, links, file].hash
137
- end
138
-
139
- end
140
- end
1
+ # -*- coding: utf-8 -*-
2
+ =begin
3
+ --------------------------------------------------------------------------------------------------------------------
4
+ <copyright company="Aspose" file="conversion_result.rb">
5
+ </copyright>
6
+ Copyright (c) 2022 Aspose.HTML for Cloud
7
+ <summary>
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ of this software and associated documentation files (the "Software"), to deal
10
+ in the Software without restriction, including without limitation the rights
11
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ copies of the Software, and to permit persons to whom the Software is
13
+ furnished to do so, subject to the following conditions:
14
+
15
+ The above copyright notice and this permission notice shall be included in all
16
+ copies or substantial portions of the Software.
17
+
18
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ SOFTWARE.
25
+ </summary>
26
+ --------------------------------------------------------------------------------------------------------------------
27
+ =end
28
+
29
+ require_relative 'base_model'
30
+
31
+ module AsposeHtml
32
+ class OperationResult < BaseModel
33
+ attr_accessor :code
34
+
35
+ attr_accessor :id
36
+
37
+ attr_accessor :status
38
+
39
+ attr_accessor :description
40
+
41
+ attr_accessor :links
42
+
43
+ attr_accessor :file
44
+
45
+ # Attribute mapping from ruby-style variable name to JSON key.
46
+ def self.attribute_map
47
+ {
48
+ :'code' => :'code',
49
+ :'id' => :'id',
50
+ :'status' => :'status',
51
+ :'description' => :'description',
52
+ :'links' => :'links',
53
+ :'file' => :'file'
54
+ }
55
+ end
56
+
57
+ # Attribute type mapping.
58
+ def self.model_types
59
+ {
60
+ :'code' => :'Integer',
61
+ :'id' => :'String',
62
+ :'status' => :'String',
63
+ :'description' => :'String',
64
+ :'links' => :'Object',
65
+ :'file' => :'String'
66
+ }
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ return unless attributes.is_a?(Hash)
73
+
74
+ # convert string to symbol for hash key
75
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
76
+
77
+ if attributes.has_key?(:'code')
78
+ self.code = attributes[:'code']
79
+ end
80
+
81
+ if attributes.has_key?(:'id')
82
+ self.id = attributes[:'id']
83
+ end
84
+
85
+ if attributes.has_key?(:'status')
86
+ self.status = attributes[:'status']
87
+ end
88
+
89
+ if attributes.has_key?(:'description')
90
+ self.description = attributes[:'description']
91
+ end
92
+
93
+ if attributes.has_key?(:'links')
94
+ self.links = attributes[:'links']
95
+ end
96
+
97
+ if attributes.has_key?(:'file')
98
+ self.file = attributes[:'file']
99
+ end
100
+ end
101
+
102
+ # Show invalid properties with the reasons. Usually used together with valid?
103
+ # @return Array for valid properties with the reasons
104
+ def list_invalid_properties
105
+ invalid_properties = Array.new
106
+ if @code.nil?
107
+ invalid_properties.push('invalid value for "code", code cannot be nil.')
108
+ end
109
+
110
+ invalid_properties
111
+ end
112
+
113
+ # Check to see if the all the properties in the model are valid
114
+ # @return true if the model is valid
115
+ def valid?
116
+ return false if @code.nil?
117
+ true
118
+ end
119
+
120
+ # Checks equality by comparing each attribute.
121
+ # @param [Object] Object to be compared
122
+ def ==(o)
123
+ return true if self.equal?(o)
124
+ self.class == o.class &&
125
+ code == o.code &&
126
+ id == o.id &&
127
+ status == o.status &&
128
+ description == o.description &&
129
+ links == o.links &&
130
+ file == o.file
131
+ end
132
+
133
+ # Calculates hash code according to all attributes.
134
+ # @return [Fixnum] Hash code
135
+ def hash
136
+ [code, id, status, description, links, file].hash
137
+ end
138
+
139
+ end
140
+ end
@@ -68,7 +68,7 @@ describe 'Test html_api_V4' do
68
68
 
69
69
  describe 'convert local to local html to image' do
70
70
 
71
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
71
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
72
72
  it "Convert html to " + ext do
73
73
 
74
74
  dst = dst_dir + 'locToLocImg.' + ext
@@ -92,7 +92,7 @@ describe 'Test html_api_V4' do
92
92
  bottom_margin: 50
93
93
  }
94
94
 
95
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
95
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
96
96
  it "Convert html to " + ext do
97
97
 
98
98
  dst = dst_dir + 'locToLocImgOpt.' + ext
@@ -127,7 +127,7 @@ describe 'Test html_api_V4' do
127
127
 
128
128
  describe 'convert local to storage html to image' do
129
129
 
130
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
130
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
131
131
  it "Convert html to " + ext do
132
132
 
133
133
  dst = dst_dir + '/locToStorImg.' + ext
@@ -151,7 +151,7 @@ describe 'Test html_api_V4' do
151
151
  bottom_margin: 50
152
152
  }
153
153
 
154
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
154
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
155
155
  it "Convert html to " + ext do
156
156
 
157
157
  dst = dst_dir + '/locToStorImgOpt.' + ext
@@ -191,7 +191,7 @@ describe 'Test html_api_V4' do
191
191
 
192
192
  describe 'convert storage to local html to image' do
193
193
 
194
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
194
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
195
195
  it "Convert html to " + ext do
196
196
 
197
197
  dst = dst_dir + 'storToLocImg.' + ext
@@ -215,7 +215,7 @@ describe 'Test html_api_V4' do
215
215
  bottom_margin: 50
216
216
  }
217
217
 
218
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
218
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
219
219
  it "Convert html to " + ext do
220
220
 
221
221
  dst = dst_dir + 'storToLocImgOpt.' + ext
@@ -255,7 +255,7 @@ describe 'Test html_api_V4' do
255
255
 
256
256
  describe 'convert storage to storage html to image' do
257
257
 
258
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
258
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
259
259
  it "Convert html to " + ext do
260
260
 
261
261
  dst = dst_dir + 'storToStorImg.' + ext
@@ -279,7 +279,7 @@ describe 'Test html_api_V4' do
279
279
  bottom_margin: 50
280
280
  }
281
281
 
282
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
282
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
283
283
  it "Convert html to " + ext do
284
284
 
285
285
  dst = dst_dir + 'storToStorImgOpt.' + ext
@@ -315,7 +315,7 @@ describe 'Test html_api_V4' do
315
315
 
316
316
  describe 'convert url to local image' do
317
317
 
318
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
318
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
319
319
  it "Convert url to " + ext do
320
320
 
321
321
  dst = dst_dir + 'urlLocImg.' + ext
@@ -339,7 +339,7 @@ describe 'Test html_api_V4' do
339
339
  bottom_margin: 50
340
340
  }
341
341
 
342
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
342
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
343
343
  it "Convert url to " + ext do
344
344
 
345
345
  dst = dst_dir + 'urlLocImgOpt.' + ext
@@ -374,7 +374,7 @@ describe 'Test html_api_V4' do
374
374
 
375
375
  describe 'convert url to storage image' do
376
376
 
377
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
377
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
378
378
  it "Convert url to " + ext do
379
379
 
380
380
  dst = dst_dir + '/urlStorImg.' + ext
@@ -398,7 +398,7 @@ describe 'Test html_api_V4' do
398
398
  bottom_margin: 50
399
399
  }
400
400
 
401
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
401
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
402
402
  it "Convert url to " + ext do
403
403
 
404
404
  dst = dst_dir + '/urlStorImgOpt.' + ext
@@ -458,7 +458,7 @@ describe 'Test html_api_V4' do
458
458
 
459
459
  describe 'convert local to local markdown to image' do
460
460
 
461
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
461
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
462
462
  it "Convert markdown to " + ext do
463
463
 
464
464
  dst = dst_dir + 'locToLocMDImg.' + ext
@@ -482,7 +482,7 @@ describe 'Test html_api_V4' do
482
482
  bottom_margin: 50
483
483
  }
484
484
 
485
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
485
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
486
486
  it "Convert markdown to " + ext do
487
487
 
488
488
  dst = dst_dir + 'locToLocMDImgOpt.' + ext
@@ -542,7 +542,7 @@ describe 'Test html_api_V4' do
542
542
 
543
543
  describe 'convert local to local MHTML to image' do
544
544
 
545
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
545
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
546
546
  it "Convert MHTML to " + ext do
547
547
 
548
548
  dst = dst_dir + 'locToLocMHTMLImg.' + ext
@@ -566,7 +566,7 @@ describe 'Test html_api_V4' do
566
566
  bottom_margin: 50
567
567
  }
568
568
 
569
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
569
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
570
570
  it "Convert MHTML to " + ext do
571
571
 
572
572
  dst = dst_dir + 'locToLocMHTMLImgOpt.' + ext
@@ -626,7 +626,7 @@ describe 'Test html_api_V4' do
626
626
 
627
627
  describe 'convert local to local SVG to image' do
628
628
 
629
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
629
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
630
630
  it "Convert SVG to " + ext do
631
631
 
632
632
  dst = dst_dir + 'locToLocSVGImg.' + ext
@@ -650,7 +650,7 @@ describe 'Test html_api_V4' do
650
650
  bottom_margin: 50
651
651
  }
652
652
 
653
- %w[jpeg jpg bmp png tiff tif gif].each { |ext|
653
+ %w[jpeg jpg bmp png tiff tif gif webp].each { |ext|
654
654
  it "Convert SVG to " + ext do
655
655
 
656
656
  dst = dst_dir + 'locToLocSVGImgOpt.' + ext
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_html_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 22.12.1
4
+ version: 25.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Makogon
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-14 00:00:00.000000000 Z
11
+ date: 2025-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -223,7 +223,7 @@ homepage: https://github.com/aspose-html-cloud/aspose-html-cloud-ruby
223
223
  licenses:
224
224
  - MIT
225
225
  metadata: {}
226
- post_install_message:
226
+ post_install_message:
227
227
  rdoc_options: []
228
228
  require_paths:
229
229
  - lib
@@ -238,8 +238,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
238
238
  - !ruby/object:Gem::Version
239
239
  version: '0'
240
240
  requirements: []
241
- rubygems_version: 3.3.7
242
- signing_key:
241
+ rubyforge_project:
242
+ rubygems_version: 2.5.2
243
+ signing_key:
243
244
  specification_version: 4
244
245
  summary: A ruby wrapper for the Aspose.HTML Cloud SDK API.
245
246
  test_files: