aspose_cells_cloud 26.4 → 26.6.4

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 (119) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -5
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +87 -0
  4. data/lib/aspose_cells_cloud/models/ebook_save_options.rb +822 -0
  5. data/lib/aspose_cells_cloud/requests/add_text_in_remote_spreadsheet_request.rb +196 -0
  6. data/lib/aspose_cells_cloud/requests/convert_range_to_csv_request.rb +16 -0
  7. data/lib/aspose_cells_cloud/requests/convert_range_to_html_request.rb +16 -0
  8. data/lib/aspose_cells_cloud/requests/convert_range_to_image_request.rb +16 -0
  9. data/lib/aspose_cells_cloud/requests/convert_range_to_json_request.rb +16 -0
  10. data/lib/aspose_cells_cloud/requests/convert_range_to_pdf_request.rb +16 -0
  11. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_request.rb +16 -0
  12. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_csv_request.rb +16 -0
  13. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_json_request.rb +16 -0
  14. data/lib/aspose_cells_cloud/requests/convert_spreadsheet_to_pdf_request.rb +16 -0
  15. data/lib/aspose_cells_cloud/requests/convert_table_to_csv_request.rb +16 -0
  16. data/lib/aspose_cells_cloud/requests/convert_table_to_html_request.rb +16 -0
  17. data/lib/aspose_cells_cloud/requests/convert_table_to_image_request.rb +16 -0
  18. data/lib/aspose_cells_cloud/requests/convert_table_to_json_request.rb +16 -0
  19. data/lib/aspose_cells_cloud/requests/convert_table_to_pdf_request.rb +16 -0
  20. data/lib/aspose_cells_cloud/requests/convert_text_in_remote_spreadsheet_request.rb +184 -0
  21. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_csv_request.rb +16 -0
  22. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_html_request.rb +16 -0
  23. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_image_request.rb +16 -0
  24. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_json_request.rb +16 -0
  25. data/lib/aspose_cells_cloud/requests/convert_worksheet_to_pdf_request.rb +16 -0
  26. data/lib/aspose_cells_cloud/requests/export_range_as_format_request.rb +16 -0
  27. data/lib/aspose_cells_cloud/requests/export_spreadsheet_as_format_request.rb +16 -0
  28. data/lib/aspose_cells_cloud/requests/export_table_as_format_request.rb +16 -0
  29. data/lib/aspose_cells_cloud/requests/export_worksheet_as_format_request.rb +16 -0
  30. data/lib/aspose_cells_cloud/requests/get_spreadsheet_structure_request.rb +123 -0
  31. data/lib/aspose_cells_cloud/requests/get_structure_in_remote_spreadsheet_request.rb +134 -0
  32. data/lib/aspose_cells_cloud/requests/remove_characters_by_position_in_remote_spreadsheet_request.rb +196 -0
  33. data/lib/aspose_cells_cloud/requests/remove_characters_in_remote_spreadsheet_request.rb +188 -0
  34. data/lib/aspose_cells_cloud/requests/remove_duplicate_substrings_in_remote_spreadsheet_request.rb +184 -0
  35. data/lib/aspose_cells_cloud/requests/report_ai_analysis_request.rb +122 -0
  36. data/lib/aspose_cells_cloud/requests/save_spreadsheet_as_request.rb +16 -0
  37. data/lib/aspose_cells_cloud/requests/summarize_spreadsheet_request.rb +123 -0
  38. data/lib/aspose_cells_cloud/requests/trim_character_in_remote_spreadsheet_request.rb +212 -0
  39. data/lib/aspose_cells_cloud/requests/update_word_case_in_remote_spreadsheet_request.rb +168 -0
  40. data/lib/aspose_cells_cloud/version.rb +1 -1
  41. data/lib/aspose_cells_cloud.rb +12 -0
  42. data/spec/TestData/AggregateCellsByColor.xlsx +0 -0
  43. data/spec/TestData/Book1.xlsx +0 -0
  44. data/spec/TestData/BookCsvDuplicateData.csv +21 -0
  45. data/spec/TestData/BookDuplicateData.xlsx +0 -0
  46. data/spec/TestData/BookFormula.xlsx +0 -0
  47. data/spec/TestData/BookTableL2W.xlsx +0 -0
  48. data/spec/TestData/BookText.xlsx +0 -0
  49. data/spec/TestData/CompanySales.xlsx +0 -0
  50. data/spec/TestData/EmployeeSalesSummary-BlankWorksheet.xlsx +0 -0
  51. data/spec/TestData/EmployeeSalesSummary.xlsx +0 -0
  52. data/spec/TestData/EmployeeSalesSummary_Locked.xlsx +0 -0
  53. data/spec/TestData/Formula tutorial.xlsx +0 -0
  54. data/spec/TestData/Group.xlsx +0 -0
  55. data/spec/TestData/Home inventory.xlsx +0 -0
  56. data/spec/TestData/LockedEmployeeSalesSummary.xlsx +0 -0
  57. data/spec/TestData/OLEDoc.docx +0 -0
  58. data/spec/TestData/ReportData.xml +1 -0
  59. data/spec/TestData/Simple invoice.xlsx +0 -0
  60. data/spec/TestData/Template.xlsx +0 -0
  61. data/spec/TestData/TestCase.xlsx +0 -0
  62. data/spec/TestData/TestTables.xlsx +0 -0
  63. data/spec/TestData/WaterMark.png +0 -0
  64. data/spec/TestData/assemblytest.xlsx +0 -0
  65. data/spec/TestData/data.xml +1 -0
  66. data/spec/TestData/datasource.xlsx +0 -0
  67. data/spec/TestData/myDocument.xlsx +0 -0
  68. data/spec/TestData/needUnlock.xlsx +0 -0
  69. data/spec/TestData/needlock.xlsx +0 -0
  70. data/spec/TestData/roywang.pfx +0 -0
  71. data/spec/TestData/word.jpg +0 -0
  72. data/spec/calculate/calculate_spec.rb +29 -0
  73. data/spec/cells_cloud30/auto_filter_controller_spec.rb +211 -0
  74. data/spec/cells_cloud30/batch_controller_spec.rb +113 -0
  75. data/spec/cells_cloud30/cells_controller_spec.rb +627 -0
  76. data/spec/cells_cloud30/cells_status_controller_spec.rb +43 -0
  77. data/spec/cells_cloud30/chart_area_controller_spec.rb +58 -0
  78. data/spec/cells_cloud30/charts_controller_spec.rb +227 -0
  79. data/spec/cells_cloud30/conditional_formattings_controller_spec.rb +149 -0
  80. data/spec/cells_cloud30/conversion30_spec.rb +1112 -0
  81. data/spec/cells_cloud30/data_processing_controller_spec.rb +97 -0
  82. data/spec/cells_cloud30/hypelinks_controller_spec.rb +104 -0
  83. data/spec/cells_cloud30/light_cells_spec.rb +1059 -0
  84. data/spec/cells_cloud30/list_objects_controller_spec.rb +225 -0
  85. data/spec/cells_cloud30/ole_objects_controller_spec.rb +108 -0
  86. data/spec/cells_cloud30/page_breaks_controller_spec.rb +163 -0
  87. data/spec/cells_cloud30/page_setup_controller_spec.rb +149 -0
  88. data/spec/cells_cloud30/pictures_controller_spec.rb +106 -0
  89. data/spec/cells_cloud30/pivot_tables_controller_spec.rb +312 -0
  90. data/spec/cells_cloud30/properties_controller_spec.rb +89 -0
  91. data/spec/cells_cloud30/ranges_controller_spec.rb +227 -0
  92. data/spec/cells_cloud30/shapes_controller_spec.rb +139 -0
  93. data/spec/cells_cloud30/sparkline_groups_controller_spec.rb +104 -0
  94. data/spec/cells_cloud30/text_processing_controller_spec.rb +67 -0
  95. data/spec/cells_cloud30/workbook_controller_spec.rb +519 -0
  96. data/spec/cells_cloud30/worksheet_controller_spec.rb +609 -0
  97. data/spec/cells_cloud30/worksheet_validations_controller_spec.rb +104 -0
  98. data/spec/cells_cloud30/xml_controller_spec.rb +48 -0
  99. data/spec/data_processing/conversion_spec.rb +428 -0
  100. data/spec/data_processing/import_data_spec.rb +24 -0
  101. data/spec/data_processing/merger_spec.rb +28 -0
  102. data/spec/data_processing/protection_spec.rb +29 -0
  103. data/spec/data_processing/splitter_spec.rb +47 -0
  104. data/spec/data_processing/transform_spec.rb +43 -0
  105. data/spec/dynabic/file_controller_spec.rb +60 -0
  106. data/spec/dynabic/folder_controller_spec.rb +88 -0
  107. data/spec/dynabic/storage_controller_spec.rb +73 -0
  108. data/spec/management/management_spec.rb +111 -0
  109. data/spec/search2_replace/replacer_spec.rb +46 -0
  110. data/spec/search2_replace/searcher_spec.rb +131 -0
  111. data/spec/spec_helper.rb +134 -0
  112. data/spec/text_processing/add_text_spec.rb +45 -0
  113. data/spec/text_processing/convert_text_spec.rb +37 -0
  114. data/spec/text_processing/extract_text_spec.rb +37 -0
  115. data/spec/text_processing/remove_characters_spec.rb +53 -0
  116. data/spec/text_processing/split_text_spec.rb +21 -0
  117. data/spec/text_processing/trim_spreadsheet_spec.rb +29 -0
  118. data/spec/text_processing/update_word_case_spec.rb +37 -0
  119. metadata +92 -3
