Skip to content

Commit cb1c399

Browse files
committed
Release Aspose.Cells Cloud SDK 22.10
1 parent e3bab87 commit cb1c399

File tree

4 files changed

+218
-6
lines changed

4 files changed

+218
-6
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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)
22

33

44
# 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
2222
- [Convert Excel files to popular formats](https://docs.aspose.cloud/cells/convert-excel-workbook-to-different-file-formats/).
2323

2424

25-
## Feature & Enhancements in Version 22.9
25+
## Feature & Enhancements in Version 22.10
2626

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.
3030

3131
## Read & Write Spreadsheet Formats
3232

lib/aspose_cells_cloud/api/cells_api.rb

Lines changed: 195 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20939,6 +20939,201 @@ def post_convert_workbook_to_png_with_http_info(file, opts = {})
2093920939
return data, status_code, headers
2094020940
end
2094120941

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+
2094221137
# Check if storage exists
2094321138
#
2094421139
# @param storage_name Storage name

lib/aspose_cells_cloud/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@
2121
=end
2222

2323
module AsposeCellsCloud
24-
VERSION = "22.9"
24+
VERSION = "22.10"
2525
end

spec/api/cells_convert_spec.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,22 @@
4141
result = @instance.post_convert_workbook_to_pdf(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
4242
end
4343
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+
4461
end
4562

0 commit comments

Comments
 (0)