aspose_cells_cloud 22.1 → 22.4
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/README.md +7 -9
- data/lib/aspose_cells_cloud/api/cells_api.rb +104 -15
- data/lib/aspose_cells_cloud/api/light_cells_api.rb +5 -0
- data/lib/aspose_cells_cloud/api_client.rb +2 -2
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/spec/api/cells_export_spec.rb +21 -2
- data/spec/api/cells_save_as_api_spec.rb +17 -0
- data/spec/api/cells_simple_spec.rb +11 -8
- data/spec/api/cells_workbook_api_spec.rb +46 -0
- 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: ea2e2f191a6270345967bd0eb15daf9ca4a62fc58a237187e6f2f2bd76dfaddd
|
4
|
+
data.tar.gz: 005d92eaf768d1d318b23e3baa2da88b285c3a804ee8a95b4ca8c890e7eba799
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 99cb82511828de8a83125f5d78e463dcbed3dd6e7c3bce6e0f9168b16de25efcf5112f84fb8dcebc0e6b0e12fefe1b4274888ddd032990d407489dd1f5a498aa
|
7
|
+
data.tar.gz: 68e6fae2f985f3d9df4c3884e6fb235f34f4ecfaa3b74b5cf75359170d96f13f479bfecb545fa614e9208f59efcf8e07d06d8b39156528df216900434508228b
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
   [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE)    [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) 
