aspose_cells_cloud 26.7 → 26.9

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.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +656 -76
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +8 -0
  4. data/lib/aspose_cells_cloud/requests/categorize_spreadsheet_request.rb +151 -0
  5. data/lib/aspose_cells_cloud/requests/smart_marker_template_request.rb +30 -0
  6. data/lib/aspose_cells_cloud/requests/translate_spreadsheet_request.rb +24 -0
  7. data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +24 -0
  8. data/lib/aspose_cells_cloud/version.rb +1 -1
  9. data/lib/aspose_cells_cloud.rb +1 -0
  10. data/spec/client_spec.rb +114 -0
  11. data/spec/configuration_spec.rb +61 -0
  12. data/spec/form_file_spec.rb +47 -0
  13. data/spec/model_spec.rb +73 -0
  14. data/spec/request_spec.rb +87 -0
  15. data/spec/rich_response_spec.rb +46 -0
  16. data/spec/sdk_error_spec.rb +27 -0
  17. data/spec/spec_helper.rb +21 -134
  18. metadata +10 -78
  19. data/spec/TestData/AggregateCellsByColor.xlsx +0 -0
  20. data/spec/TestData/Book1.xlsx +0 -0
  21. data/spec/TestData/BookCsvDuplicateData.csv +0 -21
  22. data/spec/TestData/BookDuplicateData.xlsx +0 -0
  23. data/spec/TestData/BookFormula.xlsx +0 -0
  24. data/spec/TestData/BookTableL2W.xlsx +0 -0
  25. data/spec/TestData/BookText.xlsx +0 -0
  26. data/spec/TestData/CompanySales.xlsx +0 -0
  27. data/spec/TestData/EmployeeSalesSummary-BlankWorksheet.xlsx +0 -0
  28. data/spec/TestData/EmployeeSalesSummary.xlsx +0 -0
  29. data/spec/TestData/EmployeeSalesSummary_Locked.xlsx +0 -0
  30. data/spec/TestData/Formula tutorial.xlsx +0 -0
  31. data/spec/TestData/Group.xlsx +0 -0
  32. data/spec/TestData/Home inventory.xlsx +0 -0
  33. data/spec/TestData/LockedEmployeeSalesSummary.xlsx +0 -0
  34. data/spec/TestData/OLEDoc.docx +0 -0
  35. data/spec/TestData/ReportData.xml +0 -1
  36. data/spec/TestData/Simple invoice.xlsx +0 -0
  37. data/spec/TestData/Template.xlsx +0 -0
  38. data/spec/TestData/TestCase.xlsx +0 -0
  39. data/spec/TestData/TestTables.xlsx +0 -0
  40. data/spec/TestData/WaterMark.png +0 -0
  41. data/spec/TestData/assemblytest.xlsx +0 -0
  42. data/spec/TestData/data.xml +0 -1
  43. data/spec/TestData/datasource.xlsx +0 -0
  44. data/spec/TestData/myDocument.xlsx +0 -0
  45. data/spec/TestData/needUnlock.xlsx +0 -0
  46. data/spec/TestData/needlock.xlsx +0 -0
  47. data/spec/TestData/roywang.pfx +0 -0
  48. data/spec/TestData/word.jpg +0 -0
  49. data/spec/calculate/calculate_spec.rb +0 -29
  50. data/spec/cells_cloud30/auto_filter_controller_spec.rb +0 -211
  51. data/spec/cells_cloud30/batch_controller_spec.rb +0 -113
  52. data/spec/cells_cloud30/cells_controller_spec.rb +0 -627
  53. data/spec/cells_cloud30/cells_status_controller_spec.rb +0 -43
  54. data/spec/cells_cloud30/chart_area_controller_spec.rb +0 -58
  55. data/spec/cells_cloud30/charts_controller_spec.rb +0 -227
  56. data/spec/cells_cloud30/conditional_formattings_controller_spec.rb +0 -149
  57. data/spec/cells_cloud30/conversion30_spec.rb +0 -1112
  58. data/spec/cells_cloud30/data_processing_controller_spec.rb +0 -97
  59. data/spec/cells_cloud30/hypelinks_controller_spec.rb +0 -104
  60. data/spec/cells_cloud30/light_cells_spec.rb +0 -1059
  61. data/spec/cells_cloud30/list_objects_controller_spec.rb +0 -225
  62. data/spec/cells_cloud30/ole_objects_controller_spec.rb +0 -108
  63. data/spec/cells_cloud30/page_breaks_controller_spec.rb +0 -163
  64. data/spec/cells_cloud30/page_setup_controller_spec.rb +0 -149
  65. data/spec/cells_cloud30/pictures_controller_spec.rb +0 -106
  66. data/spec/cells_cloud30/pivot_tables_controller_spec.rb +0 -312
  67. data/spec/cells_cloud30/properties_controller_spec.rb +0 -89
  68. data/spec/cells_cloud30/ranges_controller_spec.rb +0 -227
  69. data/spec/cells_cloud30/shapes_controller_spec.rb +0 -139
  70. data/spec/cells_cloud30/sparkline_groups_controller_spec.rb +0 -104
  71. data/spec/cells_cloud30/text_processing_controller_spec.rb +0 -67
  72. data/spec/cells_cloud30/workbook_controller_spec.rb +0 -519
  73. data/spec/cells_cloud30/worksheet_controller_spec.rb +0 -609
  74. data/spec/cells_cloud30/worksheet_validations_controller_spec.rb +0 -104
  75. data/spec/cells_cloud30/xml_controller_spec.rb +0 -48
  76. data/spec/data_processing/conversion_spec.rb +0 -428
  77. data/spec/data_processing/import_data_spec.rb +0 -24
  78. data/spec/data_processing/merger_spec.rb +0 -28
  79. data/spec/data_processing/protection_spec.rb +0 -29
  80. data/spec/data_processing/splitter_spec.rb +0 -47
  81. data/spec/data_processing/transform_spec.rb +0 -43
  82. data/spec/dynabic/file_controller_spec.rb +0 -60
  83. data/spec/dynabic/folder_controller_spec.rb +0 -88
  84. data/spec/dynabic/storage_controller_spec.rb +0 -73
  85. data/spec/management/management_spec.rb +0 -111
  86. data/spec/search2_replace/replacer_spec.rb +0 -46
  87. data/spec/search2_replace/searcher_spec.rb +0 -131
  88. data/spec/text_processing/add_text_spec.rb +0 -45
  89. data/spec/text_processing/convert_text_spec.rb +0 -37
  90. data/spec/text_processing/extract_text_spec.rb +0 -37
  91. data/spec/text_processing/remove_characters_spec.rb +0 -53
  92. data/spec/text_processing/split_text_spec.rb +0 -21
  93. data/spec/text_processing/trim_spreadsheet_spec.rb +0 -29
  94. data/spec/text_processing/update_word_case_spec.rb +0 -37
