aspose_cells_cloud 26.8 → 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 (91) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -39
  3. data/lib/aspose_cells_cloud/requests/smart_marker_template_request.rb +30 -0
  4. data/lib/aspose_cells_cloud/requests/translate_spreadsheet_request.rb +24 -0
  5. data/lib/aspose_cells_cloud/requests/translate_text_file_request.rb +24 -0
  6. data/lib/aspose_cells_cloud/version.rb +1 -1
  7. data/spec/client_spec.rb +114 -0
  8. data/spec/configuration_spec.rb +61 -0
  9. data/spec/form_file_spec.rb +47 -0
  10. data/spec/model_spec.rb +73 -0
  11. data/spec/request_spec.rb +87 -0
  12. data/spec/rich_response_spec.rb +46 -0
  13. data/spec/sdk_error_spec.rb +27 -0
  14. data/spec/spec_helper.rb +21 -134
  15. metadata +9 -78
  16. data/spec/TestData/AggregateCellsByColor.xlsx +0 -0
  17. data/spec/TestData/Book1.xlsx +0 -0
  18. data/spec/TestData/BookCsvDuplicateData.csv +0 -21
  19. data/spec/TestData/BookDuplicateData.xlsx +0 -0
  20. data/spec/TestData/BookFormula.xlsx +0 -0
  21. data/spec/TestData/BookTableL2W.xlsx +0 -0
  22. data/spec/TestData/BookText.xlsx +0 -0
  23. data/spec/TestData/CompanySales.xlsx +0 -0
  24. data/spec/TestData/EmployeeSalesSummary-BlankWorksheet.xlsx +0 -0
  25. data/spec/TestData/EmployeeSalesSummary.xlsx +0 -0
  26. data/spec/TestData/EmployeeSalesSummary_Locked.xlsx +0 -0
  27. data/spec/TestData/Formula tutorial.xlsx +0 -0
  28. data/spec/TestData/Group.xlsx +0 -0
  29. data/spec/TestData/Home inventory.xlsx +0 -0
  30. data/spec/TestData/LockedEmployeeSalesSummary.xlsx +0 -0
  31. data/spec/TestData/OLEDoc.docx +0 -0
  32. data/spec/TestData/ReportData.xml +0 -1
  33. data/spec/TestData/Simple invoice.xlsx +0 -0
  34. data/spec/TestData/Template.xlsx +0 -0
  35. data/spec/TestData/TestCase.xlsx +0 -0
  36. data/spec/TestData/TestTables.xlsx +0 -0
  37. data/spec/TestData/WaterMark.png +0 -0
  38. data/spec/TestData/assemblytest.xlsx +0 -0
  39. data/spec/TestData/data.xml +0 -1
  40. data/spec/TestData/datasource.xlsx +0 -0
  41. data/spec/TestData/myDocument.xlsx +0 -0
  42. data/spec/TestData/needUnlock.xlsx +0 -0
  43. data/spec/TestData/needlock.xlsx +0 -0
  44. data/spec/TestData/roywang.pfx +0 -0
  45. data/spec/TestData/word.jpg +0 -0
  46. data/spec/calculate/calculate_spec.rb +0 -29
  47. data/spec/cells_cloud30/auto_filter_controller_spec.rb +0 -211
  48. data/spec/cells_cloud30/batch_controller_spec.rb +0 -113
  49. data/spec/cells_cloud30/cells_controller_spec.rb +0 -627
  50. data/spec/cells_cloud30/cells_status_controller_spec.rb +0 -43
  51. data/spec/cells_cloud30/chart_area_controller_spec.rb +0 -58
  52. data/spec/cells_cloud30/charts_controller_spec.rb +0 -227
  53. data/spec/cells_cloud30/conditional_formattings_controller_spec.rb +0 -149
  54. data/spec/cells_cloud30/conversion30_spec.rb +0 -1112
  55. data/spec/cells_cloud30/data_processing_controller_spec.rb +0 -97
  56. data/spec/cells_cloud30/hypelinks_controller_spec.rb +0 -104
  57. data/spec/cells_cloud30/light_cells_spec.rb +0 -1059
  58. data/spec/cells_cloud30/list_objects_controller_spec.rb +0 -225
  59. data/spec/cells_cloud30/ole_objects_controller_spec.rb +0 -108
  60. data/spec/cells_cloud30/page_breaks_controller_spec.rb +0 -163
  61. data/spec/cells_cloud30/page_setup_controller_spec.rb +0 -149
  62. data/spec/cells_cloud30/pictures_controller_spec.rb +0 -106
  63. data/spec/cells_cloud30/pivot_tables_controller_spec.rb +0 -312
  64. data/spec/cells_cloud30/properties_controller_spec.rb +0 -89
  65. data/spec/cells_cloud30/ranges_controller_spec.rb +0 -227
  66. data/spec/cells_cloud30/shapes_controller_spec.rb +0 -139
  67. data/spec/cells_cloud30/sparkline_groups_controller_spec.rb +0 -104
  68. data/spec/cells_cloud30/text_processing_controller_spec.rb +0 -67
  69. data/spec/cells_cloud30/workbook_controller_spec.rb +0 -519
  70. data/spec/cells_cloud30/worksheet_controller_spec.rb +0 -609
  71. data/spec/cells_cloud30/worksheet_validations_controller_spec.rb +0 -104
  72. data/spec/cells_cloud30/xml_controller_spec.rb +0 -48
  73. data/spec/data_processing/conversion_spec.rb +0 -428
  74. data/spec/data_processing/import_data_spec.rb +0 -24
  75. data/spec/data_processing/merger_spec.rb +0 -28
  76. data/spec/data_processing/protection_spec.rb +0 -29
  77. data/spec/data_processing/splitter_spec.rb +0 -47
  78. data/spec/data_processing/transform_spec.rb +0 -43
  79. data/spec/dynabic/file_controller_spec.rb +0 -60
  80. data/spec/dynabic/folder_controller_spec.rb +0 -88
  81. data/spec/dynabic/storage_controller_spec.rb +0 -73
  82. data/spec/management/management_spec.rb +0 -111
  83. data/spec/search2_replace/replacer_spec.rb +0 -46
  84. data/spec/search2_replace/searcher_spec.rb +0 -131
  85. data/spec/text_processing/add_text_spec.rb +0 -45
  86. data/spec/text_processing/convert_text_spec.rb +0 -37
  87. data/spec/text_processing/extract_text_spec.rb +0 -37
  88. data/spec/text_processing/remove_characters_spec.rb +0 -53
  89. data/spec/text_processing/split_text_spec.rb +0 -21
  90. data/spec/text_processing/trim_spreadsheet_spec.rb +0 -29
  91. data/spec/text_processing/update_word_case_spec.rb +0 -37
