aspose_cells_cloud 21.6 → 21.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -36,6 +36,183 @@ describe 'LiteCellsApi' do
36
36
 
37
37
  result = @instance.post_export(files ,"chart","pdf")
38
38
 
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
+ end
41
+ end
42
+ describe 'lite_cells_unit export object test' do
43
+ it "should work" do
44
+ files = {}
45
+ name = $DataSourceXlsx
46
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
47
+ name =$AssemblyTestXlsx
48
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
49
+
50
+ result = @instance.post_export(files ,"chart","tiff")
51
+
52
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
53
+ end
54
+ end
55
+
56
+ describe 'lite_cells_unit export object test' do
57
+ it "should work" do
58
+ files = {}
59
+ name = $DataSourceXlsx
60
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
61
+ name =$AssemblyTestXlsx
62
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
63
+
64
+ result = @instance.post_export(files ,"chart","png")
65
+
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ describe 'lite_cells_unit export object test' do
71
+ it "should work" do
72
+ files = {}
73
+ name = $DataSourceXlsx
74
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
75
+ name =$AssemblyTestXlsx
76
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
77
+
78
+ result = @instance.post_export(files ,"picture","png")
79
+
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
84
+ describe 'lite_cells_unit export object test' do
85
+ it "should work" do
86
+ files = {}
87
+ name = $DataSourceXlsx
88
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
89
+ name =$AssemblyTestXlsx
90
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
91
+
92
+ result = @instance.post_export(files ,"shape","png")
93
+
94
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
95
+ end
96
+ end
97
+
98
+ describe 'lite_cells_unit export object test' do
99
+ it "should work" do
100
+ files = {}
101
+ name = $DataSourceXlsx
102
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
103
+ name =$AssemblyTestXlsx
104
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
105
+
106
+ result = @instance.post_export(files ,"sheet","png")
107
+
108
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
109
+ end
110
+ end
111
+
112
+ describe 'lite_cells_unit export object test' do
113
+ it "should work" do
114
+ files = {}
115
+ name = $DataSourceXlsx
116
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
117
+ name =$AssemblyTestXlsx
118
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
119
+
120
+ result = @instance.post_export(files ,"sheet","pdf")
121
+
122
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
123
+ end
124
+ end
125
+ describe 'lite_cells_unit export object test' do
126
+ it "should work" do
127
+ files = {}
128
+ name = $DataSourceXlsx
129
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
130
+ name =$AssemblyTestXlsx
131
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
132
+
133
+ result = @instance.post_export(files ,"sheet","ods")
134
+
135
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
136
+ end
137
+ end
138
+ describe 'lite_cells_unit export object test' do
139
+ it "should work" do
140
+ files = {}
141
+ name = $DataSourceXlsx
142
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
143
+ name =$AssemblyTestXlsx
144
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
145
+
146
+ result = @instance.post_export(files ,"workbook","png")
147
+
148
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
149
+ end
150
+ end
151
+ describe 'lite_cells_unit export object test' do
152
+ it "should work" do
153
+ files = {}
154
+ name = $DataSourceXlsx
155
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
156
+ name =$AssemblyTestXlsx
157
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
158
+
159
+ result = @instance.post_export(files ,"workbook","ods")
160
+
161
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
162
+ end
163
+ end
164
+ describe 'lite_cells_unit export object test' do
165
+ it "should work" do
166
+ files = {}
167
+ name = $DataSourceXlsx
168
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
169
+ name =$AssemblyTestXlsx
170
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
171
+
172
+ result = @instance.post_export(files ,"workbook","pdf")
173
+
174
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
175
+ end
176
+ end
177
+
178
+ describe 'lite_cells_unit export object test' do
179
+ it "should work" do
180
+ files = {}
181
+ name = $DataSourceXlsx
182
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
183
+ name =$AssemblyTestXlsx
184
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
185
+
186
+ result = @instance.post_export(files ,"listobject","png")
187
+
188
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
189
+ end
190
+ end
191
+
192
+ describe 'lite_cells_unit export object test' do
193
+ it "should work" do
194
+ files = {}
195
+ name = $DataSourceXlsx
196
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
197
+ name =$AssemblyTestXlsx
198
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
199
+
200
+ result = @instance.post_export(files ,"listobject","pdf")
201
+
202
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
203
+ end
204
+ end
205
+
206
+ describe 'lite_cells_unit export object test' do
207
+ it "should work" do
208
+ files = {}
209
+ name = $DataSourceXlsx
210
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
211
+ name =$AssemblyTestXlsx
212
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
213
+
214
+ result = @instance.post_export(files ,"listobject","xlsx")
215
+
39
216
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
217
  end