|
2
2
|
|
3
3
|
|
4
4
|
# Ruby SDK for Spreadsheet Processing in the Cloud
|
@@ -21,15 +21,13 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic
|
|
21
21
|
- Convert worksheets to PDF, XPS & SVG formats.
|
22
22
|
- [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
|
23
23
|
|
24
|
-
## Feature & Enhancements in Version 22.1
|
25
24
|
|
26
|
-
|
27
|
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
-
|
32
|
-
- Rename LiteCellsApi to LightCellsApi.
|
25
|
+
## Feature & Enhancements in Version 22.4
|
26
|
+
|
27
|
+
- Export API adds extended query parameters.
|
28
|
+
- Convert API adds extended query parameters.
|
29
|
+
- SaveAs API adds extended query parameters.
|
30
|
+
- Get Workbook API adds extended query parameters.
|
33
31
|
|
34
32
|
|
35
33
|
## Read & Write Spreadsheet Formats
|
@@ -10654,7 +10654,7 @@ module AsposeCellsCloud
|
|
10654
10654
|
# @param [Hash] opts the optional parameters
|
10655
10655
|
# @option opts [String] :folder The workbook folder.
|
10656
10656
|
# @option opts [String] :storage_name storage name.
|
10657
|
-
# @return [
|
10657
|
+
# @return [CellsCloudResponse]
|
10658
10658
|
def cells_post_set_cell_html_string(name, sheet_name, cell_name, html_string, opts = {})
|
10659
10659
|
data, _status_code, _headers = cells_post_set_cell_html_string_with_http_info(name, sheet_name, cell_name, html_string, opts)
|
10660
10660
|
return data
|
@@ -10669,7 +10669,7 @@ module AsposeCellsCloud
|
|
10669
10669
|
# @param [Hash] opts the optional parameters
|
10670
10670
|
# @option opts [String] :folder The workbook folder.
|
10671
10671
|
# @option opts [String] :storage_name storage name.
|
10672
|
-
# @return [Array<(
|
10672
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
10673
10673
|
def cells_post_set_cell_html_string_with_http_info(name, sheet_name, cell_name, html_string, opts = {})
|
10674
10674
|
if @api_client.config.debugging
|
10675
10675
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_post_set_cell_html_string ..."
|
@@ -10719,7 +10719,7 @@ module AsposeCellsCloud
|
|
10719
10719
|
:form_params => form_params,
|
10720
10720
|
:body => post_body,
|
10721
10721
|
:auth_names => auth_names,
|
10722
|
-
:return_type => '
|
10722
|
+
:return_type => 'CellsCloudResponse')
|
10723
10723
|
if @api_client.config.debugging
|
10724
10724
|
@api_client.config.logger.debug "API called: CellsApi#cells_post_set_cell_html_string\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
10725
10725
|
end
|
@@ -13316,7 +13316,11 @@ module AsposeCellsCloud
|
|
13316
13316
|
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
13317
13317
|
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
13318
13318
|
query_params[:'outStorageName'] = opts[:'out_storage_name'] if !opts[:'out_storage_name'].nil?
|
13319
|
-
|
13319
|
+
if opts[:'extendedQueryParameters']
|
13320
|
+
opts[:'extendedQueryParameters'].each do |key , value|
|
13321
|
+
query_params[key] = value
|
13322
|
+
end
|
13323
|
+
end
|
13320
13324
|
# header parameters
|
13321
13325
|
header_params = {}
|
13322
13326
|
# HTTP header 'Accept' (if needed)
|
@@ -14978,7 +14982,11 @@ module AsposeCellsCloud
|
|
14978
14982
|
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
14979
14983
|
query_params[:'outPath'] = opts[:'out_path'] if !opts[:'out_path'].nil?
|
14980
14984
|
query_params[:'outStorageName'] = opts[:'out_storage_name'] if !opts[:'out_storage_name'].nil?
|
14981
|
-
|
14985
|
+
if opts[:'extendedQueryParameters']
|
14986
|
+
opts[:'extendedQueryParameters'].each do |key , value|
|
14987
|
+
query_params[key] = value
|
14988
|
+
end
|
14989
|
+
end
|
14982
14990
|
# header parameters
|
14983
14991
|
header_params = {}
|
14984
14992
|
# HTTP header 'Accept' (if needed)
|
@@ -15541,6 +15549,83 @@ module AsposeCellsCloud
|
|
15541
15549
|
return data, status_code, headers
|
15542
15550
|
end
|
15543
15551
|
|
15552
|
+
# Add digital signature.
|
15553
|
+
#
|
15554
|
+
# @param name Workbook name.
|
15555
|
+
# @param digitalsignaturefile Digital signature file parameters.
|
15556
|
+
# @param password
|
15557
|
+
# @param [Hash] opts the optional parameters
|
15558
|
+
# @option opts [String] :folder Workbook's folder.
|
15559
|
+
# @option opts [String] :storage_name storage name.
|
15560
|
+
# @return [CellsCloudResponse]
|
15561
|
+
def cells_workbook_post_digital_signature(name, digitalsignaturefile, password, opts = {})
|
15562
|
+
data, _status_code, _headers = cells_workbook_post_digital_signature_with_http_info(name, digitalsignaturefile, password, opts)
|
15563
|
+
return data
|
15564
|
+
end
|
15565
|
+
|
15566
|
+
# Add digital signature.
|
15567
|
+
#
|
15568
|
+
# @param name Workbook name.
|
15569
|
+
# @param digitalsignaturefile Digital signature file parameters.
|
15570
|
+
# @param password
|
15571
|
+
# @param [Hash] opts the optional parameters
|
15572
|
+
# @option opts [String] :folder Workbook's folder.
|
15573
|
+
# @option opts [String] :storage_name storage name.
|
15574
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
15575
|
+
def cells_workbook_post_digital_signature_with_http_info(name, digitalsignaturefile, password, opts = {})
|
15576
|
+
if @api_client.config.debugging
|
15577
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_workbook_post_digital_signature ..."
|
15578
|
+
end
|
15579
|
+
@api_client.request_token_if_needed
|
15580
|
+
# verify the required parameter 'name' is set
|
15581
|
+
if @api_client.config.client_side_validation && name.nil?
|
15582
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_workbook_post_digital_signature"
|
15583
|
+
end
|
15584
|
+
# verify the required parameter 'digitalsignaturefile' is set
|
15585
|
+
if @api_client.config.client_side_validation && digitalsignaturefile.nil?
|
15586
|
+
fail ArgumentError, "Missing the required parameter 'digitalsignaturefile' when calling CellsApi.cells_workbook_post_digital_signature"
|
15587
|
+
end
|
15588
|
+
# verify the required parameter 'password' is set
|
15589
|
+
if @api_client.config.client_side_validation && password.nil?
|
15590
|
+
fail ArgumentError, "Missing the required parameter 'password' when calling CellsApi.cells_workbook_post_digital_signature"
|
15591
|
+
end
|
15592
|
+
# resource path
|
15593
|
+
local_var_path = "/cells/{name}/digitalsignature".sub('{' + 'name' + '}', name.to_s)
|
15594
|
+
|
15595
|
+
# query parameters
|
15596
|
+
query_params = {}
|
15597
|
+
query_params[:'digitalsignaturefile'] = digitalsignaturefile
|
15598
|
+
query_params[:'password'] = password
|
15599
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
15600
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
15601
|
+
|
15602
|
+
# header parameters
|
15603
|
+
header_params = {}
|
15604
|
+
# HTTP header 'Accept' (if needed)
|
15605
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
15606
|
+
# HTTP header 'Content-Type'
|
15607
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
15608
|
+
|
15609
|
+
# form parameters
|
15610
|
+
form_params = {}
|
15611
|
+
|
15612
|
+
# http body (model)
|
15613
|
+
post_body = nil
|
15614
|
+
#auth_names = []
|
15615
|
+
auth_names = ['JWT']
|
15616
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
15617
|
+
:header_params => header_params,
|
15618
|
+
:query_params => query_params,
|
15619
|
+
:form_params => form_params,
|
15620
|
+
:body => post_body,
|
15621
|
+
:auth_names => auth_names,
|
15622
|
+
:return_type => 'CellsCloudResponse')
|
15623
|
+
if @api_client.config.debugging
|
15624
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_workbook_post_digital_signature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
15625
|
+
end
|
15626
|
+
return data, status_code, headers
|
15627
|
+
end
|
15628
|
+
|
15544
15629
|
# Encript document.
|
15545
15630
|
#
|
15546
15631
|
# @param name The document name.
|
@@ -16290,7 +16375,11 @@ module AsposeCellsCloud
|
|
16290
16375
|
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
16291
16376
|
query_params[:'outPath'] = opts[:'out_path'] if !opts[:'out_path'].nil?
|
16292
16377
|
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
16293
|
-
|
16378
|
+
if opts[:'extendedQueryParameters']
|
16379
|
+
opts[:'extendedQueryParameters'].each do |key , value|
|
16380
|
+
query_params[key] = value
|
16381
|
+
end
|
16382
|
+
end
|
16294
16383
|
# header parameters
|
16295
16384
|
header_params = {}
|
16296
16385
|
# HTTP header 'Accept' (if needed)
|
@@ -17037,7 +17126,7 @@ module AsposeCellsCloud
|
|
17037
17126
|
# @option opts [ProtectSheetParameter] :protect_parameter with protection settings. Only password is used here.
|
17038
17127
|
# @option opts [String] :folder Document folder.
|
17039
17128
|
# @option opts [String] :storage_name storage name.
|
17040
|
-
# @return [
|
17129
|
+
# @return [CellsCloudResponse]
|
17041
17130
|
def cells_worksheets_delete_unprotect_worksheet(name, sheet_name, opts = {})
|
17042
17131
|
data, _status_code, _headers = cells_worksheets_delete_unprotect_worksheet_with_http_info(name, sheet_name, opts)
|
17043
17132
|
return data
|
@@ -17051,7 +17140,7 @@ module AsposeCellsCloud
|
|
17051
17140
|
# @option opts [ProtectSheetParameter] :protect_parameter with protection settings. Only password is used here.
|
17052
17141
|
# @option opts [String] :folder Document folder.
|
17053
17142
|
# @option opts [String] :storage_name storage name.
|
17054
|
-
# @return [Array<(
|
17143
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
17055
17144
|
def cells_worksheets_delete_unprotect_worksheet_with_http_info(name, sheet_name, opts = {})
|
17056
17145
|
if @api_client.config.debugging
|
17057
17146
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_worksheets_delete_unprotect_worksheet ..."
|
@@ -17093,7 +17182,7 @@ module AsposeCellsCloud
|
|
17093
17182
|
:form_params => form_params,
|
17094
17183
|
:body => post_body,
|
17095
17184
|
:auth_names => auth_names,
|
17096
|
-
:return_type => '
|
17185
|
+
:return_type => 'CellsCloudResponse')
|
17097
17186
|
if @api_client.config.debugging
|
17098
17187
|
@api_client.config.logger.debug "API called: CellsApi#cells_worksheets_delete_unprotect_worksheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
17099
17188
|
end
|
@@ -18762,7 +18851,7 @@ module AsposeCellsCloud
|
|
18762
18851
|
# @option opts [Worksheet] :sheet
|
18763
18852
|
# @option opts [String] :folder
|
18764
18853
|
# @option opts [String] :storage_name storage name.
|
18765
|
-
# @return [
|
18854
|
+
# @return [CellsCloudResponse]
|
18766
18855
|
def cells_worksheets_post_update_worksheet_property(name, sheet_name, opts = {})
|
18767
18856
|
data, _status_code, _headers = cells_worksheets_post_update_worksheet_property_with_http_info(name, sheet_name, opts)
|
18768
18857
|
return data
|
@@ -18776,7 +18865,7 @@ module AsposeCellsCloud
|
|
18776
18865
|
# @option opts [Worksheet] :sheet
|
18777
18866
|
# @option opts [String] :folder
|
18778
18867
|
# @option opts [String] :storage_name storage name.
|
18779
|
-
# @return [Array<(
|
18868
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
18780
18869
|
def cells_worksheets_post_update_worksheet_property_with_http_info(name, sheet_name, opts = {})
|
18781
18870
|
if @api_client.config.debugging
|
18782
18871
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_worksheets_post_update_worksheet_property ..."
|
@@ -18818,7 +18907,7 @@ module AsposeCellsCloud
|
|
18818
18907
|
:form_params => form_params,
|
18819
18908
|
:body => post_body,
|
18820
18909
|
:auth_names => auth_names,
|
18821
|
-
:return_type => '
|
18910
|
+
:return_type => 'CellsCloudResponse')
|
18822
18911
|
if @api_client.config.debugging
|
18823
18912
|
@api_client.config.logger.debug "API called: CellsApi#cells_worksheets_post_update_worksheet_property\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
18824
18913
|
end
|
@@ -19374,7 +19463,7 @@ module AsposeCellsCloud
|
|
19374
19463
|
# @option opts [ProtectSheetParameter] :protect_parameter with protection settings.
|
19375
19464
|
# @option opts [String] :folder Document folder.
|
19376
19465
|
# @option opts [String] :storage_name storage name.
|
19377
|
-
# @return [
|
19466
|
+
# @return [CellsCloudResponse]
|
19378
19467
|
def cells_worksheets_put_protect_worksheet(name, sheet_name, opts = {})
|
19379
19468
|
data, _status_code, _headers = cells_worksheets_put_protect_worksheet_with_http_info(name, sheet_name, opts)
|
19380
19469
|
return data
|
@@ -19388,7 +19477,7 @@ module AsposeCellsCloud
|
|
19388
19477
|
# @option opts [ProtectSheetParameter] :protect_parameter with protection settings.
|
19389
19478
|
# @option opts [String] :folder Document folder.
|
19390
19479
|
# @option opts [String] :storage_name storage name.
|
19391
|
-
# @return [Array<(
|
19480
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
19392
19481
|
def cells_worksheets_put_protect_worksheet_with_http_info(name, sheet_name, opts = {})
|
19393
19482
|
if @api_client.config.debugging
|
19394
19483
|
@api_client.config.logger.debug "Calling API: CellsApi.cells_worksheets_put_protect_worksheet ..."
|
@@ -19430,7 +19519,7 @@ module AsposeCellsCloud
|
|
19430
19519
|
:form_params => form_params,
|
19431
19520
|
:body => post_body,
|
19432
19521
|
:auth_names => auth_names,
|
19433
|
-
:return_type => '
|
19522
|
+
:return_type => 'CellsCloudResponse')
|
19434
19523
|
if @api_client.config.debugging
|
19435
19524
|
@api_client.config.logger.debug "API called: CellsApi#cells_worksheets_put_protect_worksheet\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
19436
19525
|
end
|
@@ -344,6 +344,11 @@ module AsposeCellsCloud
|
|
344
344
|
query_params = {}
|
345
345
|
query_params[:'objectType'] = object_type
|
346
346
|
query_params[:'format'] = format
|
347
|
+
if opts[:'extendedQueryParameters']
|
348
|
+
opts[:'extendedQueryParameters'].each do |key , value|
|
349
|
+
query_params[key] = value
|
350
|
+
end
|
351
|
+
end
|
347
352
|
|
348
353
|
# header parameters
|
349
354
|
header_params = {}
|
@@ -116,7 +116,7 @@ module AsposeCellsCloud
|
|
116
116
|
:params => query_params,
|
117
117
|
:body => body
|
118
118
|
}
|
119
|
-
|
119
|
+
print query_params
|
120
120
|
if [:post, :patch, :put, :delete].include?(http_method)
|
121
121
|
req_body = build_request_body(header_params, form_params, opts[:body])
|
122
122
|
req_opts.update :body => req_body
|
@@ -137,7 +137,7 @@ module AsposeCellsCloud
|
|
137
137
|
f.request :url_encoded
|
138
138
|
f.adapter Faraday.default_adapter
|
139
139
|
end
|
140
|
-
|
140
|
+
|
141
141
|
if req_opts[:body] == {}
|
142
142
|
req_opts[:body] = nil
|
143
143
|
end
|
@@ -161,6 +161,7 @@ describe 'LightCellsApi' do
|
|
161
161
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
162
162
|
end
|
163
163
|
end
|
164
|
+
|
164
165
|
describe 'lite_cells_unit export object test' do
|
165
166
|
it "should work" do
|
166
167
|
files = {}
|
@@ -169,11 +170,26 @@ describe 'LightCellsApi' do
|
|
169
170
|
name =$AssemblyTestXlsx
|
170
171
|
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
171
172
|
|
173
|
+
|
172
174
|
result = @instance.post_export(files ,"workbook","pdf")
|
173
175
|
|
174
176
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
175
|
-
|
177
|
+
end
|
176
178
|
end
|
179
|
+
|
180
|
+
describe 'lite_cells_unit export object test' do
|
181
|
+
it "should work" do
|
182
|
+
files = {}
|
183
|
+
name = $DataSourceXlsx
|
184
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
185
|
+
name =$AssemblyTestXlsx
|
186
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
187
|
+
|
188
|
+
result = @instance.post_export(files ,"listobject","xlsx")
|
189
|
+
|
190
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
191
|
+
end
|
192
|
+
end
|
177
193
|
|
178
194
|
describe 'lite_cells_unit export object test' do
|
179
195
|
it "should work" do
|
@@ -211,10 +227,13 @@ describe 'LightCellsApi' do
|
|
211
227
|
name =$AssemblyTestXlsx
|
212
228
|
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
213
229
|
|
214
|
-
|
230
|
+
extendedQueryParameters = {}
|
231
|
+
extendedQueryParameters['OnePagePerSheet'] = 'false'
|
232
|
+
result = @instance.post_export(files ,"listobject","pdf", { :extendedQueryParameters=>extendedQueryParameters})
|
215
233
|
|
216
234
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
217
235
|
end
|
218
236
|
end
|
237
|
+
|
219
238
|
end
|
220
239
|
|
@@ -86,4 +86,21 @@ describe 'CellsSaveAsApi' do
|
|
86
86
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
87
87
|
end
|
88
88
|
end
|
89
|
+
describe 'cells_save_as_post_document_save_as to extend format test' do
|
90
|
+
it "should work" do
|
91
|
+
name = $BOOK1
|
92
|
+
save_options = nil
|
93
|
+
newfilename = 'newbook.xls.md'
|
94
|
+
is_auto_fit_rows = true
|
95
|
+
is_auto_fit_columns = true
|
96
|
+
folder = $TEMPFOLDER
|
97
|
+
extendedQueryParameters = {}
|
98
|
+
extendedQueryParameters['OnePagePerSheet'] = 'false'
|
99
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
100
|
+
expect(result.uploaded.size).to be > 0
|
101
|
+
result = @instance.cells_save_as_post_document_save_as(name, { :save_options=>save_options, :newfilename=>(folder+"/"+newfilename), :is_auto_fit_rows=>is_auto_fit_rows, :is_auto_fit_columns=>is_auto_fit_columns, :folder=>folder,:extendedQueryParameters=>extendedQueryParameters})
|
102
|
+
expect(result.code).to eql(200)
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
89
106
|
end
|
@@ -29,15 +29,18 @@ describe 'CellsApi' do
|
|
29
29
|
describe 'cells_ranges_post_worksheet_cells_range_outline_border test' do
|
30
30
|
it "should work" do
|
31
31
|
name = $BOOK1
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
32
|
+
password = nil
|
33
|
+
format = 'pdf'
|
34
|
+
is_auto_fit = true
|
35
|
+
only_save_table = true
|
36
36
|
folder = $TEMPFOLDER
|
37
|
-
|
38
|
-
|
39
|
-
result
|
40
|
-
|
37
|
+
out_path = nil
|
38
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
39
|
+
expect(result.uploaded.size).to be > 0
|
40
|
+
extendedQueryParameters = {}
|
41
|
+
extendedQueryParameters['OnePagePerSheet'] = 'false'
|
42
|
+
result = @instance.cells_workbook_get_workbook(name, { :password=>password, :format=>format,:folder=>folder, :out_path=>out_path, :extendedQueryParameters=>extendedQueryParameters})
|
43
|
+
# expect(result.code).to eql(200)
|
41
44
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
45
|
end
|
43
46
|
end
|
@@ -63,6 +63,24 @@ describe 'CellsWorkbookApi' do
|
|
63
63
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
64
64
|
end
|
65
65
|
end
|
66
|
+
describe 'cells_workbook_get_workbook to extend test' do
|
67
|
+
it "should work" do
|
68
|
+
name = $BOOK1
|
69
|
+
password = nil
|
70
|
+
format = 'XPS'
|
71
|
+
is_auto_fit = true
|
72
|
+
only_save_table = true
|
73
|
+
folder = $TEMPFOLDER
|
74
|
+
out_path = nil
|
75
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
76
|
+
expect(result.uploaded.size).to be > 0
|
77
|
+
extendedQueryParameters = {}
|
78
|
+
extendedQueryParameters['OnePagePerSheet'] = 'false'
|
79
|
+
result = @instance.cells_workbook_get_workbook(name, { :password=>password, :format=>format,:folder=>folder, :out_path=>out_path, :extendedQueryParameters=>extendedQueryParameters})
|
80
|
+
# expect(result.code).to eql(200)
|
81
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
82
|
+
end
|
83
|
+
end
|
66
84
|
# unit tests for cells_workbook_get_workbook
|
67
85
|
# Read workbook info or export.
|
68
86
|
#
|
@@ -512,6 +530,20 @@ describe 'CellsWorkbookApi' do
|
|
512
530
|
end
|
513
531
|
end
|
514
532
|
|
533
|
+
describe 'cells_workbook_put_convert_workbook_extend test' do
|
534
|
+
it "should work" do
|
535
|
+
name = $BOOK1
|
536
|
+
format = 'pdf'
|
537
|
+
password = nil
|
538
|
+
out_path = "Tdd.pdf"
|
539
|
+
extendedQueryParameters = {}
|
540
|
+
extendedQueryParameters['OnePagePerSheet'] = 'false'
|
541
|
+
result = @instance.cells_workbook_put_convert_workbook( ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) },{:format=>format,out_path=>out_path,:extendedQueryParameters=>extendedQueryParameters})
|
542
|
+
# expect(result.code).to eql(200)
|
543
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
544
|
+
end
|
545
|
+
end
|
546
|
+
|
515
547
|
# unit tests for cells_workbook_put_workbook_create
|
516
548
|
# Create new workbook using deferent methods.
|
517
549
|
#
|
@@ -717,4 +749,18 @@ describe 'CellsWorkbookApi' do
|
|
717
749
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
718
750
|
end
|
719
751
|
end
|
752
|
+
describe 'cells_workbook_post_digital_signature test' do
|
753
|
+
it "should work" do
|
754
|
+
name = $BOOK1
|
755
|
+
pfx_name = 'roywang.pfx'
|
756
|
+
folder = $TEMPFOLDER
|
757
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
758
|
+
expect(result.uploaded.size).to be > 0
|
759
|
+
result = @instance.upload_file( folder+"/"+pfx_name, ::File.open(File.expand_path("data/"+pfx_name),"r") {|io| io.read(io.size) })
|
760
|
+
expect(result.uploaded.size).to be > 0
|
761
|
+
result = @instance.cells_workbook_post_digital_signature(name,folder+"/"+pfx_name,"123456" , { :folder=>folder})
|
762
|
+
expect(result.code).to eql(200)
|
763
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
764
|
+
end
|
765
|
+
end
|
720
766
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aspose_cells_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '22.
|
4
|
+
version: '22.4'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aspose Cells Cloud
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|