aspose_cells_cloud 22.9 → 22.10

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: 629a50251eb7a9f031f77cb0730dfe8f8b2ae9a7639cd943db95cc06e8336f3a
4
- data.tar.gz: 1c540d65ff3270bf8eb23103cd3eebc75561b864d228d9059d97c105c3a36af3
3
+ metadata.gz: 9edd2d5a5e47130c19f38e16c859df9c56e402bb9babd195b039e184d6545407
4
+ data.tar.gz: 80040fdb490504d22dba119eba6807a517e04a23fa5af40b5f51af87e002bb18
5
5
  SHA512:
6
- metadata.gz: cd81608e9402aedd167e834892e302cb1c0823ebf1e82bddd58667a641a64da0e2717fe962f63760f93bd64746f628def542cd64746a6c25242a5a94ce8f0848
7
- data.tar.gz: 2131b7e949782f89add97a5705e5f7384e95b3e4b6ecb366167957640b86177af53fbb032a601ae2d37ca13449e4692202daa51a94b8d17224a45a07afe2f8f3
6
+ metadata.gz: bf7ddc4ebb57d393a7a134f8f76cf2e74d9228dc2d7a6640bb93a37d4abf0be770feb034f875858260a9dd54e2363883f5795cb4abe8cfb67990e47bbb3d00e7
7
+ data.tar.gz: 73b3fcca099899b865c1b287e0ab4396023175dcb2ac974a52b92c7c84525601ef23aa06d1fb848bfa1c690b7e6cbeea7b90bc0bdbe7ede2cb7bb061747da00d
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.9)
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.10)
2
2
 
3
3
 
4
4
  # Ruby SDK for Spreadsheet Processing in the Cloud
@@ -22,11 +22,11 @@ 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.9
25
+ ## Feature & Enhancements in Version 22.10
26
26
 
27
- - Add api for converting workbook to png.
28
- - Add api for converting workbook to pdf.
29
- - Add api for converting workbook to docx.
27
+ - Add api for converting workbook to pptx.
28
+ - Add api for converting workbook to html.
29
+ - Add api for converting workbook to markdown.
30
30
 
31
31
  ## Read & Write Spreadsheet Formats
32
32
 
@@ -20939,6 +20939,201 @@ module AsposeCellsCloud
20939
20939
  return data, status_code, headers
20940
20940
  end
20941
20941
 