@@ -1,227 +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 'post_worksheet_cells_ranges_copy 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
- rangeOperateSource = AsposeCellsCloud::Range.new(:ColumnCount=>3 ,:FirstColumn=>8 ,:FirstRow=>3 ,:RowCount=>2 );
25
- rangeOperateTarget = AsposeCellsCloud::Range.new(:ColumnCount=>3 ,:FirstColumn=>8 ,:FirstRow=>13 ,:RowCount=>2 );
26
- rangeOperate = AsposeCellsCloud::RangeCopyRequest.new(:Operate=>'copydata' ,:Source=>rangeOperateSource ,:Target=>rangeOperateTarget );
27
- request = AsposeCellsCloud::PostWorksheetCellsRangesCopyRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:rangeOperate=>rangeOperate,:folder=>remote_folder,:storageName=>'');
28
- @instance.post_worksheet_cells_ranges_copy(request);
29
- end
30
- end
31
-
32
- describe 'post_worksheet_cells_range_merge test' do
33
- it "should work" do
34
- remote_folder = 'TestData/In'
35
-
36
- local_name = 'Book1.xlsx'
37
- remote_name = 'Book1.xlsx'
38
-
39
-
40
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
41
-
42
- range = AsposeCellsCloud::Range.new(:ColumnCount=>1 ,:ColumnWidth=>10.0 ,:FirstRow=>1 ,:RowCount=>10 );
43
- request = AsposeCellsCloud::PostWorksheetCellsRangeMergeRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:range=>range,:folder=>remote_folder,:storageName=>'');
44
- @instance.post_worksheet_cells_range_merge(request);
45
- end
46
- end
47
-
48
- describe 'post_worksheet_cells_range_un_merge test' do
49
- it "should work" do
50
- remote_folder = 'TestData/In'
51
-
52
- local_name = 'Book1.xlsx'
53
- remote_name = 'Book1.xlsx'
54
-
55
-
56
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
57
-
58
- range = AsposeCellsCloud::Range.new(:ColumnCount=>1 ,:ColumnWidth=>10.0 ,:FirstRow=>1 ,:RowCount=>10 );
59
- request = AsposeCellsCloud::PostWorksheetCellsRangeUnMergeRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:range=>range,:folder=>remote_folder,:storageName=>'');
60
- @instance.post_worksheet_cells_range_un_merge(request);
61
- end
62
- end
63
-
64
- describe 'post_worksheet_cells_range_style test' do
65
- it "should work" do
66
- remote_folder = 'TestData/In'
67
-
68
- local_name = 'Book1.xlsx'
69
- remote_name = 'Book1.xlsx'
70
-
71
-
72
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
73
-
74
- rangeOperateStyleFont = AsposeCellsCloud::Font.new(:Size=>16 );
75
- rangeOperateStyle = AsposeCellsCloud::Style.new(:Font=>rangeOperateStyleFont );
76
- rangeOperateRange = AsposeCellsCloud::Range.new(:ColumnCount=>1 ,:ColumnWidth=>10.0 ,:FirstRow=>1 ,:RowCount=>10 );
77
- rangeOperate = AsposeCellsCloud::RangeSetStyleRequest.new(:Style=>rangeOperateStyle ,:Range=>rangeOperateRange );
78
- request = AsposeCellsCloud::PostWorksheetCellsRangeStyleRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:rangeOperate=>rangeOperate,:folder=>remote_folder,:storageName=>'');
79
- @instance.post_worksheet_cells_range_style(request);
80
- end
81
- end
82
-
83
- describe 'get_worksheet_cells_range_value test' do
84
- it "should work" do
85
- remote_folder = 'TestData/In'
86
-
87
- local_name = 'Book1.xlsx'
88
- remote_name = 'Book1.xlsx'
89
-
90
-
91
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
92
-
93
- request = AsposeCellsCloud::GetWorksheetCellsRangeValueRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:namerange=>'Name_2',:firstRow=>0,:firstColumn=>0,:rowCount=>3,:columnCount=>2,:folder=>remote_folder,:storageName=>'');
94
- @instance.get_worksheet_cells_range_value(request);
95
- end
96
- end
97
-
98
- describe 'post_worksheet_cells_range_value test' do
99
- it "should work" do
100
- remote_folder = 'TestData/In'
101
-
102
- local_name = 'Book1.xlsx'
103
- remote_name = 'Book1.xlsx'
104
-
105
-
106
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
107
-
108
- range = AsposeCellsCloud::Range.new(:ColumnCount=>1 ,:ColumnWidth=>10.0 ,:FirstRow=>1 ,:RowCount=>10 );
109
- request = AsposeCellsCloud::PostWorksheetCellsRangeValueRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:range=>range,:Value=>'100',:isConverted=>true,:setStyle=>true,:folder=>remote_folder,:storageName=>'');
110
- @instance.post_worksheet_cells_range_value(request);
111
- end
112
- end
113
-
114
- describe 'post_worksheet_cells_range_move_to test' do
115
- it "should work" do
116
- remote_folder = 'TestData/In'
117
-
118
- local_name = 'Book1.xlsx'
119
- remote_name = 'Book1.xlsx'
120
-
121
-
122
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
123
-
124
- range = AsposeCellsCloud::Range.new(:ColumnCount=>1 ,:ColumnWidth=>10.0 ,:FirstRow=>1 ,:RowCount=>10 );
125
- request = AsposeCellsCloud::PostWorksheetCellsRangeMoveToRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:range=>range,:destRow=>10,:destColumn=>10,:folder=>remote_folder,:storageName=>'');
126
- @instance.post_worksheet_cells_range_move_to(request);
127
- end
128
- end
129
-
130
- describe 'post_worksheet_cells_range_outline_border test' do
131
- it "should work" do
132
- remote_folder = 'TestData/In'
133
-
134
- local_name = 'Book1.xlsx'
135
- remote_name = 'Book1.xlsx'
136
-
137
-
138
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
139
-
140
- rangeOperateborderColor = AsposeCellsCloud::Color.new(:R=>48 ,:G=>48 ,:B=>48 );
141
- rangeOperateRange = AsposeCellsCloud::Range.new(:ColumnCount=>1 ,:ColumnWidth=>10.0 ,:FirstRow=>1 ,:RowCount=>10 );
142
- rangeOperate = AsposeCellsCloud::RangeSetOutlineBorderRequest.new(:borderEdge=>'LeftBorder' ,:borderStyle=>'Dotted' ,:borderColor=>rangeOperateborderColor ,:Range=>rangeOperateRange );
143
- request = AsposeCellsCloud::PostWorksheetCellsRangeOutlineBorderRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:rangeOperate=>rangeOperate,:folder=>remote_folder,:storageName=>'');
144
- @instance.post_worksheet_cells_range_outline_border(request);
145
- end
146
- end
147
-
148
- describe 'post_worksheet_cells_range_column_width test' do
149
- it "should work" do
150
- remote_folder = 'TestData/In'
151
-
152
- local_name = 'Book1.xlsx'
153
- remote_name = 'Book1.xlsx'
154
-
155
-
156
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
157
-
158
- range = AsposeCellsCloud::Range.new(:ColumnCount=>1 ,:ColumnWidth=>10.0 ,:FirstRow=>1 ,:RowCount=>10 );
159
- request = AsposeCellsCloud::PostWorksheetCellsRangeColumnWidthRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:range=>range,:value=>10.7,:folder=>remote_folder,:storageName=>'');
160
- @instance.post_worksheet_cells_range_column_width(request);
161
- end
162
- end
163
-
164
- describe 'post_worksheet_cells_range_row_height test' do
165
- it "should work" do
166
- remote_folder = 'TestData/In'
167
-
168
- local_name = 'Book1.xlsx'
169
- remote_name = 'Book1.xlsx'
170
-
171
-
172
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
173
-
174
- range = AsposeCellsCloud::Range.new(:ColumnCount=>1 ,:ColumnWidth=>10.0 ,:FirstRow=>1 ,:RowCount=>10 );
175
- request = AsposeCellsCloud::PostWorksheetCellsRangeRowHeightRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:range=>range,:value=>10.9,:folder=>remote_folder,:storageName=>'');
176
- @instance.post_worksheet_cells_range_row_height(request);
177
- end
178
- end
179
-
180
- describe 'put_worksheet_cells_range test' do
181
- it "should work" do
182
- remote_folder = 'TestData/In'
183
-
184
- local_name = 'Book1.xlsx'
185
- remote_name = 'Book1.xlsx'
186
-
187
-
188
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
189
-
190
- request = AsposeCellsCloud::PutWorksheetCellsRangeRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:range=>'A1:C6',:shift=>'Down',:folder=>remote_folder,:storageName=>'');
191
- @instance.put_worksheet_cells_range(request);
192
- end
193
- end
194
-
195
- describe 'delete_worksheet_cells_range test' do
196
- it "should work" do
197
- remote_folder = 'TestData/In'
198
-
199
- local_name = 'Book1.xlsx'
200
- remote_name = 'Book1.xlsx'
201
-
202
-
203
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
204
-
205
- request = AsposeCellsCloud::DeleteWorksheetCellsRangeRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:range=>'A1:C6',:shift=>'Up',:folder=>remote_folder,:storageName=>'');
206
- @instance.delete_worksheet_cells_range(request);
207
- end
208
- end
209
-
210
- describe 'post_worksheet_cells_range_sort test' do
211
- it "should work" do
212
- remote_folder = 'TestData/In'
213
-
214
- local_name = 'Group.xlsx'
215
- remote_name = 'Group.xlsx'
216
-
217
-
218
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
219
-
220
- rangeSortRequestDataSorter = AsposeCellsCloud::DataSorter.new(:CaseSensitive=>true );
221
- rangeSortRequestCellArea = AsposeCellsCloud::Range.new(:ColumnCount=>3 ,:FirstColumn=>0 ,:FirstRow=>0 ,:RowCount=>15 );
222
- rangeSortRequest = AsposeCellsCloud::RangeSortRequest.new(:DataSorter=>rangeSortRequestDataSorter ,:CellArea=>rangeSortRequestCellArea );
223
- request = AsposeCellsCloud::PostWorksheetCellsRangeSortRequest.new(:name=>remote_name,:sheetName=>'book1',:rangeSortRequest=>rangeSortRequest,:folder=>remote_folder,:storageName=>'');
224
- @instance.post_worksheet_cells_range_sort(request);
225
- end
226
- end
227
- end
@@ -1,139 +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_shapes 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::GetWorksheetShapesRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
25
- @instance.get_worksheet_shapes(request);
26
- end
27
- end
28
-
29
- describe 'get_worksheet_shape 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::GetWorksheetShapeRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:shapeindex=>0,:folder=>remote_folder,:storageName=>'');
40
- @instance.get_worksheet_shape(request);
41
- end
42
- end
43
-
44
- describe 'put_worksheet_shape 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
- shapeDTO = AsposeCellsCloud::Shape.new();
55
- request = AsposeCellsCloud::PutWorksheetShapeRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:shapeDTO=>shapeDTO,:DrawingType=>'arc',:upperLeftRow=>1,:upperLeftColumn=>1,:top=>10,:left=>10,:width=>100,:height=>100,:folder=>remote_folder,:storageName=>'');
56
- @instance.put_worksheet_shape(request);
57
- end
58
- end
59
-
60
- describe 'delete_worksheet_shapes 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::DeleteWorksheetShapesRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
71
- @instance.delete_worksheet_shapes(request);
72
- end
73
- end
74
-
75
- describe 'delete_worksheet_shape 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::DeleteWorksheetShapeRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:shapeindex=>0,:folder=>remote_folder,:storageName=>'');
86
- @instance.delete_worksheet_shape(request);
87
- end
88
- end
89
-
90
- describe 'post_worksheet_shape test' do
91
- it "should work" do
92
- remote_folder = 'TestData/In'
93
-
94
- local_name = 'Book1.xlsx'
95
- remote_name = 'Book1.xlsx'
96
-
97
-
98
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
99
-
100
- dto = AsposeCellsCloud::Shape.new(:LowerRightColumn=>10 );
101
- request = AsposeCellsCloud::PostWorksheetShapeRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:shapeindex=>0,:dto=>dto,:folder=>remote_folder,:storageName=>'');
102
- @instance.post_worksheet_shape(request);
103
- end
104
- end
105
-
106
- describe 'post_worksheet_group_shape test' do
107
- it "should work" do
108
- remote_folder = 'TestData/In'
109
-
110
- local_name = 'Book1.xlsx'
111
- remote_name = 'Book1.xlsx'
112
-
113
-
114
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
115
-
116
- listShape = [
117
- 0,
118
- 1
119
- ];
120
- request = AsposeCellsCloud::PostWorksheetGroupShapeRequest.new(:name=>remote_name,:sheetName=>'Sheet6',:listShape=>listShape,:folder=>remote_folder,:storageName=>'');
121
- @instance.post_worksheet_group_shape(request);
122
- end
123
- end
124
-
125
- describe 'post_worksheet_ungroup_shape test' do
126
- it "should work" do
127
- remote_folder = 'TestData/In'
128
-
129
- local_name = 'Book1.xlsx'
130
- remote_name = 'Book1.xlsx'
131
-
132
-
133
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
134
-
135
- request = AsposeCellsCloud::PostWorksheetUngroupShapeRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:shapeindex=>0,:folder=>remote_folder,:storageName=>'');
136
- @instance.post_worksheet_ungroup_shape(request);
137
- end
138
- end
139
- end
@@ -1,104 +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_sparkline_groups 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::GetWorksheetSparklineGroupsRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
25
- @instance.get_worksheet_sparkline_groups(request);
26
- end
27
- end
28
-
29
- describe 'get_worksheet_sparkline_group 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::GetWorksheetSparklineGroupRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:sparklineIndex=>0,:folder=>remote_folder,:storageName=>'');
40
- @instance.get_worksheet_sparkline_group(request);
41
- end
42
- end
43
-
44
- describe 'delete_worksheet_sparkline_groups 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::DeleteWorksheetSparklineGroupsRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:folder=>remote_folder,:storageName=>'');
55
- @instance.delete_worksheet_sparkline_groups(request);
56
- end
57
- end
58
-
59
- describe 'delete_worksheet_sparkline_group 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::DeleteWorksheetSparklineGroupRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:sparklineIndex=>0,:folder=>remote_folder,:storageName=>'');
70
- @instance.delete_worksheet_sparkline_group(request);
71
- end
72
- end
73
-
74
- describe 'put_worksheet_sparkline_group 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::PutWorksheetSparklineGroupRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:type=>'Line',:dataRange=>'C6:E13',:isVertical=>false,:locationRange=>'G6:G13',:folder=>remote_folder,:storageName=>'');
85
- @instance.put_worksheet_sparkline_group(request);
86
- end
87
- end
88
-
89
- describe 'post_worksheet_sparkline_group 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
- sparklineGroup = AsposeCellsCloud::SparklineGroup.new(:DisplayHidden=>true ,:PlotRightToLeft=>true );
100
- request = AsposeCellsCloud::PostWorksheetSparklineGroupRequest.new(:name=>remote_name,:sheetName=>'Sheet1',:sparklineGroupIndex=>0,:sparklineGroup=>sparklineGroup,:folder=>remote_folder,:storageName=>'');
101
- @instance.post_worksheet_sparkline_group(request);
102
- end
103
- end
104
- end
@@ -1,67 +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 'post_add_text_content test' do
15
- it "should work" do
16
- remote_folder = 'TestData/In'
17
-
18
- local_name = 'BookText.xlsx'
19
- remote_name = 'BookText.xlsx'
20
-
21
-
22
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
23
-
24
- addTextOptionsDataSource = AsposeCellsCloud::DataSource.new(:DataSourceType=>'CloudFileSystem' ,:DataPath=>'TestData/In/BookText.xlsx' );
25
- addTextOptionsScopeOptions = AsposeCellsCloud::ScopeOptions.new(:Scope=>'Workbook' );
26
- addTextOptions = AsposeCellsCloud::AddTextOptions.new(:DataSource=>addTextOptionsDataSource ,:Text=>'Aspose.Cells Cloud is an excellent product.' ,:ScopeOptions=>addTextOptionsScopeOptions ,:SelectPoistion=>'AtTheBeginning' ,:SkipEmptyCells=>true );
27
- request = AsposeCellsCloud::PostAddTextContentRequest.new(:addTextOptions=>addTextOptions);
28
- @instance.post_add_text_content(request);
29
- end
30
- end
31
-
32
- describe 'post_trim_content test' do
33
- it "should work" do
34
- remote_folder = 'TestData/In'
35
-
36
- local_name = 'BookText.xlsx'
37
- remote_name = 'BookText.xlsx'
38
-
39
-
40
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
41
-
42
- trimContentOptionsDataSource = AsposeCellsCloud::DataSource.new(:DataSourceType=>'CloudFileSystem' ,:DataPath=>'TestData/In/BookText.xlsx' );
43
- trimContentOptionsScopeOptions = AsposeCellsCloud::ScopeOptions.new(:Scope=>'EntireWorkbook' );
44
- trimContentOptions = AsposeCellsCloud::TrimContentOptions.new(:DataSource=>trimContentOptionsDataSource ,:TrimLeading=>true ,:TrimTrailing=>true ,:TrimSpaceBetweenWordTo1=>true ,:RemoveAllLineBreaks=>true ,:ScopeOptions=>trimContentOptionsScopeOptions );
45
- request = AsposeCellsCloud::PostTrimContentRequest.new(:trimContentOptions=>trimContentOptions);
46
- @instance.post_trim_content(request);
47
- end
48
- end
49
-
50
- describe 'post_update_word_case test' do
51
- it "should work" do
52
- remote_folder = 'TestData/In'
53
-
54
- local_name = 'BookText.xlsx'
55
- remote_name = 'BookText.xlsx'
56
-
57
-
58
- @instance.upload_file(AsposeCellsCloud::UploadFileRequest.new( :UploadFiles=>"TestData/"+local_name,:path=>remote_folder ))
59
-
60
- wordCaseOptionsDataSource = AsposeCellsCloud::DataSource.new(:DataSourceType=>'CloudFileSystem' ,:DataPath=>'TestData/In/BookText.xlsx' );
61
- wordCaseOptionsScopeOptions = AsposeCellsCloud::ScopeOptions.new(:Scope=>'EntireWorkbook' );
62
- wordCaseOptions = AsposeCellsCloud::WordCaseOptions.new(:DataSource=>wordCaseOptionsDataSource ,:WordCaseType=>'None' ,:ScopeOptions=>wordCaseOptionsScopeOptions );
63
- request = AsposeCellsCloud::PostUpdateWordCaseRequest.new(:wordCaseOptions=>wordCaseOptions);
64
- @instance.post_update_word_case(request);
65
- end
66
- end
67
- end