@@ -0,0 +1,1059 @@
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 'post_split_csv test' do
15
+ it "should work" do
16
+ book1_xlsx = 'Book1.xlsx'
17
+
18
+ out_format = "csv"
19
+
20
+
21
+ mapFiles = { }
22
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
23
+ request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
24
+ @instance.post_split(request);
25
+ end
26
+ end
27
+
28
+ describe 'post_split_html test' do
29
+ it "should work" do
30
+ book1_xlsx = 'Book1.xlsx'
31
+
32
+ out_format = "html"
33
+
34
+
35
+ mapFiles = { }
36
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
37
+ request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
38
+ @instance.post_split(request);
39
+ end
40
+ end
41
+
42
+ describe 'post_split_ods test' do
43
+ it "should work" do
44
+ book1_xlsx = 'Book1.xlsx'
45
+
46
+ out_format = "ods"
47
+
48
+
49
+ mapFiles = { }
50
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
51
+ request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
52
+ @instance.post_split(request);
53
+ end
54
+ end
55
+
56
+ describe 'post_split_pdf test' do
57
+ it "should work" do
58
+ book1_xlsx = 'Book1.xlsx'
59
+
60
+ out_format = "pdf"
61
+
62
+
63
+ mapFiles = { }
64
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
65
+ request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
66
+ @instance.post_split(request);
67
+ end
68
+ end
69
+
70
+ describe 'post_split_xps test' do
71
+ it "should work" do
72
+ book1_xlsx = 'Book1.xlsx'
73
+
74
+ out_format = "xps"
75
+
76
+
77
+ mapFiles = { }
78
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
79
+ request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
80
+ @instance.post_split(request);
81
+ end
82
+ end
83
+
84
+ describe 'post_split_md test' do
85
+ it "should work" do
86
+ book1_xlsx = 'Book1.xlsx'
87
+
88
+ out_format = "md"
89
+
90
+
91
+ mapFiles = { }
92
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
93
+ request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
94
+ @instance.post_split(request);
95
+ end
96
+ end
97
+
98
+ describe 'post_split_svg test' do
99
+ it "should work" do
100
+ book1_xlsx = 'Book1.xlsx'
101
+
102
+ out_format = "svg"
103
+
104
+
105
+ mapFiles = { }
106
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
107
+ request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
108
+ @instance.post_split(request);
109
+ end
110
+ end
111
+
112
+ describe 'post_split_docx test' do
113
+ it "should work" do
114
+ book1_xlsx = 'Book1.xlsx'
115
+
116
+ out_format = "docx"
117
+
118
+
119
+ mapFiles = { }
120
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
121
+ request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
122
+ @instance.post_split(request);
123
+ end
124
+ end
125
+
126
+ describe 'post_split_pptx test' do
127
+ it "should work" do
128
+ book1_xlsx = 'Book1.xlsx'
129
+
130
+ out_format = "pptx"
131
+
132
+
133
+ mapFiles = { }
134
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
135
+ request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
136
+ @instance.post_split(request);
137
+ end
138
+ end
139
+
140
+ describe 'post_split_json test' do
141
+ it "should work" do
142
+ book1_xlsx = 'Book1.xlsx'
143
+
144
+ out_format = "json"
145
+
146
+
147
+ mapFiles = { }
148
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
149
+ request = AsposeCellsCloud::PostSplitRequest.new(:File=>mapFiles,:outFormat=>out_format);
150
+ @instance.post_split(request);
151
+ end
152
+ end
153
+
154
+ describe 'post_assemble_csv test' do
155
+ it "should work" do
156
+ assembly_test_xlsx = 'assemblytest.xlsx'
157
+ data_source_xlsx = 'datasource.xlsx'
158
+
159
+ format = "csv"
160
+
161
+
162
+ mapFiles = { }
163
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
164
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
165
+ request = AsposeCellsCloud::PostAssembleRequest.new(:File=>mapFiles,:datasource=>'ds',:outFormat=>format);
166
+ @instance.post_assemble(request);
167
+ end
168
+ end
169
+
170
+ describe 'post_assemble_html test' do
171
+ it "should work" do
172
+ assembly_test_xlsx = 'assemblytest.xlsx'
173
+ data_source_xlsx = 'datasource.xlsx'
174
+
175
+ format = "html"
176
+
177
+
178
+ mapFiles = { }
179
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
180
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
181
+ request = AsposeCellsCloud::PostAssembleRequest.new(:File=>mapFiles,:datasource=>'ds',:outFormat=>format);
182
+ @instance.post_assemble(request);
183
+ end
184
+ end
185
+
186
+ describe 'post_assemble_ods test' do
187
+ it "should work" do
188
+ assembly_test_xlsx = 'assemblytest.xlsx'
189
+ data_source_xlsx = 'datasource.xlsx'
190
+
191
+ format = "ods"
192
+
193
+
194
+ mapFiles = { }
195
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
196
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
197
+ request = AsposeCellsCloud::PostAssembleRequest.new(:File=>mapFiles,:datasource=>'ds',:outFormat=>format);
198
+ @instance.post_assemble(request);
199
+ end
200
+ end
201
+
202
+ describe 'post_assemble_pdf test' do
203
+ it "should work" do
204
+ assembly_test_xlsx = 'assemblytest.xlsx'
205
+ data_source_xlsx = 'datasource.xlsx'
206
+
207
+ format = "pdf"
208
+
209
+
210
+ mapFiles = { }
211
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
212
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
213
+ request = AsposeCellsCloud::PostAssembleRequest.new(:File=>mapFiles,:datasource=>'ds',:outFormat=>format);
214
+ @instance.post_assemble(request);
215
+ end
216
+ end
217
+
218
+ describe 'post_assemble_md test' do
219
+ it "should work" do
220
+ assembly_test_xlsx = 'assemblytest.xlsx'
221
+ data_source_xlsx = 'datasource.xlsx'
222
+
223
+ format = "md"
224
+
225
+
226
+ mapFiles = { }
227
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
228
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
229
+ request = AsposeCellsCloud::PostAssembleRequest.new(:File=>mapFiles,:datasource=>'ds',:outFormat=>format);
230
+ @instance.post_assemble(request);
231
+ end
232
+ end
233
+
234
+ describe 'post_assemble_svg test' do
235
+ it "should work" do
236
+ assembly_test_xlsx = 'assemblytest.xlsx'
237
+ data_source_xlsx = 'datasource.xlsx'
238
+
239
+ format = "svg"
240
+
241
+
242
+ mapFiles = { }
243
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
244
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
245
+ request = AsposeCellsCloud::PostAssembleRequest.new(:File=>mapFiles,:datasource=>'ds',:outFormat=>format);
246
+ @instance.post_assemble(request);
247
+ end
248
+ end
249
+
250
+ describe 'post_assemble_docx test' do
251
+ it "should work" do
252
+ assembly_test_xlsx = 'assemblytest.xlsx'
253
+ data_source_xlsx = 'datasource.xlsx'
254
+
255
+ format = "docx"
256
+
257
+
258
+ mapFiles = { }
259
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
260
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
261
+ request = AsposeCellsCloud::PostAssembleRequest.new(:File=>mapFiles,:datasource=>'ds',:outFormat=>format);
262
+ @instance.post_assemble(request);
263
+ end
264
+ end
265
+
266
+ describe 'post_assemble_pptx test' do
267
+ it "should work" do
268
+ assembly_test_xlsx = 'assemblytest.xlsx'
269
+ data_source_xlsx = 'datasource.xlsx'
270
+
271
+ format = "pptx"
272
+
273
+
274
+ mapFiles = { }
275
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
276
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
277
+ request = AsposeCellsCloud::PostAssembleRequest.new(:File=>mapFiles,:datasource=>'ds',:outFormat=>format);
278
+ @instance.post_assemble(request);
279
+ end
280
+ end
281
+
282
+ describe 'post_assemble_json test' do
283
+ it "should work" do
284
+ assembly_test_xlsx = 'assemblytest.xlsx'
285
+ data_source_xlsx = 'datasource.xlsx'
286
+
287
+ format = "json"
288
+
289
+
290
+ mapFiles = { }
291
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
292
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
293
+ request = AsposeCellsCloud::PostAssembleRequest.new(:File=>mapFiles,:datasource=>'ds',:outFormat=>format);
294
+ @instance.post_assemble(request);
295
+ end
296
+ end
297
+
298
+ describe 'post_export_csv_workbook test' do
299
+ it "should work" do
300
+ book1_xlsx = 'Book1.xlsx'
301
+
302
+ format = "csv"
303
+ object_type = "workbook"
304
+
305
+
306
+ mapFiles = { }
307
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
308
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
309
+ @instance.post_export(request);
310
+ end
311
+ end
312
+
313
+ describe 'post_export_html_workbook test' do
314
+ it "should work" do
315
+ book1_xlsx = 'Book1.xlsx'
316
+
317
+ format = "html"
318
+ object_type = "workbook"
319
+
320
+
321
+ mapFiles = { }
322
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
323
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
324
+ @instance.post_export(request);
325
+ end
326
+ end
327
+
328
+ describe 'post_export_pdf_workbook test' do
329
+ it "should work" do
330
+ book1_xlsx = 'Book1.xlsx'
331
+
332
+ format = "pdf"
333
+ object_type = "workbook"
334
+
335
+
336
+ mapFiles = { }
337
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
338
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
339
+ @instance.post_export(request);
340
+ end
341
+ end
342
+
343
+ describe 'post_export_pptx_workbook test' do
344
+ it "should work" do
345
+ book1_xlsx = 'Book1.xlsx'
346
+
347
+ format = "pptx"
348
+ object_type = "workbook"
349
+
350
+
351
+ mapFiles = { }
352
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
353
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
354
+ @instance.post_export(request);
355
+ end
356
+ end
357
+
358
+ describe 'post_export_json_workbook test' do
359
+ it "should work" do
360
+ book1_xlsx = 'Book1.xlsx'
361
+
362
+ format = "json"
363
+ object_type = "workbook"
364
+
365
+
366
+ mapFiles = { }
367
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
368
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
369
+ @instance.post_export(request);
370
+ end
371
+ end
372
+
373
+ describe 'post_export_html_worksheet test' do
374
+ it "should work" do
375
+ book1_xlsx = 'Book1.xlsx'
376
+
377
+ format = "html"
378
+ object_type = "worksheet"
379
+
380
+
381
+ mapFiles = { }
382
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
383
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
384
+ @instance.post_export(request);
385
+ end
386
+ end
387
+
388
+ describe 'post_export_docx_worksheet test' do
389
+ it "should work" do
390
+ book1_xlsx = 'Book1.xlsx'
391
+
392
+ format = "docx"
393
+ object_type = "worksheet"
394
+
395
+
396
+ mapFiles = { }
397
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
398
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
399
+ @instance.post_export(request);
400
+ end
401
+ end
402
+
403
+ describe 'post_export_json_worksheet test' do
404
+ it "should work" do
405
+ book1_xlsx = 'Book1.xlsx'
406
+
407
+ format = "json"
408
+ object_type = "worksheet"
409
+
410
+
411
+ mapFiles = { }
412
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
413
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
414
+ @instance.post_export(request);
415
+ end
416
+ end
417
+
418
+ describe 'post_export_pdf_chart test' do
419
+ it "should work" do
420
+ book1_xlsx = 'Book1.xlsx'
421
+
422
+ format = "pdf"
423
+ object_type = "chart"
424
+
425
+
426
+ mapFiles = { }
427
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
428
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
429
+ @instance.post_export(request);
430
+ end
431
+ end
432
+
433
+ describe 'post_export_png_chart test' do
434
+ it "should work" do
435
+ book1_xlsx = 'Book1.xlsx'
436
+
437
+ format = "png"
438
+ object_type = "chart"
439
+
440
+
441
+ mapFiles = { }
442
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
443
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
444
+ @instance.post_export(request);
445
+ end
446
+ end
447
+
448
+ describe 'post_export_png_picture test' do
449
+ it "should work" do
450
+ book1_xlsx = 'Book1.xlsx'
451
+
452
+ format = "png"
453
+ object_type = "picture"
454
+
455
+
456
+ mapFiles = { }
457
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
458
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
459
+ @instance.post_export(request);
460
+ end
461
+ end
462
+
463
+ describe 'post_export_csv_listobject test' do
464
+ it "should work" do
465
+ book1_xlsx = 'Book1.xlsx'
466
+
467
+ format = "csv"
468
+ object_type = "listobject"
469
+
470
+
471
+ mapFiles = { }
472
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
473
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
474
+ @instance.post_export(request);
475
+ end
476
+ end
477
+
478
+ describe 'post_export_ods_listobject test' do
479
+ it "should work" do
480
+ book1_xlsx = 'Book1.xlsx'
481
+
482
+ format = "ods"
483
+ object_type = "listobject"
484
+
485
+
486
+ mapFiles = { }
487
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
488
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
489
+ @instance.post_export(request);
490
+ end
491
+ end
492
+
493
+ describe 'post_export_pdf_listobject test' do
494
+ it "should work" do
495
+ book1_xlsx = 'Book1.xlsx'
496
+
497
+ format = "pdf"
498
+ object_type = "listobject"
499
+
500
+
501
+ mapFiles = { }
502
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
503
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
504
+ @instance.post_export(request);
505
+ end
506
+ end
507
+
508
+ describe 'post_export_md_listobject test' do
509
+ it "should work" do
510
+ book1_xlsx = 'Book1.xlsx'
511
+
512
+ format = "md"
513
+ object_type = "listobject"
514
+
515
+
516
+ mapFiles = { }
517
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
518
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
519
+ @instance.post_export(request);
520
+ end
521
+ end
522
+
523
+ describe 'post_export_docx_listobject test' do
524
+ it "should work" do
525
+ book1_xlsx = 'Book1.xlsx'
526
+
527
+ format = "docx"
528
+ object_type = "listobject"
529
+
530
+
531
+ mapFiles = { }
532
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
533
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
534
+ @instance.post_export(request);
535
+ end
536
+ end
537
+
538
+ describe 'post_export_pptx_listobject test' do
539
+ it "should work" do
540
+ book1_xlsx = 'Book1.xlsx'
541
+
542
+ format = "pptx"
543
+ object_type = "listobject"
544
+
545
+
546
+ mapFiles = { }
547
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
548
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
549
+ @instance.post_export(request);
550
+ end
551
+ end
552
+
553
+ describe 'post_export_json_listobject test' do
554
+ it "should work" do
555
+ book1_xlsx = 'Book1.xlsx'
556
+
557
+ format = "json"
558
+ object_type = "listobject"
559
+
560
+
561
+ mapFiles = { }
562
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
563
+ request = AsposeCellsCloud::PostExportRequest.new(:File=>mapFiles,:objectType=>object_type,:format=>format);
564
+ @instance.post_export(request);
565
+ end
566
+ end
567
+
568
+ describe 'post_compress_50 test' do
569
+ it "should work" do
570
+ data_source_xlsx = 'datasource.xlsx'
571
+
572
+ compress_level = 50
573
+
574
+
575
+ mapFiles = { }
576
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
577
+ request = AsposeCellsCloud::PostCompressRequest.new(:File=>mapFiles,:CompressLevel=>compress_level);
578
+ @instance.post_compress(request);
579
+ end
580
+ end
581
+
582
+ describe 'post_compress_90 test' do
583
+ it "should work" do
584
+ data_source_xlsx = 'datasource.xlsx'
585
+
586
+ compress_level = 90
587
+
588
+
589
+ mapFiles = { }
590
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
591
+ request = AsposeCellsCloud::PostCompressRequest.new(:File=>mapFiles,:CompressLevel=>compress_level);
592
+ @instance.post_compress(request);
593
+ end
594
+ end
595
+
596
+ describe 'post_merge_html_true test' do
597
+ it "should work" do
598
+ assembly_test_xlsx = 'assemblytest.xlsx'
599
+ data_source_xlsx = 'datasource.xlsx'
600
+
601
+ format = "html"
602
+ merge_to_one_sheet = true
603
+
604
+
605
+ mapFiles = { }
606
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
607
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
608
+ request = AsposeCellsCloud::PostMergeRequest.new(:File=>mapFiles,:outFormat=>format,:mergeToOneSheet=>merge_to_one_sheet);
609
+ @instance.post_merge(request);
610
+ end
611
+ end
612
+
613
+ describe 'post_merge_pdf_true test' do
614
+ it "should work" do
615
+ assembly_test_xlsx = 'assemblytest.xlsx'
616
+ data_source_xlsx = 'datasource.xlsx'
617
+
618
+ format = "pdf"
619
+ merge_to_one_sheet = true
620
+
621
+
622
+ mapFiles = { }
623
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
624
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
625
+ request = AsposeCellsCloud::PostMergeRequest.new(:File=>mapFiles,:outFormat=>format,:mergeToOneSheet=>merge_to_one_sheet);
626
+ @instance.post_merge(request);
627
+ end
628
+ end
629
+
630
+ describe 'post_merge_xlsx_true test' do
631
+ it "should work" do
632
+ assembly_test_xlsx = 'assemblytest.xlsx'
633
+ data_source_xlsx = 'datasource.xlsx'
634
+
635
+ format = "xlsx"
636
+ merge_to_one_sheet = true
637
+
638
+
639
+ mapFiles = { }
640
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
641
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
642
+ request = AsposeCellsCloud::PostMergeRequest.new(:File=>mapFiles,:outFormat=>format,:mergeToOneSheet=>merge_to_one_sheet);
643
+ @instance.post_merge(request);
644
+ end
645
+ end
646
+
647
+ describe 'post_merge_json_false test' do
648
+ it "should work" do
649
+ assembly_test_xlsx = 'assemblytest.xlsx'
650
+ data_source_xlsx = 'datasource.xlsx'
651
+
652
+ format = "json"
653
+ merge_to_one_sheet = false
654
+
655
+
656
+ mapFiles = { }
657
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
658
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
659
+ request = AsposeCellsCloud::PostMergeRequest.new(:File=>mapFiles,:outFormat=>format,:mergeToOneSheet=>merge_to_one_sheet);
660
+ @instance.post_merge(request);
661
+ end
662
+ end
663
+
664
+ describe 'post_unlock test' do
665
+ it "should work" do
666
+ need_unlock_xlsx = 'needUnlock.xlsx'
667
+
668
+
669
+ mapFiles = { }
670
+ mapFiles[need_unlock_xlsx]= ::File.open(File.expand_path("TestData/"+need_unlock_xlsx),"r")
671
+ request = AsposeCellsCloud::PostUnlockRequest.new(:File=>mapFiles,:password=>'123456');
672
+ @instance.post_unlock(request);
673
+ end
674
+ end
675
+
676
+ describe 'post_lock test' do
677
+ it "should work" do
678
+ needlock_xlsx = 'needlock.xlsx'
679
+
680
+
681
+ mapFiles = { }
682
+ mapFiles[needlock_xlsx]= ::File.open(File.expand_path("TestData/"+needlock_xlsx),"r")
683
+ request = AsposeCellsCloud::PostLockRequest.new(:File=>mapFiles,:password=>'123456');
684
+ @instance.post_lock(request);
685
+ end
686
+ end
687
+
688
+ describe 'post_protect test' do
689
+ it "should work" do
690
+ assembly_test_xlsx = 'assemblytest.xlsx'
691
+
692
+
693
+ mapFiles = { }
694
+ protectWorkbookRequest = AsposeCellsCloud::ProtectWorkbookRequest.new(:AwaysOpenReadOnly=>true ,:EncryptWithPassword=>'123456' );
695
+ mapFiles[assembly_test_xlsx]= ::File.open(File.expand_path("TestData/"+assembly_test_xlsx),"r")
696
+ request = AsposeCellsCloud::PostProtectRequest.new(:File=>mapFiles,:protectWorkbookRequest=>protectWorkbookRequest,:password=>'123456');
697
+ @instance.post_protect(request);
698
+ end
699
+ end
700
+
701
+ describe 'post_protect__protect_workbook_request test' do
702
+ it "should work" do
703
+ data_source_xlsx = 'datasource.xlsx'
704
+
705
+
706
+ mapFiles = { }
707
+ protectWorkbookRequest = AsposeCellsCloud::ProtectWorkbookRequest.new(:AwaysOpenReadOnly=>true ,:EncryptWithPassword=>'123456' );
708
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
709
+ request = AsposeCellsCloud::PostProtectRequest.new(:File=>mapFiles,:protectWorkbookRequest=>protectWorkbookRequest);
710
+ @instance.post_protect(request);
711
+ end
712
+ end
713
+
714
+ describe 'post_search test' do
715
+ it "should work" do
716
+ data_source_xlsx = 'datasource.xlsx'
717
+
718
+
719
+ mapFiles = { }
720
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
721
+ request = AsposeCellsCloud::PostSearchRequest.new(:File=>mapFiles,:text=>'12');
722
+ @instance.post_search(request);
723
+ end
724
+ end
725
+
726
+ describe 'post_replace test' do
727
+ it "should work" do
728
+ data_source_xlsx = 'datasource.xlsx'
729
+
730
+
731
+ mapFiles = { }
732
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
733
+ request = AsposeCellsCloud::PostReplaceRequest.new(:File=>mapFiles,:text=>'12',:newtext=>'newtext');
734
+ @instance.post_replace(request);
735
+ end
736
+ end
737
+
738
+ describe 'post_replace_only_sheetname test' do
739
+ it "should work" do
740
+ data_source_xlsx = 'datasource.xlsx'
741
+
742
+
743
+ mapFiles = { }
744
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
745
+ request = AsposeCellsCloud::PostReplaceRequest.new(:File=>mapFiles,:text=>'12',:newtext=>'newtext',:sheetname=>'Sheet1');
746
+ @instance.post_replace(request);
747
+ end
748
+ end
749
+
750
+ describe 'post_watermark test' do
751
+ it "should work" do
752
+ data_source_xlsx = 'datasource.xlsx'
753
+
754
+
755
+ mapFiles = { }
756
+ mapFiles[data_source_xlsx]= ::File.open(File.expand_path("TestData/"+data_source_xlsx),"r")
757
+ request = AsposeCellsCloud::PostWatermarkRequest.new(:File=>mapFiles,:text=>'aspose.cells cloud sdk',:color=>'#773322');
758
+ @instance.post_watermark(request);
759
+ end
760
+ end
761
+
762
+ describe 'post_clear_objects_chart test' do
763
+ it "should work" do
764
+ book1_xlsx = 'Book1.xlsx'
765
+
766
+ objecttype = "chart"
767
+
768
+
769
+ mapFiles = { }
770
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
771
+ request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
772
+ @instance.post_clear_objects(request);
773
+ end
774
+ end
775
+
776
+ describe 'post_clear_objects_comment test' do
777
+ it "should work" do
778
+ book1_xlsx = 'Book1.xlsx'
779
+
780
+ objecttype = "comment"
781
+
782
+
783
+ mapFiles = { }
784
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
785
+ request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
786
+ @instance.post_clear_objects(request);
787
+ end
788
+ end
789
+
790
+ describe 'post_clear_objects_picture test' do
791
+ it "should work" do
792
+ book1_xlsx = 'Book1.xlsx'
793
+
794
+ objecttype = "picture"
795
+
796
+
797
+ mapFiles = { }
798
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
799
+ request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
800
+ @instance.post_clear_objects(request);
801
+ end
802
+ end
803
+
804
+ describe 'post_clear_objects_shape test' do
805
+ it "should work" do
806
+ book1_xlsx = 'Book1.xlsx'
807
+
808
+ objecttype = "shape"
809
+
810
+
811
+ mapFiles = { }
812
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
813
+ request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
814
+ @instance.post_clear_objects(request);
815
+ end
816
+ end
817
+
818
+ describe 'post_clear_objects_listobject test' do
819
+ it "should work" do
820
+ book1_xlsx = 'Book1.xlsx'
821
+
822
+ objecttype = "listobject"
823
+
824
+
825
+ mapFiles = { }
826
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
827
+ request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
828
+ @instance.post_clear_objects(request);
829
+ end
830
+ end
831
+
832
+ describe 'post_clear_objects_hyperlink test' do
833
+ it "should work" do
834
+ book1_xlsx = 'Book1.xlsx'
835
+
836
+ objecttype = "hyperlink"
837
+
838
+
839
+ mapFiles = { }
840
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
841
+ request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
842
+ @instance.post_clear_objects(request);
843
+ end
844
+ end
845
+
846
+ describe 'post_clear_objects_oleobject test' do
847
+ it "should work" do
848
+ book1_xlsx = 'Book1.xlsx'
849
+
850
+ objecttype = "oleobject"
851
+
852
+
853
+ mapFiles = { }
854
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
855
+ request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
856
+ @instance.post_clear_objects(request);
857
+ end
858
+ end
859
+
860
+ describe 'post_clear_objects_pivottable test' do
861
+ it "should work" do
862
+ book1_xlsx = 'Book1.xlsx'
863
+
864
+ objecttype = "pivottable"
865
+
866
+
867
+ mapFiles = { }
868
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
869
+ request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
870
+ @instance.post_clear_objects(request);
871
+ end
872
+ end
873
+
874
+ describe 'post_clear_objects_validation test' do
875
+ it "should work" do
876
+ book1_xlsx = 'Book1.xlsx'
877
+
878
+ objecttype = "validation"
879
+
880
+
881
+ mapFiles = { }
882
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
883
+ request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
884
+ @instance.post_clear_objects(request);
885
+ end
886
+ end
887
+
888
+ describe 'post_clear_objects__background test' do
889
+ it "should work" do
890
+ book1_xlsx = 'Book1.xlsx'
891
+
892
+ objecttype = "Background"
893
+
894
+
895
+ mapFiles = { }
896
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
897
+ request = AsposeCellsCloud::PostClearObjectsRequest.new(:File=>mapFiles,:objecttype=>objecttype);
898
+ @instance.post_clear_objects(request);
899
+ end
900
+ end
901
+
902
+ describe 'post_repair_xlsx test' do
903
+ it "should work" do
904
+ book1_xlsx = 'Book1.xlsx'
905
+
906
+ format = "xlsx"
907
+
908
+
909
+ mapFiles = { }
910
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
911
+ request = AsposeCellsCloud::PostRepairRequest.new(:File=>mapFiles,:outFormat=>format);
912
+ @instance.post_repair(request);
913
+ end
914
+ end
915
+
916
+ describe 'post_repair_pdf test' do
917
+ it "should work" do
918
+ book1_xlsx = 'Book1.xlsx'
919
+
920
+ format = "pdf"
921
+
922
+
923
+ mapFiles = { }
924
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
925
+ request = AsposeCellsCloud::PostRepairRequest.new(:File=>mapFiles,:outFormat=>format);
926
+ @instance.post_repair(request);
927
+ end
928
+ end
929
+
930
+ describe 'post_reverse_rows_pdf test' do
931
+ it "should work" do
932
+ book1_xlsx = 'Book1.xlsx'
933
+
934
+ rotate_type = "rows"
935
+ format = "pdf"
936
+
937
+
938
+ mapFiles = { }
939
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
940
+ request = AsposeCellsCloud::PostReverseRequest.new(:File=>mapFiles,:rotateType=>rotate_type,:outFormat=>format);
941
+ @instance.post_reverse(request);
942
+ end
943
+ end
944
+
945
+ describe 'post_reverse_cols_pdf test' do
946
+ it "should work" do
947
+ book1_xlsx = 'Book1.xlsx'
948
+
949
+ rotate_type = "cols"
950
+ format = "pdf"
951
+
952
+
953
+ mapFiles = { }
954
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
955
+ request = AsposeCellsCloud::PostReverseRequest.new(:File=>mapFiles,:rotateType=>rotate_type,:outFormat=>format);
956
+ @instance.post_reverse(request);
957
+ end
958
+ end
959
+
960
+ describe 'post_reverse_both_pdf test' do
961
+ it "should work" do
962
+ book1_xlsx = 'Book1.xlsx'
963
+
964
+ rotate_type = "both"
965
+ format = "pdf"
966
+
967
+
968
+ mapFiles = { }
969
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
970
+ request = AsposeCellsCloud::PostReverseRequest.new(:File=>mapFiles,:rotateType=>rotate_type,:outFormat=>format);
971
+ @instance.post_reverse(request);
972
+ end
973
+ end
974
+
975
+ describe 'post_reverse_rows_csv test' do
976
+ it "should work" do
977
+ book1_xlsx = 'Book1.xlsx'
978
+
979
+ rotate_type = "rows"
980
+ format = "csv"
981
+
982
+
983
+ mapFiles = { }
984
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
985
+ request = AsposeCellsCloud::PostReverseRequest.new(:File=>mapFiles,:rotateType=>rotate_type,:outFormat=>format);
986
+ @instance.post_reverse(request);
987
+ end
988
+ end
989
+
990
+ describe 'post_reverse_cols_png test' do
991
+ it "should work" do
992
+ book1_xlsx = 'Book1.xlsx'
993
+
994
+ rotate_type = "cols"
995
+ format = "png"
996
+
997
+
998
+ mapFiles = { }
999
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
1000
+ request = AsposeCellsCloud::PostReverseRequest.new(:File=>mapFiles,:rotateType=>rotate_type,:outFormat=>format);
1001
+ @instance.post_reverse(request);
1002
+ end
1003
+ end
1004
+
1005
+ describe 'post_reverse_both_xlsx test' do
1006
+ it "should work" do
1007
+ book1_xlsx = 'Book1.xlsx'
1008
+
1009
+ rotate_type = "both"
1010
+ format = "xlsx"
1011
+
1012
+
1013
+ mapFiles = { }
1014
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
1015
+ request = AsposeCellsCloud::PostReverseRequest.new(:File=>mapFiles,:rotateType=>rotate_type,:outFormat=>format);
1016
+ @instance.post_reverse(request);
1017
+ end
1018
+ end
1019
+
1020
+ describe 'get_metadata test' do
1021
+ it "should work" do
1022
+ book1_xlsx = 'Book1.xlsx'
1023
+
1024
+
1025
+ mapFiles = { }
1026
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
1027
+ request = AsposeCellsCloud::GetMetadataRequest.new(:File=>mapFiles,:type=>'all');
1028
+ @instance.get_metadata(request);
1029
+ end
1030
+ end
1031
+
1032
+ describe 'delete_metadata test' do
1033
+ it "should work" do
1034
+ book1_xlsx = 'Book1.xlsx'
1035
+
1036
+
1037
+ mapFiles = { }
1038
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
1039
+ request = AsposeCellsCloud::DeleteMetadataRequest.new(:File=>mapFiles,:type=>'all');
1040
+ @instance.delete_metadata(request);
1041
+ end
1042
+ end
1043
+
1044
+ describe 'post_metadata test' do
1045
+ it "should work" do
1046
+ book1_xlsx = 'Book1.xlsx'
1047
+
1048
+
1049
+ mapFiles = { }
1050
+ cellsDocumentscellsDocument0 = AsposeCellsCloud::CellsDocumentProperty.new(:Name=>'Author' ,:Value=>'roy.wang' );
1051
+ cellsDocuments = [
1052
+ cellsDocumentscellsDocument0
1053
+ ];
1054
+ mapFiles[book1_xlsx]= ::File.open(File.expand_path("TestData/"+book1_xlsx),"r")
1055
+ request = AsposeCellsCloud::PostMetadataRequest.new(:File=>mapFiles,:cellsDocuments=>cellsDocuments);
1056
+ @instance.post_metadata(request);
1057
+ end
1058
+ end
1059
+ end