Skip to content

Commit a6195c4

Browse files
committed
Update faraday version and readme.
1 parent 74eb304 commit a6195c4

File tree

3 files changed

+8
-18
lines changed

3 files changed

+8
-18
lines changed

README.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,10 @@ require 'openssl'
3232
require 'bundler'
3333
require 'aspose_cells_cloud'
3434

35-
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
36-
37-
remote_folder = 'TestData/In'
38-
local_name = 'Book1.xlsx'
39-
remote_name = 'Book1.xlsx'
40-
format = "csv"
41-
mapFiles = { }
42-
mapFiles = { }
43-
@instance.upload_file(uploadrequest)
44-
mapFiles[local_name]= ::File.open(File.expand_path("TestData/"+local_name),"r")
45-
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:format=>format);
46-
@instance.put_convert_workbook(request);
35+
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'])
36+
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>{"EmployeeSalesSummary.xlsx" => ::File.open(File.expand_path("./EmployeeSalesSummary.xlsx"),"r") },:format=>"csv");
37+
response = @instance.put_convert_workbook(request);
38+
FileUtils.cp(response.path, 'EmployeeSalesSummary.csv')
4739

4840
```
4941

aspose_cells_cloud.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Gem::Specification.new do |s|
3131

3232
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
3333
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
34-
s.add_runtime_dependency 'faraday', '~> 0.14.0'
34+
s.add_runtime_dependency 'faraday', '~> 0.17.4'
3535

3636
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
3737
s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'

examples/Example_QuickStart.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
require 'bundler'
33
require 'aspose_cells_cloud'
44

5-
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'],'v3.0',ENV['CellsCloudApiBaseUrl'])
6-
@instance.upload_file(uploadrequest)
7-
mapFiles["EmployeeSalesSummary.xlsx"]= ::File.open(File.expand_path("./EmployeeSalesSummary.xlsx"),"r")
8-
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>mapFiles,:format=>"pdf");
5+
@instance = AsposeCellsCloud::CellsApi.new(ENV['CellsCloudClientId'], ENV['CellsCloudClientSecret'])
6+
request = AsposeCellsCloud::PutConvertWorkbookRequest.new(:File=>{"EmployeeSalesSummary.xlsx" => ::File.open(File.expand_path("./EmployeeSalesSummary.xlsx"),"r") },:format=>"csv");
97
response = @instance.put_convert_workbook(request);
10-
print response
8+
FileUtils.cp(response.path, 'EmployeeSalesSummary.csv')

0 commit comments

Comments
 (0)