@@ -1,106 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe 'CellsApi' do
5
- before do
6
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
7
- $VERBOSE = nil
8
- end
9
-
10
- after do
11
- # run after each test
12
- end
13
-
14
- describe 'get_worksheet_pictures test' do
15
- it "should work" do
16
- remote_folder = 'TestData/In'
17
-
18
- local_name = 'Book1.xlsx'
19
- remote_name = 'Book1.xlsx'
20
-
21
-
22
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
23
-
24
- request = AsposeCellsCloud::GetWorksheetPicturesRequest.new(:name=>remote_name,:sheetName=>'Sheet6',:folder=>remote_folder,:storageName=>'');
25
- @instance.get_worksheet_pictures(request);
26
- end
27
- end
28
-
29
- describe 'get_worksheet_picture_with_format test' do
30
- it "should work" do
31
- remote_folder = 'TestData/In'
32
-
33
- local_name = 'Book1.xlsx'
34
- remote_name = 'Book1.xlsx'
35
-
36
-
37
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
38
-
39
- request = AsposeCellsCloud::GetWorksheetPictureWithFormatRequest.new(:name=>remote_name,:sheetName=>'Sheet6',:pictureNumber=>0,:format=>'png',:folder=>remote_folder,:storageName=>'');
40
- @instance.get_worksheet_picture_with_format(request);
41
- end
42
- end
43
-
44
- describe 'put_worksheet_add_picture test' do
45
- it "should work" do
46
- remote_folder = 'TestData/In'
47
-
48
- local_name = 'Book1.xlsx'
49
- water_mark_png = 'WaterMark.png'
50
- remote_name = 'Book1.xlsx'
51
-
52
-
53
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
54
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+water_mark_png,:path=>remote_folder ))
55
-
56
- request = AsposeCellsCloud::PutWorksheetAddPictureRequest.new(:name=>remote_name,:sheetName=>'Sheet6',:upperLeftRow=>1,:upperLeftColumn=>1,:lowerRightRow=>10,:lowerRightColumn=>10,:picturePath=>remote_folder + '/WaterMark.png',:folder=>remote_folder,:storageName=>'');
57
- @instance.put_worksheet_add_picture(request);
58
- end
59
- end
60
-
61
- describe 'post_worksheet_picture test' do
62
- it "should work" do
63
- remote_folder = 'TestData/In'
64
-
65
- local_name = 'Book1.xlsx'
66
- remote_name = 'Book1.xlsx'
67
-
68
-
69
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
70
-
71
- picture = AsposeCellsCloud::Picture.new(:Left=>10 ,:Bottom=>10 );
72
- request = AsposeCellsCloud::PostWorksheetPictureRequest.new(:name=>remote_name,:sheetName=>'Sheet6',:pictureIndex=>0,:picture=>picture,:folder=>remote_folder,:storageName=>'');
73
- @instance.post_worksheet_picture(request);
74
- end
75
- end
76
-
77
- describe 'delete_worksheet_picture test' do
78
- it "should work" do
79
- remote_folder = 'TestData/In'
80
-
81
- local_name = 'Book1.xlsx'
82
- remote_name = 'Book1.xlsx'
83
-
84
-
85
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
86
-
87
- request = AsposeCellsCloud::DeleteWorksheetPictureRequest.new(:name=>remote_name,:sheetName=>'Sheet6',:pictureIndex=>0,:folder=>remote_folder,:storageName=>'');
88
- @instance.delete_worksheet_picture(request);
89
- end
90
- end
91
-
92
- describe 'delete_worksheet_pictures test' do
93
- it "should work" do
94
- remote_folder = 'TestData/In'
95
-
96
- local_name = 'Book1.xlsx'
97
- remote_name = 'Book1.xlsx'
98
-
99
-
100
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
101
-
102
- request = AsposeCellsCloud::DeleteWorksheetPicturesRequest.new(:name=>remote_name,:sheetName=>'Sheet6',:folder=>remote_folder,:storageName=>'');
103
- @instance.delete_worksheet_pictures(request);
104
- end
105
- end
106
- end
@@ -1,312 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe 'CellsApi' do
5
- before do
6
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
7
- $VERBOSE = nil
8
- end
9
-
10
- after do
11
- # run after each test
12
- end
13
-
14
- describe 'get_worksheet_pivot_tables test' do
15
- it "should work" do
16
- remote_folder = 'TestData/In'
17
-
18
- local_name = 'TestCase.xlsx'
19
- remote_name = 'TestCase.xlsx'
20
-
21
-
22
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
23
-
24
- request = AsposeCellsCloud::GetWorksheetPivotTablesRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:folder=>remote_folder,:storageName=>'');
25
- @instance.get_worksheet_pivot_tables(request);
26
- end
27
- end
28
-
29
- describe 'get_worksheet_pivot_table test' do
30
- it "should work" do
31
- remote_folder = 'TestData/In'
32
-
33
- local_name = 'TestCase.xlsx'
34
- remote_name = 'TestCase.xlsx'
35
-
36
-
37
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
38
-
39
- request = AsposeCellsCloud::GetWorksheetPivotTableRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivottableIndex=>0,:folder=>remote_folder,:storageName=>'');
40
- @instance.get_worksheet_pivot_table(request);
41
- end
42
- end
43
-
44
- describe 'get_pivot_table_field test' do
45
- it "should work" do
46
- remote_folder = 'TestData/In'
47
-
48
- local_name = 'TestCase.xlsx'
49
- remote_name = 'TestCase.xlsx'
50
-
51
-
52
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
53
-
54
- request = AsposeCellsCloud::GetPivotTableFieldRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:pivotFieldIndex=>0,:pivotFieldType=>'Row',:folder=>remote_folder,:storageName=>'');
55
- @instance.get_pivot_table_field(request);
56
- end
57
- end
58
-
59
- describe 'get_worksheet_pivot_table_filters test' do
60
- it "should work" do
61
- remote_folder = 'TestData/In'
62
-
63
- local_name = 'TestCase.xlsx'
64
- remote_name = 'TestCase.xlsx'
65
-
66
-
67
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
68
-
69
- request = AsposeCellsCloud::GetWorksheetPivotTableFiltersRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:folder=>remote_folder,:storageName=>'');
70
- @instance.get_worksheet_pivot_table_filters(request);
71
- end
72
- end
73
-
74
- describe 'put_worksheet_pivot_table test' do
75
- it "should work" do
76
- remote_folder = 'TestData/In'
77
-
78
- local_name = 'TestCase.xlsx'
79
- remote_name = 'TestCase.xlsx'
80
-
81
-
82
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
83
-
84
- request = AsposeCellsCloud::PutWorksheetPivotTableRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:folder=>remote_folder,:sourceData=>'=Sheet1!C6:E13',:destCellName=>'C1',:tableName=>'TestPivot',:useSameSource=>true,:storageName=>'');
85
- @instance.put_worksheet_pivot_table(request);
86
- end
87
- end
88
-
89
- describe 'put_pivot_table_field test' do
90
- it "should work" do
91
- remote_folder = 'TestData/In'
92
-
93
- local_name = 'TestCase.xlsx'
94
- remote_name = 'TestCase.xlsx'
95
-
96
-
97
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
98
-
99
- pivotTableFieldRequestData = [
100
- 0
101
- ];
102
- pivotTableFieldRequest = AsposeCellsCloud::PivotTableFieldRequest.new(:Data=>pivotTableFieldRequestData );
103
- request = AsposeCellsCloud::PutPivotTableFieldRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:pivotFieldType=>'Row',:pivotTableFieldRequest=>pivotTableFieldRequest,:needReCalculate=>true,:folder=>remote_folder,:storageName=>'');
104
- @instance.put_pivot_table_field(request);
105
- end
106
- end
107
-
108
- describe 'post_pivot_table_field_hide_item test' do
109
- it "should work" do
110
- remote_folder = 'TestData/In'
111
-
112
- local_name = 'TestCase.xlsx'
113
- remote_name = 'TestCase.xlsx'
114
-
115
-
116
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
117
-
118
- request = AsposeCellsCloud::PostPivotTableFieldHideItemRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:pivotFieldType=>'Row',:fieldIndex=>0,:itemIndex=>1,:isHide=>true,:needReCalculate=>true,:folder=>remote_folder,:storageName=>'');
119
- @instance.post_pivot_table_field_hide_item(request);
120
- end
121
- end
122
-
123
- describe 'post_pivot_table_field_move_to test' do
124
- it "should work" do
125
- remote_folder = 'TestData/In'
126
-
127
- local_name = 'TestCase.xlsx'
128
- remote_name = 'TestCase.xlsx'
129
-
130
-
131
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
132
-
133
- request = AsposeCellsCloud::PostPivotTableFieldMoveToRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:fieldIndex=>0,:from=>'Row',:to=>'Column',:folder=>remote_folder,:storageName=>'');
134
- @instance.post_pivot_table_field_move_to(request);
135
- end
136
- end
137
-
138
- describe 'post_pivot_table_cell_style test' do
139
- it "should work" do
140
- remote_folder = 'TestData/In'
141
-
142
- local_name = 'TestCase.xlsx'
143
- remote_name = 'TestCase.xlsx'
144
-
145
-
146
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
147
-
148
- styleFont = AsposeCellsCloud::Font.new(:Size=>16 );
149
- style = AsposeCellsCloud::Style.new(:Font=>styleFont );
150
- request = AsposeCellsCloud::PostPivotTableCellStyleRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:column=>1,:row=>1,:style=>style,:needReCalculate=>true,:folder=>remote_folder,:storageName=>'');
151
- @instance.post_pivot_table_cell_style(request);
152
- end
153
- end
154
-
155
- describe 'post_pivot_table_style test' do
156
- it "should work" do
157
- remote_folder = 'TestData/In'
158
-
159
- local_name = 'TestCase.xlsx'
160
- remote_name = 'TestCase.xlsx'
161
-
162
-
163
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
164
-
165
- styleFont = AsposeCellsCloud::Font.new(:Size=>16 );
166
- style = AsposeCellsCloud::Style.new(:Font=>styleFont );
167
- request = AsposeCellsCloud::PostPivotTableStyleRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:style=>style,:needReCalculate=>true,:folder=>remote_folder,:storageName=>'');
168
- @instance.post_pivot_table_style(request);
169
- end
170
- end
171
-
172
- describe 'post_pivot_table_update_pivot_fields test' do
173
- it "should work" do
174
- remote_folder = 'TestData/In'
175
-
176
- local_name = 'TestCase.xlsx'
177
- remote_name = 'TestCase.xlsx'
178
-
179
-
180
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
181
-
182
- pivotField = AsposeCellsCloud::PivotField.new(:ShowCompact=>true );
183
- request = AsposeCellsCloud::PostPivotTableUpdatePivotFieldsRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:pivotFieldType=>'Row',:pivotField=>pivotField,:needReCalculate=>true,:folder=>remote_folder,:storageName=>'');
184
- @instance.post_pivot_table_update_pivot_fields(request);
185
- end
186
- end
187
-
188
- describe 'post_pivot_table_update_pivot_field test' do
189
- it "should work" do
190
- remote_folder = 'TestData/In'
191
-
192
- local_name = 'TestCase.xlsx'
193
- remote_name = 'TestCase.xlsx'
194
-
195
-
196
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
197
-
198
- pivotField = AsposeCellsCloud::PivotField.new(:ShowCompact=>true );
199
- request = AsposeCellsCloud::PostPivotTableUpdatePivotFieldRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:pivotFieldIndex=>0,:pivotFieldType=>'Row',:pivotField=>pivotField,:needReCalculate=>true,:folder=>remote_folder,:storageName=>'');
200
- @instance.post_pivot_table_update_pivot_field(request);
201
- end
202
- end
203
-
204
- describe 'post_worksheet_pivot_table_calculate test' do
205
- it "should work" do
206
- remote_folder = 'TestData/In'
207
-
208
- local_name = 'TestCase.xlsx'
209
- remote_name = 'TestCase.xlsx'
210
-
211
-
212
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
213
-
214
- request = AsposeCellsCloud::PostWorksheetPivotTableCalculateRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:folder=>remote_folder,:storageName=>'');
215
- @instance.post_worksheet_pivot_table_calculate(request);
216
- end
217
- end
218
-
219
- describe 'post_worksheet_pivot_table_move test' do
220
- it "should work" do
221
- remote_folder = 'TestData/In'
222
-
223
- local_name = 'TestCase.xlsx'
224
- remote_name = 'TestCase.xlsx'
225
-
226
-
227
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
228
-
229
- request = AsposeCellsCloud::PostWorksheetPivotTableMoveRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:row=>1,:column=>1,:destCellName=>'C10',:folder=>remote_folder,:storageName=>'');
230
- @instance.post_worksheet_pivot_table_move(request);
231
- end
232
- end
233
-
234
- describe 'delete_worksheet_pivot_tables test' do
235
- it "should work" do
236
- remote_folder = 'TestData/In'
237
-
238
- local_name = 'TestCase.xlsx'
239
- remote_name = 'TestCase.xlsx'
240
-
241
-
242
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
243
-
244
- request = AsposeCellsCloud::DeleteWorksheetPivotTablesRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:folder=>remote_folder,:storageName=>'');
245
- @instance.delete_worksheet_pivot_tables(request);
246
- end
247
- end
248
-
249
- describe 'delete_worksheet_pivot_table test' do
250
- it "should work" do
251
- remote_folder = 'TestData/In'
252
-
253
- local_name = 'TestCase.xlsx'
254
- remote_name = 'TestCase.xlsx'
255
-
256
-
257
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
258
-
259
- request = AsposeCellsCloud::DeleteWorksheetPivotTableRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:folder=>remote_folder,:storageName=>'');
260
- @instance.delete_worksheet_pivot_table(request);
261
- end
262
- end
263
-
264
- describe 'delete_pivot_table_field test' do
265
- it "should work" do
266
- remote_folder = 'TestData/In'
267
-
268
- local_name = 'TestCase.xlsx'
269
- remote_name = 'TestCase.xlsx'
270
-
271
-
272
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
273
-
274
- pivotTableFieldRequestData = [
275
- 0
276
- ];
277
- pivotTableFieldRequest = AsposeCellsCloud::PivotTableFieldRequest.new(:Data=>pivotTableFieldRequestData );
278
- request = AsposeCellsCloud::DeletePivotTableFieldRequest.new(:name=>remote_name,:sheetName=>'Sheet4',:pivotTableIndex=>0,:pivotFieldType=>'Row',:pivotTableFieldRequest=>pivotTableFieldRequest,:folder=>remote_folder,:storageName=>'');
279
- @instance.delete_pivot_table_field(request);
280
- end
281
- end
282
-
283
- describe 'delete_worksheet_pivot_table_filters test' do
284
- it "should work" do
285
- remote_folder = 'TestData/In'
286
-
287
- local_name = 'TestCase.xlsx'
288
- remote_name = 'TestCase.xlsx'
289
-
290
-
291
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
292
-
293
- request = AsposeCellsCloud::DeleteWorksheetPivotTableFiltersRequest.new(:name=>remote_name,:sheetName=>'Sheet3',:pivotTableIndex=>0,:needReCalculate=>true,:folder=>remote_folder,:storageName=>'');
294
- @instance.delete_worksheet_pivot_table_filters(request);
295
- end
296
- end
297
-
298
- describe 'delete_worksheet_pivot_table_filter test' do
299
- it "should work" do
300
- remote_folder = 'TestData/In'
301
-
302
- local_name = 'TestCase.xlsx'
303
- remote_name = 'TestCase.xlsx'
304
-
305
-
306
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
307
-
308
- request = AsposeCellsCloud::DeleteWorksheetPivotTableFilterRequest.new(:name=>remote_name,:sheetName=>'Sheet3',:pivotTableIndex=>0,:fieldIndex=>0,:needReCalculate=>true,:folder=>remote_folder,:storageName=>'');
309
- @instance.delete_worksheet_pivot_table_filter(request);
310
- end
311
- end
312
- end
@@ -1,89 +0,0 @@
1
- require 'spec_helper'
2
- require 'json'
3
-
4
- describe 'CellsApi' do
5
- before do
6
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
7
- $VERBOSE = nil
8
- end
9
-
10
- after do
11
- # run after each test
12
- end
13
-
14
- describe 'get_document_properties test' do
15
- it "should work" do
16
- remote_folder = 'TestData/In'
17
-
18
- local_name = 'Book1.xlsx'
19
- remote_name = 'Book1.xlsx'
20
-
21
-
22
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
23
-
24
- request = AsposeCellsCloud::GetDocumentPropertiesRequest.new(:name=>remote_name,:type=>'All',:folder=>remote_folder,:storageName=>'');
25
- @instance.get_document_properties(request);
26
- end
27
- end
28
-
29
- describe 'get_document_property test' do
30
- it "should work" do
31
- remote_folder = 'TestData/In'
32
-
33
- local_name = 'Book1.xlsx'
34
- remote_name = 'Book1.xlsx'
35
-
36
-
37
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
38
-
39
- request = AsposeCellsCloud::GetDocumentPropertyRequest.new(:name=>remote_name,:propertyName=>'Author',:folder=>remote_folder,:storageName=>'');
40
- @instance.get_document_property(request);
41
- end
42
- end
43
-
44
- describe 'put_document_property test' do
45
- it "should work" do
46
- remote_folder = 'TestData/In'
47
-
48
- local_name = 'Book1.xlsx'
49
- remote_name = 'Book1.xlsx'
50
-
51
-
52
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
53
-
54
- property = AsposeCellsCloud::CellsDocumentProperty.new(:Name=>'Author' ,:Value=>'cells developer' );
55
- request = AsposeCellsCloud::PutDocumentPropertyRequest.new(:name=>remote_name,:property=>property,:folder=>remote_folder,:storageName=>'');
56
- @instance.put_document_property(request);
57
- end
58
- end
59
-
60
- describe 'delete_document_property test' do
61
- it "should work" do
62
- remote_folder = 'TestData/In'
63
-
64
- local_name = 'Book1.xlsx'
65
- remote_name = 'Book1.xlsx'
66
-
67
-
68
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
69
-
70
- request = AsposeCellsCloud::DeleteDocumentPropertyRequest.new(:name=>remote_name,:propertyName=>'Author',:type=>'All',:folder=>remote_folder,:storageName=>'');
71
- @instance.delete_document_property(request);
72
- end
73
- end
74
-
75
- describe 'delete_document_properties test' do
76
- it "should work" do
77
- remote_folder = 'TestData/In'
78
-
79
- local_name = 'Book1.xlsx'
80
- remote_name = 'Book1.xlsx'
81
-
82
-
83
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
84
-
85
- request = AsposeCellsCloud::DeleteDocumentPropertiesRequest.new(:name=>remote_name,:folder=>remote_folder,:storageName=>'');
86
- @instance.delete_document_properties(request);
87
- end
88
- end
89
- end