20942
+ #
20943
+ #
20944
+ # @param file File to upload
20945
+ # @param [Hash] opts the optional parameters
20946
+ # @option opts [String] :password
20947
+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
20948
+ # @return [FileInfo]
20949
+ def post_convert_workbook_to_pptx(file, opts = {})
20950
+ data, _status_code, _headers = post_convert_workbook_to_pptx_with_http_info(file, opts)
20951
+ return data
20952
+ end
20953
+
20954
+ #
20955
+ #
20956
+ # @param file File to upload
20957
+ # @param [Hash] opts the optional parameters
20958
+ # @option opts [String] :password
20959
+ # @option opts [BOOLEAN] :check_excel_restriction
20960
+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
20961
+ def post_convert_workbook_to_pptx_with_http_info(file, opts = {})
20962
+ if @api_client.config.debugging
20963
+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_pptx ..."
20964
+ end
20965
+ @api_client.request_token_if_needed
20966
+ # verify the required parameter 'file' is set
20967
+ if @api_client.config.client_side_validation && file.nil?
20968
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_pptx"
20969
+ end
20970
+ # resource path
20971
+ local_var_path = "/cells/convert/pptx"
20972
+
20973
+ # query parameters
20974
+ query_params = {}
20975
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
20976
+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
20977
+
20978
+ # header parameters
20979
+ header_params = {}
20980
+ # HTTP header 'Accept' (if needed)
20981
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
20982
+ # HTTP header 'Content-Type'
20983
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20984
+
20985
+ # form parameters
20986
+ form_params = {}
20987
+
20988
+ # http body (model)
20989
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
20990
+ post_body =''
20991
+ form_params['file'] = file
20992
+ #auth_names = []
20993
+ auth_names = ['JWT']
20994
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
20995
+ :header_params => header_params,
20996
+ :query_params => query_params,
20997
+ :form_params => form_params,
20998
+ :body => post_body,
20999
+ :auth_names => auth_names,
21000
+ :return_type => 'FileInfo')
21001
+ if @api_client.config.debugging
21002
+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_pptx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
21003
+ end
21004
+ return data, status_code, headers
21005
+ end
21006
+
21007
+ #
21008
+ #
21009
+ # @param file File to upload
21010
+ # @param [Hash] opts the optional parameters
21011
+ # @option opts [String] :password
21012
+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
21013
+ # @return [FileInfo]
21014
+ def post_convert_workbook_to_html(file, opts = {})
21015
+ data, _status_code, _headers = post_convert_workbook_to_html_with_http_info(file, opts)
21016
+ return data
21017
+ end
21018
+
21019
+ #
21020
+ #
21021
+ # @param file File to upload
21022
+ # @param [Hash] opts the optional parameters
21023
+ # @option opts [String] :password
21024
+ # @option opts [BOOLEAN] :check_excel_restriction
21025
+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
21026
+ def post_convert_workbook_to_html_with_http_info(file, opts = {})
21027
+ if @api_client.config.debugging
21028
+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_html ..."
21029
+ end
21030
+ @api_client.request_token_if_needed
21031
+ # verify the required parameter 'file' is set
21032
+ if @api_client.config.client_side_validation && file.nil?
21033
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_html"
21034
+ end
21035
+ # resource path
21036
+ local_var_path = "/cells/convert/html"
21037
+
21038
+ # query parameters
21039
+ query_params = {}
21040
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
21041
+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
21042
+
21043
+ # header parameters
21044
+ header_params = {}
21045
+ # HTTP header 'Accept' (if needed)
21046
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
21047
+ # HTTP header 'Content-Type'
21048
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21049
+
21050
+ # form parameters
21051
+ form_params = {}
21052
+
21053
+ # http body (model)
21054
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21055
+ post_body =''
21056
+ form_params['file'] = file
21057
+ #auth_names = []
21058
+ auth_names = ['JWT']
21059
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
21060
+ :header_params => header_params,
21061
+ :query_params => query_params,
21062
+ :form_params => form_params,
21063
+ :body => post_body,
21064
+ :auth_names => auth_names,
21065
+ :return_type => 'FileInfo')
21066
+ if @api_client.config.debugging
21067
+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
21068
+ end
21069
+ return data, status_code, headers
21070
+ end
21071
+
21072
+ #
21073
+ #
21074
+ # @param file File to upload
21075
+ # @param [Hash] opts the optional parameters
21076
+ # @option opts [String] :password
21077
+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
21078
+ # @return [FileInfo]
21079
+ def post_convert_workbook_to_markdown(file, opts = {})
21080
+ data, _status_code, _headers = post_convert_workbook_to_markdown_with_http_info(file, opts)
21081
+ return data
21082
+ end
21083
+
21084
+ #
21085
+ #
21086
+ # @param file File to upload
21087
+ # @param [Hash] opts the optional parameters
21088
+ # @option opts [String] :password
21089
+ # @option opts [BOOLEAN] :check_excel_restriction
21090
+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
21091
+ def post_convert_workbook_to_markdown_with_http_info(file, opts = {})
21092
+ if @api_client.config.debugging
21093
+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_markdown ..."
21094
+ end
21095
+ @api_client.request_token_if_needed
21096
+ # verify the required parameter 'file' is set
21097
+ if @api_client.config.client_side_validation && file.nil?
21098
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_markdown"
21099
+ end
21100
+ # resource path
21101
+ local_var_path = "/cells/convert/markdown"
21102
+
21103
+ # query parameters
21104
+ query_params = {}
21105
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
21106
+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
21107
+
21108
+ # header parameters
21109
+ header_params = {}
21110
+ # HTTP header 'Accept' (if needed)
21111
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
21112
+ # HTTP header 'Content-Type'
21113
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21114
+
21115
+ # form parameters
21116
+ form_params = {}
21117
+
21118
+ # http body (model)
21119
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21120
+ post_body =''
21121
+ form_params['file'] = file
21122
+ #auth_names = []
21123
+ auth_names = ['JWT']
21124
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
21125
+ :header_params => header_params,
21126
+ :query_params => query_params,
21127
+ :form_params => form_params,
21128
+ :body => post_body,
21129
+ :auth_names => auth_names,
21130
+ :return_type => 'FileInfo')
21131
+ if @api_client.config.debugging
21132
+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_markdown\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
21133
+ end
21134
+ return data, status_code, headers
21135
+ end
21136
+
20942
21137
  # Check if storage exists
20943
21138
  #
20944
21139
  # @param storage_name Storage name
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeCellsCloud
24
- VERSION = "22.9"
24
+ VERSION = "22.10"
25
25
  end
@@ -41,5 +41,22 @@ describe 'CellsConvertApi' do
41
41
  result = @instance.post_convert_workbook_to_pdf(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
42
42
  end
43
43
  end
44
+
45
+ describe 'cells_unit test' do
46
+ it "should work" do
47
+ result = @instance.post_convert_workbook_to_pptx(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
48
+ end
49
+ end
50
+ describe 'cells_unit test' do
51
+ it "should work" do
52
+ result = @instance.post_convert_workbook_to_html(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
53
+ end
54
+ end
55
+ describe 'cells_unit test' do
56
+ it "should work" do
57
+ result = @instance.post_convert_workbook_to_markdown(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
58
+ end
59
+ end
60
+
44
61
  end
45
62
 
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.9'
4
+ version: '22.10'
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-09-23 00:00:00.000000000 Z
11
+ date: 2022-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus