aspose_cells_cloud 22.7 → 22.8
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 +4 -4
- data/README.md +3 -4
- data/lib/aspose_cells_cloud/api/light_cells_api.rb +72 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/spec/api/cells_rotate_spec.rb +44 -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: 9c8a4e3db3d3aaff14eb804043e321482c4bf49e74809aba4d5b539ad92498da
|
4
|
+
data.tar.gz: 6a5fe5072d88d80985a817e4c2dc642d31af095d79802c0626bee7969ca52d6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 389b3f087a121e8cac6dcce7008a713d11810abc35ec102895e34ca7555724d5e4e4fdcc0ea715a2119f6ba70b8cb617aed1b1c8ca99ddf53cd10e5d44446b62
|
7
|
+
data.tar.gz: 52142934c3c76b5149cb4f39d4ecd32a122818b558e6892fd33e2bae9980891806fcae9c7db2b6af6adbc2fc6eaa85f7302be83240cc25d4dc36c2de319580d3
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
   [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE)    [](https://github.com/aspose-cells-cloud/aspose-cells-cloud-ruby/blob/master/LICENSE) 
|
2
2
|
|
3
3
|
|
4
4
|
# Ruby SDK for Spreadsheet Processing in the Cloud
|
@@ -22,10 +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.
|
25
|
+
## Feature & Enhancements in Version 22.8
|
26
26
|
|
27
|
-
-
|
28
|
-
- Add the checkExcelRestriction parameter for multiple APIs.
|
27
|
+
- Support transposing Excel Rows to Columns.
|
29
28
|
|
30
29
|
## Read & Write Spreadsheet Formats
|
31
30
|
|
@@ -1192,6 +1192,78 @@ module AsposeCellsCloud
|
|
1192
1192
|
end
|
1193
1193
|
return data, status_code, headers
|
1194
1194
|
end
|
1195
|
+
#
|
1196
|
+
#
|
1197
|
+
# @param file File to upload
|
1198
|
+
# @param rotate_type
|
1199
|
+
# @param format
|
1200
|
+
# @return [FilesResult]
|
1201
|
+
def post_rotate(file, rotate_type, format, opts = {})
|
1202
|
+
data, _status_code, _headers = post_rotate_with_http_info(file, rotate_type, format, opts)
|
1203
|
+
return data
|
1204
|
+
end
|
1205
|
+
|
1206
|
+
#
|
1207
|
+
#
|
1208
|
+
# @param file File to upload
|
1209
|
+
# @param rotate_type
|
1210
|
+
# @param format
|
1211
|
+
# @return [Array<(FilesResult, Fixnum, Hash)>] FilesResult data, response status code and response headers
|
1212
|
+
def post_rotate_with_http_info(file, rotate_type, format, opts = {})
|
1213
|
+
if @api_client.config.debugging
|
1214
|
+
@api_client.config.logger.debug "Calling API: LightCellsApi.post_rotate ..."
|
1215
|
+
end
|
1216
|
+
@api_client.request_token_if_needed
|
1217
|
+
# verify the required parameter 'file' is set
|
1218
|
+
if @api_client.config.client_side_validation && file.nil?
|
1219
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling LightCellsApi.post_rotate"
|
1220
|
+
end
|
1221
|
+
# verify the required parameter 'rotate_type' is set
|
1222
|
+
if @api_client.config.client_side_validation && rotate_type.nil?
|
1223
|
+
fail ArgumentError, "Missing the required parameter 'rotate_type' when calling LightCellsApi.post_rotate"
|
1224
|
+
end
|
1225
|
+
# verify the required parameter 'color' is set
|
1226
|
+
if @api_client.config.client_side_validation && format.nil?
|
1227
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling LightCellsApi.post_rotate"
|
1228
|
+
end
|
1229
|
+
# resource path
|
1230
|
+
local_var_path = "/cells/rotate"
|
1231
|
+
|
1232
|
+
# query parameters
|
1233
|
+
query_params = {}
|
1234
|
+
query_params[:'rotateType'] = rotate_type
|
1235
|
+
query_params[:'format'] = format
|
1236
|
+
query_params[:'checkExcelRestriction'] = opts[:'check_excel_restriction'] if !opts[:'check_excel_restriction'].nil?
|
1237
|
+
# header parameters
|
1238
|
+
header_params = {}
|
1239
|
+
# HTTP header 'Accept' (if needed)
|
1240
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1241
|
+
# HTTP header 'Content-Type'
|
1242
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
1243
|
+
|
1244
|
+
# form parameters
|
1245
|
+
form_params = {}
|
1246
|
+
file.each do |filename , context|
|
1247
|
+
form_params[filename] = context
|
1248
|
+
end
|
1249
|
+
|
1250
|
+
# http body (model)
|
1251
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
1252
|
+
post_body = ""
|
1253
|
+
#auth_names = []
|
1254
|
+
auth_names = ['JWT']
|
1255
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1256
|
+
:header_params => header_params,
|
1257
|
+
:query_params => query_params,
|
1258
|
+
:form_params => form_params,
|
1259
|
+
:body => post_body,
|
1260
|
+
:auth_names => auth_names,
|
1261
|
+
:return_type => 'FilesResult')
|
1262
|
+
if @api_client.config.debugging
|
1263
|
+
@api_client.config.logger.debug "API called: LightCellsApi#post_reverse\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1264
|
+
end
|
1265
|
+
return data, status_code, headers
|
1266
|
+
end
|
1195
1267
|
|
1196
1268
|
end
|
1197
1269
|
end
|
@@ -0,0 +1,44 @@
|
|
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 'LightCellsApi' do
|
20
|
+
before do
|
21
|
+
@instance = AsposeCellsCloud::LightCellsApi.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 'lite_cells_unit rotate test' do
|
30
|
+
it "should work" do
|
31
|
+
files = {}
|
32
|
+
|
33
|
+
name = $DataSourceXlsx
|
34
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r")
|
35
|
+
name =$AssemblyTestXlsx
|
36
|
+
files[name] = ::File.open(File.expand_path("data/"+name),"r") #{|io| io.read(io.size) }
|
37
|
+
|
38
|
+
result = @instance.post_rotate(files ,"270","pdf")
|
39
|
+
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
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.8'
|
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-08-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -524,6 +524,7 @@ files:
|
|
524
524
|
- spec/api/cells_ranges_api_spec.rb
|
525
525
|
- spec/api/cells_replace_spec.rb
|
526
526
|
- spec/api/cells_reverse_spec.rb
|
527
|
+
- spec/api/cells_rotate_spec.rb
|
527
528
|
- spec/api/cells_save_as_api_spec.rb
|
528
529
|
- spec/api/cells_search_spec.rb
|
529
530
|
- spec/api/cells_shapes_api_spec.rb
|