41
218
  end
@@ -0,0 +1,43 @@
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 'LiteCellsApi' do
20
+ before do
21
+ @instance = AsposeCellsCloud::LiteCellsApi.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 import object test' do
30
+ it "should work" do
31
+ files = {}
32
+ name = $DataSourceXlsx
33
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
34
+ name =$AssemblyTestXlsx
35
+ files[name] = ::File.open(File.expand_path("data/"+name),"r")
36
+ importdata = AsposeCellsCloud::ImportIntArrayOption.new({:DestinationWorksheet=>$SHEET1,:FirstColumn=>1,:FirstRow=>3,:ImportDataType=>'IntArray',:IsVertical=>true,:Data=>[1,2,3,4]})
37
+ result = @instance.post_import(files ,importdata)
38
+
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
+ end
41
+ end
42
+ end
43
+
@@ -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 'LiteCellsApi' do
20
+ before do
21
+ @instance = AsposeCellsCloud::LiteCellsApi.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 replace 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_replace(files ,"1","aspose.cells cloud")
39
+
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+ end
44
+
@@ -18,7 +18,7 @@ require 'json'
18
18
  # Please update as you see appropriate
19
19
  describe 'CellsApi' do
20
20
  before do
21
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
21
+ @instance = AsposeCellsCloud::LiteCellsApi.new($client_id,$client_secret,$api_version,$baseurl)
22
22
  $VERBOSE = nil
23
23
  end
24
24
 
@@ -26,17 +26,17 @@ describe 'CellsApi' do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'cells_unit test' do
29
+ describe 'lite_cells_unit replace test' do
30
30
  it "should work" do
31
- name = $BOOK1
32
- sheet_name = $SHEET1
33
- cell_area = $CELLAREA
34
- formatcondition = AsposeCellsCloud::FormatCondition.new({:'Type'=> 'CellValue', :'Operator'=>'Between',:'Formula1'=>'v1',:'Formula2'=>'v1'})
35
- folder = $TEMPFOLDER
36
- result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
37
- expect(result.uploaded.size).to be > 0
38
- result = @instance.cells_conditional_formattings_put_worksheet_conditional_formatting(name, sheet_name, cell_area, {:format_condition=>formatcondition, :folder=>folder})
39
- expect(result.code).to eql(200)
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_replace(files ,"1","aspose.cells cloud")
39
+
40
40
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
41
  end
42
42
  end
@@ -663,5 +663,16 @@ describe 'CellsWorkbookApi' do
663
663
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
664
664
  end
665
665
  end
666
-
666
+ describe 'cells_workbook_get_page_count test' do
667
+ it "should work" do
668
+ name = $BOOK1
669
+ folder = $TEMPFOLDER
670
+
671
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
672
+ expect(result.uploaded.size).to be > 0
673
+ result = @instance.cells_workbook_get_page_count(name, { :folder=>folder})
674
+ expect(result).to be > 0
675
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
676
+ end
677
+ end
667
678
  end
@@ -840,4 +840,28 @@ describe 'CellsWorksheetsApi' do
840
840
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
841
841
  end
842
842
  end
843
+
844
+ describe 'cells_worksheets_delete_worksheets test' do
845
+ it "should work" do
846
+ name = $BOOK1
847
+ folder = $TEMPFOLDER
848
+ match_condition = AsposeCellsCloud::MatchConditionRequest.new({:FullMatchConditions=>[$SHEET3,$SHEET5]})
849
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
850
+ expect(result.uploaded.size).to be > 0
851
+ result = @instance.cells_worksheets_delete_worksheets(name, match_condition, { :folder=>folder})
852
+ expect(result.code).to eql(200)
853
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
854
+ end
855
+ end
856
+ describe 'cells_worksheets_get_page_count test' do
857
+ it "should work" do
858
+ name = $BOOK1
859
+ folder = $TEMPFOLDER
860
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
861
+ expect(result.uploaded.size).to be > 0
862
+ result = @instance.cells_worksheets_get_page_count(name, $SHEET1, { :folder=>folder})
863
+ expect(result).to be > 0
864
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
865
+ end
866
+ end
843
867
  end
