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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 92b8874e2b654f73bc8f49b0b869f6471184cbda7ad3e55de8411f66ac8df9ba
4
- data.tar.gz: c4183274376adfabdd663e8b37598a348b40df6caca3ec76f8e5a6ea8f0b9093
3
+ metadata.gz: 4914f5f1ef63316c438a46360ecfa21ce2522efb63f78802b64f97155e262684
4
+ data.tar.gz: 39a03b9fed93826643c20f26d09b500c497cc604d06c51bf47574fd58fa2800e
5
5
  SHA512:
6
- metadata.gz: 424a40b71a70e9cfcafbbe37f28a291c63bad9e03509ca16b70021e4ed855d7e05df27b78289be3ba3960887745cc71e068eb52828050fec37d36a73edeca107
7
- data.tar.gz: 07f43440db381800d75b3b484ac561764a628424b0b301c9960ec323fc715d1583801422ac869366af43f4e5fa333110d67c17e633007789f8226705387001a8
6
+ metadata.gz: 4b39b6131cfb1a60979331a471ee8e02edae1e7ad92413d7ff1bf9aa87d95b2e6e38fc7968d1f456ed060be00ba5e0aa372aad9ce3d8dd5fff2d0e943960f5ec
7
+ data.tar.gz: 4d27779ebf6894c5387aa44d568e2fa3adc5261697522fe44f84c71926f6ea1c1e8dc66c711f69afca9c30f9f3abe47de9d8636ac02ab13509916c7fbab54443
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/22.2)
1
+ ![](https://img.shields.io/badge/REST%20API-v3.0-lightgrey) ![Gem](https://img.shields.io/gem/v/aspose_cells_cloud) ![Gem](https://img.shields.io/gem/dt/aspose_cells_cloud) [![GitHub license](https://img.shields.io/github/license/aspose-cells-cloud/aspose-cells-cloud-ruby)](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) ![GitHub commits since latest release (by date)](https://img.shields.io/github/commits-since/aspose-cells-cloud/aspose-cells-cloud-ruby/22.3)
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.2
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.
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeCellsCloud
24
- VERSION = "22.2"
24
+ VERSION = "22.3"
25
25
  end
@@ -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.2'
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-02-24 00:00:00.000000000 Z
11
+ date: 2022-03-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus