aspose_cells_cloud 22.8 → 22.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -3
- data/lib/aspose_cells_cloud/api/cells_api.rb +194 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +4 -0
- data/spec/api/cells_convert_spec.rb +45 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 629a50251eb7a9f031f77cb0730dfe8f8b2ae9a7639cd943db95cc06e8336f3a
|
4
|
+
data.tar.gz: 1c540d65ff3270bf8eb23103cd3eebc75561b864d228d9059d97c105c3a36af3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd81608e9402aedd167e834892e302cb1c0823ebf1e82bddd58667a641a64da0e2717fe962f63760f93bd64746f628def542cd64746a6c25242a5a94ce8f0848
|
7
|
+
data.tar.gz: 2131b7e949782f89add97a5705e5f7384e95b3e4b6ecb366167957640b86177af53fbb032a601ae2d37ca13449e4692202daa51a94b8d17224a45a07afe2f8f3
|
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.
|
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)
|
2
2
|
|
3
3
|
|
4
4
|
# Ruby SDK for Spreadsheet Processing in the Cloud
|
@@ -22,9 +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.
|
25
|
+
## Feature & Enhancements in Version 22.9
|
26
26
|
|
27
|
-
-
|
27
|
+
- Add api for converting workbook to png.
|
28
|
+
- Add api for converting workbook to pdf.
|
29
|
+
- Add api for converting workbook to docx.
|
28
30
|
|
29
31
|
## Read & Write Spreadsheet Formats
|
30
32
|
|
@@ -20744,6 +20744,200 @@ module AsposeCellsCloud
|
|
20744
20744
|
end
|
20745
20745
|
return data, status_code, headers
|
20746
20746
|
end
|
20747
|
+
#
|
20748
|
+
#
|
20749
|
+
# @param file File to upload
|
20750
|
+
# @param [Hash] opts the optional parameters
|
20751
|
+
# @option opts [String] :password
|
20752
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
20753
|
+
# @return [FileInfo]
|
20754
|
+
def post_convert_workbook_to_docx(file, opts = {})
|
20755
|
+
data, _status_code, _headers = post_convert_workbook_to_docx_with_http_info(file, opts)
|
20756
|
+
return data
|
20757
|
+
end
|
20758
|
+
|
20759
|
+
#
|
20760
|
+
#
|
20761
|
+
# @param file File to upload
|
20762
|
+
# @param [Hash] opts the optional parameters
|
20763
|
+
# @option opts [String] :password
|
20764
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
20765
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
20766
|
+
def post_convert_workbook_to_docx_with_http_info(file, opts = {})
|
20767
|
+
if @api_client.config.debugging
|
20768
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_docx ..."
|
20769
|
+
end
|
20770
|
+
@api_client.request_token_if_needed
|
20771
|
+
# verify the required parameter 'file' is set
|
20772
|
+
if @api_client.config.client_side_validation && file.nil?
|
20773
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_docx"
|
20774
|
+
end
|
20775
|
+
# resource path
|
20776
|
+
local_var_path = "/cells/convert/docx"
|
20777
|
+
|
20778
|
+
# query parameters
|
20779
|
+
query_params = {}
|
20780
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
20781
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
20782
|
+
|
20783
|
+
# header parameters
|
20784
|
+
header_params = {}
|
20785
|
+
# HTTP header 'Accept' (if needed)
|
20786
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
20787
|
+
# HTTP header 'Content-Type'
|
20788
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20789
|
+
|
20790
|
+
# form parameters
|
20791
|
+
form_params = {}
|
20792
|
+
|
20793
|
+
# http body (model)
|
20794
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20795
|
+
post_body =''
|
20796
|
+
form_params['file'] = file
|
20797
|
+
#auth_names = []
|
20798
|
+
auth_names = ['JWT']
|
20799
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
20800
|
+
:header_params => header_params,
|
20801
|
+
:query_params => query_params,
|
20802
|
+
:form_params => form_params,
|
20803
|
+
:body => post_body,
|
20804
|
+
:auth_names => auth_names,
|
20805
|
+
:return_type => 'FileInfo')
|
20806
|
+
if @api_client.config.debugging
|
20807
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_docx\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
20808
|
+
end
|
20809
|
+
return data, status_code, headers
|
20810
|
+
end
|
20811
|
+
|
20812
|
+
#
|
20813
|
+
#
|
20814
|
+
# @param file File to upload
|
20815
|
+
# @param [Hash] opts the optional parameters
|
20816
|
+
# @option opts [String] :password
|
20817
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
20818
|
+
# @return [FileInfo]
|
20819
|
+
def post_convert_workbook_to_pdf(file, opts = {})
|
20820
|
+
data, _status_code, _headers = post_convert_workbook_to_pdf_with_http_info(file, opts)
|
20821
|
+
return data
|
20822
|
+
end
|
20823
|
+
|
20824
|
+
#
|
20825
|
+
#
|
20826
|
+
# @param file File to upload
|
20827
|
+
# @param [Hash] opts the optional parameters
|
20828
|
+
# @option opts [String] :password
|
20829
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
20830
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
20831
|
+
def post_convert_workbook_to_pdf_with_http_info(file, opts = {})
|
20832
|
+
if @api_client.config.debugging
|
20833
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_pdf ..."
|
20834
|
+
end
|
20835
|
+
@api_client.request_token_if_needed
|
20836
|
+
# verify the required parameter 'file' is set
|
20837
|
+
if @api_client.config.client_side_validation && file.nil?
|
20838
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_pdf"
|
20839
|
+
end
|
20840
|
+
# resource path
|
20841
|
+
local_var_path = "/cells/convert/pdf"
|
20842
|
+
|
20843
|
+
# query parameters
|
20844
|
+
query_params = {}
|
20845
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
20846
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
20847
|
+
|
20848
|
+
# header parameters
|
20849
|
+
header_params = {}
|
20850
|
+
# HTTP header 'Accept' (if needed)
|
20851
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
20852
|
+
# HTTP header 'Content-Type'
|
20853
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20854
|
+
|
20855
|
+
# form parameters
|
20856
|
+
form_params = {}
|
20857
|
+
|
20858
|
+
# http body (model)
|
20859
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20860
|
+
post_body =''
|
20861
|
+
form_params['file'] = file
|
20862
|
+
#auth_names = []
|
20863
|
+
auth_names = ['JWT']
|
20864
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
20865
|
+
:header_params => header_params,
|
20866
|
+
:query_params => query_params,
|
20867
|
+
:form_params => form_params,
|
20868
|
+
:body => post_body,
|
20869
|
+
:auth_names => auth_names,
|
20870
|
+
:return_type => 'FileInfo')
|
20871
|
+
if @api_client.config.debugging
|
20872
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_pdf\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
20873
|
+
end
|
20874
|
+
return data, status_code, headers
|
20875
|
+
end
|
20876
|
+
|
20877
|
+
#
|
20878
|
+
#
|
20879
|
+
# @param file File to upload
|
20880
|
+
# @param [Hash] opts the optional parameters
|
20881
|
+
# @option opts [String] :password
|
20882
|
+
# @option opts [BOOLEAN] :check_excel_restriction (default to true)
|
20883
|
+
# @return [FileInfo]
|
20884
|
+
def post_convert_workbook_to_png(file, opts = {})
|
20885
|
+
data, _status_code, _headers = post_convert_workbook_to_png_with_http_info(file, opts)
|
20886
|
+
return data
|
20887
|
+
end
|
20888
|
+
|
20889
|
+
#
|
20890
|
+
#
|
20891
|
+
# @param file File to upload
|
20892
|
+
# @param [Hash] opts the optional parameters
|
20893
|
+
# @option opts [String] :password
|
20894
|
+
# @option opts [BOOLEAN] :check_excel_restriction
|
20895
|
+
# @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
|
20896
|
+
def post_convert_workbook_to_png_with_http_info(file, opts = {})
|
20897
|
+
if @api_client.config.debugging
|
20898
|
+
@api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_png ..."
|
20899
|
+
end
|
20900
|
+
@api_client.request_token_if_needed
|
20901
|
+
# verify the required parameter 'file' is set
|
20902
|
+
if @api_client.config.client_side_validation && file.nil?
|
20903
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_png"
|
20904
|
+
end
|
20905
|
+
# resource path
|
20906
|
+
local_var_path = "/cells/convert/png"
|
20907
|
+
|
20908
|
+
# query parameters
|
20909
|
+
query_params = {}
|
20910
|
+
query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
|
20911
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
20912
|
+
|
20913
|
+
# header parameters
|
20914
|
+
header_params = {}
|
20915
|
+
# HTTP header 'Accept' (if needed)
|
20916
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
20917
|
+
# HTTP header 'Content-Type'
|
20918
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20919
|
+
|
20920
|
+
# form parameters
|
20921
|
+
form_params = {}
|
20922
|
+
|
20923
|
+
# http body (model)
|
20924
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
20925
|
+
post_body =''
|
20926
|
+
form_params['file'] = file
|
20927
|
+
#auth_names = []
|
20928
|
+
auth_names = ['JWT']
|
20929
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
20930
|
+
:header_params => header_params,
|
20931
|
+
:query_params => query_params,
|
20932
|
+
:form_params => form_params,
|
20933
|
+
:body => post_body,
|
20934
|
+
:auth_names => auth_names,
|
20935
|
+
:return_type => 'FileInfo')
|
20936
|
+
if @api_client.config.debugging
|
20937
|
+
@api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_png\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
20938
|
+
end
|
20939
|
+
return data, status_code, headers
|
20940
|
+
end
|
20747
20941
|
|
20748
20942
|
# Check if storage exists
|
20749
20943
|
#
|
data/lib/aspose_cells_cloud.rb
CHANGED
@@ -168,6 +168,7 @@ require 'aspose_cells_cloud/models/conditional_formattings_response'
|
|
168
168
|
require 'aspose_cells_cloud/models/convert_task_parameter'
|
169
169
|
require 'aspose_cells_cloud/models/convert_worksheet_task_parameter'
|
170
170
|
require 'aspose_cells_cloud/models/dif_save_options'
|
171
|
+
require 'aspose_cells_cloud/models/docx_save_options'
|
171
172
|
require 'aspose_cells_cloud/models/file_version'
|
172
173
|
require 'aspose_cells_cloud/models/fill_format_response'
|
173
174
|
require 'aspose_cells_cloud/models/format_condition'
|
@@ -187,6 +188,7 @@ require 'aspose_cells_cloud/models/import_double_array_option'
|
|
187
188
|
require 'aspose_cells_cloud/models/import_int_array_option'
|
188
189
|
require 'aspose_cells_cloud/models/import_picture_option'
|
189
190
|
require 'aspose_cells_cloud/models/import_string_array_option'
|
191
|
+
require 'aspose_cells_cloud/models/json_save_options'
|
190
192
|
require 'aspose_cells_cloud/models/legend_response'
|
191
193
|
require 'aspose_cells_cloud/models/line_format'
|
192
194
|
require 'aspose_cells_cloud/models/line_response'
|
@@ -227,6 +229,7 @@ require 'aspose_cells_cloud/models/pivot_table_operate_parameter'
|
|
227
229
|
require 'aspose_cells_cloud/models/pivot_table_response'
|
228
230
|
require 'aspose_cells_cloud/models/pivot_tables'
|
229
231
|
require 'aspose_cells_cloud/models/pivot_tables_response'
|
232
|
+
require 'aspose_cells_cloud/models/pptx_save_options'
|
230
233
|
require 'aspose_cells_cloud/models/range_value_response'
|
231
234
|
require 'aspose_cells_cloud/models/ranges_response'
|
232
235
|
require 'aspose_cells_cloud/models/row'
|
@@ -248,6 +251,7 @@ require 'aspose_cells_cloud/models/split_result_document'
|
|
248
251
|
require 'aspose_cells_cloud/models/split_result_response'
|
249
252
|
require 'aspose_cells_cloud/models/split_workbook_task_parameter'
|
250
253
|
require 'aspose_cells_cloud/models/spreadsheet_ml2003_save_options'
|
254
|
+
require 'aspose_cells_cloud/models/sql_script_save_options'
|
251
255
|
require 'aspose_cells_cloud/models/style'
|
252
256
|
require 'aspose_cells_cloud/models/style_response'
|
253
257
|
require 'aspose_cells_cloud/models/svg_save_options'
|
@@ -0,0 +1,45 @@
|
|
1
|
+
=begin
|
2
|
+
#Web API Swagger specification
|
3
|
+
|
4
|
+
#No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
5
|
+
|
6
|
+
OpenAPI spec version: 1.0
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.0-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for AsposeCellsCloud::CellsApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'CellsConvertApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
|
22
|
+
$VERBOSE = nil
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'cells_unit test' do
|
30
|
+
it "should work" do
|
31
|
+
result = @instance.post_convert_workbook_to_docx(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
32
|
+
end
|
33
|
+
end
|
34
|
+
describe 'cells_unit test' do
|
35
|
+
it "should work" do
|
36
|
+
result = @instance.post_convert_workbook_to_png(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
37
|
+
end
|
38
|
+
end
|
39
|
+
describe 'cells_unit test' do
|
40
|
+
it "should work" do
|
41
|
+
result = @instance.post_convert_workbook_to_pdf(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
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.9'
|
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-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -507,6 +507,7 @@ files:
|
|
507
507
|
- spec/api/cells_clear_objects_spec.rb
|
508
508
|
- spec/api/cells_compress_spec.rb
|
509
509
|
- spec/api/cells_conditional_formattings_api_spec.rb
|
510
|
+
- spec/api/cells_convert_spec.rb
|
510
511
|
- spec/api/cells_export_spec.rb
|
511
512
|
- spec/api/cells_hypelinks_api_spec.rb
|
512
513
|
- spec/api/cells_import_spec.rb
|