aspose_cells_cloud 22.10 → 22.11

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: 9edd2d5a5e47130c19f38e16c859df9c56e402bb9babd195b039e184d6545407
4
- data.tar.gz: 80040fdb490504d22dba119eba6807a517e04a23fa5af40b5f51af87e002bb18
3
+ metadata.gz: 654156e1376d6e60a5d36de06c41a82c2f828962534002735cf11d8f4981ac29
4
+ data.tar.gz: 00c0f978a2b828c76d50a1b6a59480058cc84a8165b45faeb3fea40735c4b58a
5
5
  SHA512:
6
- metadata.gz: bf7ddc4ebb57d393a7a134f8f76cf2e74d9228dc2d7a6640bb93a37d4abf0be770feb034f875858260a9dd54e2363883f5795cb4abe8cfb67990e47bbb3d00e7
7
- data.tar.gz: 73b3fcca099899b865c1b287e0ab4396023175dcb2ac974a52b92c7c84525601ef23aa06d1fb848bfa1c690b7e6cbeea7b90bc0bdbe7ede2cb7bb061747da00d
6
+ metadata.gz: 7c9a8eb23e8abb4d6f649459ac7df239cc2d972091da4d907dda62aa52a6e5dce832327d78bfe5b7c231cc6679816c6f537511d0a860c33ac63c8cb31bbe85cf
7
+ data.tar.gz: 50f6471eaa77fbb2bfb6d0e8e79d22afc075a4e77c1a38649c7ef4835e79520a1a8fe6168cd66df5a636558a5f0d16737a26736495bbf6a6596d8dbc1a5798ff
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.10)
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.11)
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.10
25
+ ## Feature & Enhancements in Version 22.11
26
26
 
27
- - Add api for converting workbook to pptx.
28
- - Add api for converting workbook to html.
29
- - Add api for converting workbook to markdown.
27
+ - Add api for converting workbook to json.
28
+ - Add api for converting workbook to sql.
29
+ - Add api for converting workbook to csv.
30
30
 
31
31
  ## Read & Write Spreadsheet Formats
32
32
 
@@ -21134,6 +21134,201 @@ module AsposeCellsCloud
21134
21134
  return data, status_code, headers
21135
21135
  end
21136
21136
 
