aspose_cells_cloud 19.2 → 19.2.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae3988c616492e19d66df38968a472a43ca8c32f
|
4
|
+
data.tar.gz: aa00c06977f6417edd01316772733defb617560f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 750d95fe3b64b6d6f3ecfa9405dbc486874e1f0ad7ff36d6fd849ab30c1b65cfd5d79013f69f972e7cd4e3cdba57003f676808beaad1880db781fd2d1d639653
|
7
|
+
data.tar.gz: e7903920b0a6c91ca2df927cac4209ddb7130086771c898d3043a793ea7340471813ae69c283784dc75183dcb9ff46e3ec2121be02f8590cd0c41f15b1db00ab
|
Binary file
|
@@ -1539,27 +1539,33 @@ module AsposeCellsCloud
|
|
1539
1539
|
|
1540
1540
|
# Convert workbook from request content to some format.
|
1541
1541
|
#
|
1542
|
+
# @param workbook
|
1542
1543
|
# @param [Hash] opts the optional parameters
|
1543
1544
|
# @option opts [String] :format The format to convert.
|
1544
1545
|
# @option opts [String] :password The workbook password.
|
1545
1546
|
# @option opts [String] :out_path Path to save result
|
1546
1547
|
# @return [File]
|
1547
|
-
def cells_workbook_put_convert_workbook(opts = {})
|
1548
|
-
data, _status_code, _headers = cells_workbook_put_convert_workbook_with_http_info(opts)
|
1548
|
+
def cells_workbook_put_convert_workbook(workbook, opts = {})
|
1549
|
+
data, _status_code, _headers = cells_workbook_put_convert_workbook_with_http_info(workbook, opts)
|
1549
1550
|
return data
|
1550
1551
|
end
|
1551
1552
|
|
1552
1553
|
# Convert workbook from request content to some format.
|
1553
1554
|
#
|
1555
|
+
# @param workbook
|
1554
1556
|
# @param [Hash] opts the optional parameters
|
1555
1557
|
# @option opts [String] :format The format to convert.
|
1556
1558
|
# @option opts [String] :password The workbook password.
|
1557
1559
|
# @option opts [String] :out_path Path to save result
|
1558
1560
|
# @return [Array<(File, Fixnum, Hash)>] File data, response status code and response headers
|
1559
|
-
def cells_workbook_put_convert_workbook_with_http_info(opts = {})
|
1561
|
+
def cells_workbook_put_convert_workbook_with_http_info(workbook, opts = {})
|
1560
1562
|
if @api_client.config.debugging
|
1561
1563
|
@api_client.config.logger.debug "Calling API: CellsWorkbookApi.cells_workbook_put_convert_workbook ..."
|
1562
1564
|
end
|
1565
|
+
# verify the required parameter 'workbook' is set
|
1566
|
+
if @api_client.config.client_side_validation && workbook.nil?
|
1567
|
+
fail ArgumentError, "Missing the required parameter 'workbook' when calling CellsWorkbookApi.cells_workbook_put_convert_workbook"
|
1568
|
+
end
|
1563
1569
|
# resource path
|
1564
1570
|
local_var_path = "/cells/convert"
|
1565
1571
|
|
@@ -1580,7 +1586,7 @@ module AsposeCellsCloud
|
|
1580
1586
|
form_params = {}
|
1581
1587
|
|
1582
1588
|
# http body (model)
|
1583
|
-
post_body =
|
1589
|
+
post_body = @api_client.object_to_http_body(workbook)
|
1584
1590
|
auth_names = []
|
1585
1591
|
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
1586
1592
|
:header_params => header_params,
|
@@ -40,24 +40,18 @@ describe 'CellsWorkbookApi' do
|
|
40
40
|
expect(@instance).to be_instance_of(AsposeCellsCloud::CellsWorkbookApi)
|
41
41
|
end
|
42
42
|
end
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
# @param name
|
47
|
-
# @param importdata
|
48
|
-
# @param [Hash] opts the optional parameters
|
49
|
-
# @option opts [String] :folder
|
50
|
-
# @option opts [String] :storage storage name.
|
51
|
-
# @return [SaaSposeResponse]
|
52
|
-
describe 'cells_workbook_post_import_data test' do
|
43
|
+
|
44
|
+
|
45
|
+
describe 'cells_workbook_put_convert_workbook test' do
|
53
46
|
it "should work" do
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
47
|
+
format = 'pdf'
|
48
|
+
password = nil
|
49
|
+
out_path = nil
|
50
|
+
aFile = File.new('/home/roywang/asposecellscloudsdk/data/Book1.xlsx', 'r')
|
51
|
+
book = aFile.sysread(aFile.size)
|
52
|
+
aFile.close
|
53
|
+
@instance.cells_workbook_put_convert_workbook(book,{:format=>format})
|
59
54
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
-
print "cells_workbook_post_import_data"
|
61
55
|
end
|
62
56
|
end
|
63
57
|
|
@@ -395,10 +395,13 @@ describe 'CellsWorkbookApi' do
|
|
395
395
|
# @return [File]
|
396
396
|
describe 'cells_workbook_put_convert_workbook test' do
|
397
397
|
it "should work" do
|
398
|
-
format = '
|
398
|
+
format = 'pdf'
|
399
399
|
password = nil
|
400
400
|
out_path = nil
|
401
|
-
|
401
|
+
aFile = File.new('/home/roywang/asposecellscloudsdk/data/Book1.xlsx', 'r')
|
402
|
+
book = aFile.sysread(aFile.size)
|
403
|
+
aFile.close
|
404
|
+
@instance.cells_workbook_put_convert_workbook(book,{:format=>format})
|
402
405
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
403
406
|
end
|
404
407
|
end
|
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:
|
4
|
+
version: 19.2.1
|
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: 2019-02-
|
11
|
+
date: 2019-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -202,6 +202,7 @@ files:
|
|
202
202
|
- Rakefile
|
203
203
|
- aspose_cells_cloud-18.11.1.gem
|
204
204
|
- aspose_cells_cloud-18.11.gem
|
205
|
+
- aspose_cells_cloud-19.2.gem
|
205
206
|
- aspose_cells_cloud.gemspec
|
206
207
|
- docs/AboveAverage.md
|
207
208
|
- docs/AccessTokenResponse.md
|