data/spec/spec_helper.rb CHANGED
@@ -11,7 +11,7 @@ Swagger Codegen version: 2.3.0-SNAPSHOT
11
11
  =end
12
12
  require 'openssl'
13
13
  require 'bundler'
14
- OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
14
+ # OpenSSL::SSL::VERIFY_PEER = OpenSSL::SSL::VERIFY_NONE
15
15
  # load the gem
16
16
  require 'aspose_cells_cloud'
17
17
  $grant_type = 'client_credentials' # replace NULL with a proper value
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: '21.6'
4
+ version: '21.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: 2021-07-17 00:00:00.000000000 Z
11
+ date: 2021-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -245,6 +245,7 @@ files:
245
245
  - lib/aspose_cells_cloud/models/auto_shape_response.rb
246
246
  - lib/aspose_cells_cloud/models/auto_shapes.rb
247
247
  - lib/aspose_cells_cloud/models/auto_shapes_response.rb
248
+ - lib/aspose_cells_cloud/models/batch_convert_request.rb
248
249
  - lib/aspose_cells_cloud/models/border.rb
249
250
  - lib/aspose_cells_cloud/models/calculation_options.rb
250
251
  - lib/aspose_cells_cloud/models/cell.rb
@@ -333,6 +334,7 @@ files:
333
334
  - lib/aspose_cells_cloud/models/import_double_array_option.rb
334
335
  - lib/aspose_cells_cloud/models/import_int_array_option.rb
335
336
  - lib/aspose_cells_cloud/models/import_option.rb
337
+ - lib/aspose_cells_cloud/models/import_picture_option.rb
336
338
  - lib/aspose_cells_cloud/models/import_string_array_option.rb
337
339
  - lib/aspose_cells_cloud/models/legend.rb
338
340
  - lib/aspose_cells_cloud/models/legend_response.rb
@@ -349,6 +351,7 @@ files:
349
351
  - lib/aspose_cells_cloud/models/list_objects_response.rb
350
352
  - lib/aspose_cells_cloud/models/m_html_save_options.rb
351
353
  - lib/aspose_cells_cloud/models/markdown_save_options.rb
354
+ - lib/aspose_cells_cloud/models/match_condition_request.rb
352
355
  - lib/aspose_cells_cloud/models/merged_cell.rb
353
356
  - lib/aspose_cells_cloud/models/merged_cell_response.rb
354
357
  - lib/aspose_cells_cloud/models/merged_cells.rb
@@ -489,12 +492,15 @@ files:
489
492
  - spec/api/cells_api_spec.rb
490
493
  - spec/api/cells_assembly_spec.rb
491
494
  - spec/api/cells_auto_filter_api_spec.rb
495
+ - spec/api/cells_batch_spec.rb
492
496
  - spec/api/cells_chart_area_api_spec.rb
493
497
  - spec/api/cells_charts_api_spec.rb
494
498
  - spec/api/cells_clear_objects_spec.rb
499
+ - spec/api/cells_compress_spec.rb
495
500
  - spec/api/cells_conditional_formattings_api_spec.rb
496
501
  - spec/api/cells_export_spec.rb
497
502
  - spec/api/cells_hypelinks_api_spec.rb
503
+ - spec/api/cells_import_spec.rb
498
504
  - spec/api/cells_list_objects_api_spec.rb
499
505
  - spec/api/cells_merge_spec.rb
500
506
  - spec/api/cells_metadata_spec.rb
@@ -506,6 +512,7 @@ files:
506
512
  - spec/api/cells_properties_api_spec.rb
507
513
  - spec/api/cells_protect_spec.rb
508
514
  - spec/api/cells_ranges_api_spec.rb
515
+ - spec/api/cells_replace_spec.rb
509
516
  - spec/api/cells_save_as_api_spec.rb
510
517
  - spec/api/cells_search_spec.rb
511
518
  - spec/api/cells_shapes_api_spec.rb