21137
+
21138
+ #
21139
+ #
21140
+ # @param file File to upload
21141
+ # @param [Hash] opts the optional parameters
21142
+ # @option opts [String] :password
21143
+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
21144
+ # @return [FileInfo]
21145
+ def post_convert_workbook_to_json(file, opts = {})
21146
+ data, _status_code, _headers = post_convert_workbook_to_json_with_http_info(file, opts)
21147
+ return data
21148
+ end
21149
+
21150
+ #
21151
+ #
21152
+ # @param file File to upload
21153
+ # @param [Hash] opts the optional parameters
21154
+ # @option opts [String] :password
21155
+ # @option opts [BOOLEAN] :check_excel_restriction
21156
+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
21157
+ def post_convert_workbook_to_json_with_http_info(file, opts = {})
21158
+ if @api_client.config.debugging
21159
+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_json ..."
21160
+ end
21161
+ @api_client.request_token_if_needed
21162
+ # verify the required parameter 'file' is set
21163
+ if @api_client.config.client_side_validation && file.nil?
21164
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_json"
21165
+ end
21166
+ # resource path
21167
+ local_var_path = "/cells/convert/json"
21168
+
21169
+ # query parameters
21170
+ query_params = {}
21171
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
21172
+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
21173
+
21174
+ # header parameters
21175
+ header_params = {}
21176
+ # HTTP header 'Accept' (if needed)
21177
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
21178
+ # HTTP header 'Content-Type'
21179
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21180
+
21181
+ # form parameters
21182
+ form_params = {}
21183
+
21184
+ # http body (model)
21185
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21186
+ post_body =''
21187
+ form_params['file'] = file
21188
+ #auth_names = []
21189
+ auth_names = ['JWT']
21190
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
21191
+ :header_params => header_params,
21192
+ :query_params => query_params,
21193
+ :form_params => form_params,
21194
+ :body => post_body,
21195
+ :auth_names => auth_names,
21196
+ :return_type => 'FileInfo')
21197
+ if @api_client.config.debugging
21198
+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_json\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
21199
+ end
21200
+ return data, status_code, headers
21201
+ end
21202
+ #
21203
+ #
21204
+ # @param file File to upload
21205
+ # @param [Hash] opts the optional parameters
21206
+ # @option opts [String] :password
21207
+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
21208
+ # @return [FileInfo]
21209
+ def post_convert_workbook_to_sql(file, opts = {})
21210
+ data, _status_code, _headers = post_convert_workbook_to_sql_with_http_info(file, opts)
21211
+ return data
21212
+ end
21213
+
21214
+ #
21215
+ #
21216
+ # @param file File to upload
21217
+ # @param [Hash] opts the optional parameters
21218
+ # @option opts [String] :password
21219
+ # @option opts [BOOLEAN] :check_excel_restriction
21220
+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
21221
+ def post_convert_workbook_to_sql_with_http_info(file, opts = {})
21222
+ if @api_client.config.debugging
21223
+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_sql ..."
21224
+ end
21225
+ @api_client.request_token_if_needed
21226
+ # verify the required parameter 'file' is set
21227
+ if @api_client.config.client_side_validation && file.nil?
21228
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_sql"
21229
+ end
21230
+ # resource path
21231
+ local_var_path = "/cells/convert/sql"
21232
+
21233
+ # query parameters
21234
+ query_params = {}
21235
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
21236
+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
21237
+
21238
+ # header parameters
21239
+ header_params = {}
21240
+ # HTTP header 'Accept' (if needed)
21241
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
21242
+ # HTTP header 'Content-Type'
21243
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21244
+
21245
+ # form parameters
21246
+ form_params = {}
21247
+
21248
+ # http body (model)
21249
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21250
+ post_body =''
21251
+ form_params['file'] = file
21252
+ #auth_names = []
21253
+ auth_names = ['JWT']
21254
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
21255
+ :header_params => header_params,
21256
+ :query_params => query_params,
21257
+ :form_params => form_params,
21258
+ :body => post_body,
21259
+ :auth_names => auth_names,
21260
+ :return_type => 'FileInfo')
21261
+ if @api_client.config.debugging
21262
+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_sql\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
21263
+ end
21264
+ return data, status_code, headers
21265
+ end
21266
+
21267
+ #
21268
+ #
21269
+ # @param file File to upload
21270
+ # @param [Hash] opts the optional parameters
21271
+ # @option opts [String] :password
21272
+ # @option opts [BOOLEAN] :check_excel_restriction (default to true)
21273
+ # @return [FileInfo]
21274
+ def post_convert_workbook_to_csv(file, opts = {})
21275
+ data, _status_code, _headers = post_convert_workbook_to_csv_with_http_info(file, opts)
21276
+ return data
21277
+ end
21278
+
21279
+ #
21280
+ #
21281
+ # @param file File to upload
21282
+ # @param [Hash] opts the optional parameters
21283
+ # @option opts [String] :password
21284
+ # @option opts [BOOLEAN] :check_excel_restriction
21285
+ # @return [Array<(FileInfo, Fixnum, Hash)>] FileInfo data, response status code and response headers
21286
+ def post_convert_workbook_to_csv_with_http_info(file, opts = {})
21287
+ if @api_client.config.debugging
21288
+ @api_client.config.logger.debug "Calling API: CellsApi.post_convert_workbook_to_csv ..."
21289
+ end
21290
+ @api_client.request_token_if_needed
21291
+ # verify the required parameter 'file' is set
21292
+ if @api_client.config.client_side_validation && file.nil?
21293
+ fail ArgumentError, "Missing the required parameter 'file' when calling CellsApi.post_convert_workbook_to_csv"
21294
+ end
21295
+ # resource path
21296
+ local_var_path = "/cells/convert/csv"
21297
+
21298
+ # query parameters
21299
+ query_params = {}
21300
+ query_params[:'password'] = opts[:'password'] if !opts[:'password'].nil?
21301
+ query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
21302
+
21303
+ # header parameters
21304
+ header_params = {}
21305
+ # HTTP header 'Accept' (if needed)
21306
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
21307
+ # HTTP header 'Content-Type'
21308
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21309
+
21310
+ # form parameters
21311
+ form_params = {}
21312
+
21313
+ # http body (model)
21314
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
21315
+ post_body =''
21316
+ form_params['file'] = file
21317
+ #auth_names = []
21318
+ auth_names = ['JWT']
21319
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
21320
+ :header_params => header_params,
21321
+ :query_params => query_params,
21322
+ :form_params => form_params,
21323
+ :body => post_body,
21324
+ :auth_names => auth_names,
21325
+ :return_type => 'FileInfo')
21326
+ if @api_client.config.debugging
21327
+ @api_client.config.logger.debug "API called: CellsApi#post_convert_workbook_to_csv\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
21328
+ end
21329
+ return data, status_code, headers
21330
+ end
21331
+
21137
21332
  # Check if storage exists
21138
21333
  #
21139
21334
  # @param storage_name Storage name
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeCellsCloud
24
- VERSION = "22.10"
24
+ VERSION = "22.11"
25
25
  end
@@ -57,6 +57,20 @@ describe 'CellsConvertApi' do
57
57
  result = @instance.post_convert_workbook_to_markdown(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
58
58
  end
59
59
  end
60
-
60
+ describe 'cells_unit test' do
61
+ it "should work" do
62
+ result = @instance.post_convert_workbook_to_json(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
63
+ end
64
+ end
65
+ describe 'cells_unit test' do
66
+ it "should work" do
67
+ result = @instance.post_convert_workbook_to_sql(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
68
+ end
69
+ end
70
+ describe 'cells_unit test' do
71
+ it "should work" do
72
+ result = @instance.post_convert_workbook_to_csv(::File.open(File.expand_path("data/"+ $BOOK1),"r") )
73
+ end
74
+ end
61
75
  end
62
76
 
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.10'
4
+ version: '22.11'
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-10-17 00:00:00.000000000 Z
11
+ date: 2022-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus