aspose_cells_cloud 22.2 → 22.3
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 +3 -7
- data/lib/aspose_cells_cloud/api/cells_api.rb +77 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/spec/api/cells_workbook_api_spec.rb +14 -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: 4914f5f1ef63316c438a46360ecfa21ce2522efb63f78802b64f97155e262684
|
4
|
+
data.tar.gz: 39a03b9fed93826643c20f26d09b500c497cc604d06c51bf47574fd58fa2800e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b39b6131cfb1a60979331a471ee8e02edae1e7ad92413d7ff1bf9aa87d95b2e6e38fc7968d1f456ed060be00ba5e0aa372aad9ce3d8dd5fff2d0e943960f5ec
|
7
|
+
data.tar.gz: 4d27779ebf6894c5387aa44d568e2fa3adc5261697522fe44f84c71926f6ea1c1e8dc66c711f69afca9c30f9f3abe47de9d8636ac02ab13509916c7fbab54443
|
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
|
@@ -22,13 +22,9 @@ Ruby Cloud SDK wraps Aspose.Cells REST API so you could seamlessly integrate Mic
|
|
22
22
|
- [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
|
23
23
|
|
24
24
|
|
25
|
-
## Feature & Enhancements in Version 22.
|
26
|
-
|
27
|
-
- Update return value for the DeleteUnprotectWorksheet API on Aspose.Cells Cloud.
|
28
|
-
- Update return value for the PutProtectWorksheet API on Aspose.Cells Cloud.
|
29
|
-
- Update return value for the PostSetCellHtmlString API on Aspose.Cells Cloud.
|
30
|
-
- Update return value for the PostUpdateWorksheetProperty API on Aspose.Cells Cloud.
|
25
|
+
## Feature & Enhancements in Version 22.3
|
31
26
|
|
27
|
+
- Add new API about adding digital signature for cloud file.
|
32
28
|
|
33
29
|
|
34
30
|
## Read & Write Spreadsheet Formats
|
@@ -15541,6 +15541,83 @@ module AsposeCellsCloud
|
|
15541
15541
|
return data, status_code, headers
|
15542
15542
|
end
|
15543
15543
|
|
15544
|
+
# Add digital signature.
|
15545
|
+
#
|
15546
|
+
# @param name Workbook name.
|
15547
|
+
# @param digitalsignaturefile Digital signature file parameters.
|
15548
|
+
# @param password
|
15549
|
+
# @param [Hash] opts the optional parameters
|
15550
|
+
# @option opts [String] :folder Workbook's folder.
|
15551
|
+
# @option opts [String] :storage_name storage name.
|
15552
|
+
# @return [CellsCloudResponse]
|
15553
|
+
def cells_workbook_post_digital_signature(name, digitalsignaturefile, password, opts = {})
|
15554
|
+
data, _status_code, _headers = cells_workbook_post_digital_signature_with_http_info(name, digitalsignaturefile, password, opts)
|
15555
|
+
return data
|
15556
|
+
end
|
15557
|
+
|
15558
|
+
# Add digital signature.
|
15559
|
+
#
|
15560
|
+
# @param name Workbook name.
|
15561
|
+
# @param digitalsignaturefile Digital signature file parameters.
|
15562
|
+
# @param password
|
15563
|
+
# @param [Hash] opts the optional parameters
|
15564
|
+
# @option opts [String] :folder Workbook's folder.
|
15565
|
+
# @option opts [String] :storage_name storage name.
|
15566
|
+
# @return [Array<(CellsCloudResponse, Fixnum, Hash)>] CellsCloudResponse data, response status code and response headers
|
15567
|
+
def cells_workbook_post_digital_signature_with_http_info(name, digitalsignaturefile, password, opts = {})
|
15568
|
+
if @api_client.config.debugging
|
15569
|
+
@api_client.config.logger.debug "Calling API: CellsApi.cells_workbook_post_digital_signature ..."
|
15570
|
+
end
|
15571
|
+
@api_client.request_token_if_needed
|
15572
|
+
# verify the required parameter 'name' is set
|
15573
|
+
if @api_client.config.client_side_validation && name.nil?
|
15574
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling CellsApi.cells_workbook_post_digital_signature"
|
15575
|
+
end
|
15576
|
+
# verify the required parameter 'digitalsignaturefile' is set
|
15577
|
+
if @api_client.config.client_side_validation && digitalsignaturefile.nil?
|
15578
|
+
fail ArgumentError, "Missing the required parameter 'digitalsignaturefile' when calling CellsApi.cells_workbook_post_digital_signature"
|
15579
|
+
end
|
15580
|
+
# verify the required parameter 'password' is set
|
15581
|
+
if @api_client.config.client_side_validation && password.nil?
|
15582
|
+
fail ArgumentError, "Missing the required parameter 'password' when calling CellsApi.cells_workbook_post_digital_signature"
|
15583
|
+
end
|
15584
|
+
# resource path
|
15585
|
+
local_var_path = "/cells/{name}/digitalsignature".sub('{' + 'name' + '}', name.to_s)
|
15586
|
+
|
15587
|
+
# query parameters
|
15588
|
+
query_params = {}
|
15589
|
+
query_params[:'digitalsignaturefile'] = digitalsignaturefile
|
15590
|
+
query_params[:'password'] = password
|
15591
|
+
query_params[:'folder'] = opts[:'folder'] if !opts[:'folder'].nil?
|
15592
|
+
query_params[:'storageName'] = opts[:'storage_name'] if !opts[:'storage_name'].nil?
|
15593
|
+
|
15594
|
+
# header parameters
|
15595
|
+
header_params = {}
|
15596
|
+
# HTTP header 'Accept' (if needed)
|
15597
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
15598
|
+
# HTTP header 'Content-Type'
|
15599
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
15600
|
+
|
15601
|
+
# form parameters
|
15602
|
+
form_params = {}
|
15603
|
+
|
15604
|
+
# http body (model)
|
15605
|
+
post_body = nil
|
15606
|
+
#auth_names = []
|
15607
|
+
auth_names = ['JWT']
|
15608
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
15609
|
+
:header_params => header_params,
|
15610
|
+
:query_params => query_params,
|
15611
|
+
:form_params => form_params,
|
15612
|
+
:body => post_body,
|
15613
|
+
:auth_names => auth_names,
|
15614
|
+
:return_type => 'CellsCloudResponse')
|
15615
|
+
if @api_client.config.debugging
|
15616
|
+
@api_client.config.logger.debug "API called: CellsApi#cells_workbook_post_digital_signature\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
15617
|
+
end
|
15618
|
+
return data, status_code, headers
|
15619
|
+
end
|
15620
|
+
|
15544
15621
|
# Encript document.
|
15545
15622
|
#
|
15546
15623
|
# @param name The document name.
|
@@ -717,4 +717,18 @@ describe 'CellsWorkbookApi' do
|
|
717
717
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
718
718
|
end
|
719
719
|
end
|
720
|
+
describe 'cells_workbook_post_digital_signature test' do
|
721
|
+
it "should work" do
|
722
|
+
name = $BOOK1
|
723
|
+
pfx_name = 'roywang.pfx'
|
724
|
+
folder = $TEMPFOLDER
|
725
|
+
result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
|
726
|
+
expect(result.uploaded.size).to be > 0
|
727
|
+
result = @instance.upload_file( folder+"/"+pfx_name, ::File.open(File.expand_path("data/"+pfx_name),"r") {|io| io.read(io.size) })
|
728
|
+
expect(result.uploaded.size).to be > 0
|
729
|
+
result = @instance.cells_workbook_post_digital_signature(name,folder+"/"+pfx_name,"123456" , { :folder=>folder})
|
730
|
+
expect(result.code).to eql(200)
|
731
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
732
|
+
end
|
733
|
+
end
|
720
734
|
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.3'
|
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-03-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|