aspose_cells_cloud 20.4 → 20.10

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 (310) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_cells_cloud.rb +8 -1
  3. data/lib/aspose_cells_cloud/api/cells_api.rb +19867 -19164
  4. data/lib/aspose_cells_cloud/api_client.rb +489 -489
  5. data/lib/aspose_cells_cloud/api_error.rb +18 -8
  6. data/lib/aspose_cells_cloud/models/cells_cloud_file_info.rb +230 -0
  7. data/lib/aspose_cells_cloud/models/{error.rb → cells_error.rb} +1 -1
  8. data/lib/aspose_cells_cloud/models/files_upload_result.rb +1 -1
  9. data/lib/aspose_cells_cloud/models/save_result.rb +8 -26
  10. data/lib/aspose_cells_cloud/models/sparkline.rb +226 -0
  11. data/lib/aspose_cells_cloud/models/sparkline_group.rb +434 -0
  12. data/lib/aspose_cells_cloud/models/sparkline_group_response.rb +221 -0
  13. data/lib/aspose_cells_cloud/models/sparkline_groups.rb +200 -0
  14. data/lib/aspose_cells_cloud/models/sparkline_groups_response.rb +221 -0
  15. data/lib/aspose_cells_cloud/models/split_result.rb +1 -1
  16. data/lib/aspose_cells_cloud/models/text_water_marker_request.rb +239 -0
  17. data/lib/aspose_cells_cloud/version.rb +25 -25
  18. data/spec/api/cells_api_spec.rb +30 -29
  19. data/spec/api/cells_auto_filter_api_spec.rb +2 -1
  20. data/spec/api/cells_autoshapes_api_spec.rb +2 -1
  21. data/spec/api/cells_chart_area_api_spec.rb +2 -1
  22. data/spec/api/cells_charts_api_spec.rb +2 -1
  23. data/spec/api/cells_conditional_formattings_api_spec.rb +2 -1
  24. data/spec/api/cells_hypelinks_api_spec.rb +2 -1
  25. data/spec/api/cells_list_objects_api_spec.rb +2 -1
  26. data/spec/api/cells_ole_objects_api_spec.rb +5 -2
  27. data/spec/api/cells_page_breaks_api_spec.rb +4 -3
  28. data/spec/api/cells_page_setup_api_spec.rb +2 -1
  29. data/spec/api/cells_pictures_api_spec.rb +4 -2
  30. data/spec/api/cells_pivot_tables_api_spec.rb +37 -29
  31. data/spec/api/cells_properties_api_spec.rb +2 -1
  32. data/spec/api/cells_ranges_api_spec.rb +2 -1
  33. data/spec/api/cells_save_as_api_spec.rb +4 -3
  34. data/spec/api/cells_shapes_api_spec.rb +3 -2
  35. data/spec/api/cells_simple_spec.rb +2 -1
  36. data/spec/api/cells_sparkline_group_spec.rb +43 -0
  37. data/spec/api/cells_storage_api_spec.rb +69 -68
  38. data/spec/api/cells_storage_spec.rb +3 -2
  39. data/spec/api/cells_task_api_spec.rb +3 -2
  40. data/spec/api/cells_workbook_api_spec.rb +32 -29
  41. data/spec/api/cells_worksheet_validations_api_spec.rb +2 -1
  42. data/spec/api/cells_worksheets_api_spec.rb +60 -58
  43. data/spec/spec_helper.rb +4 -2
  44. metadata +31 -291
  45. data/Gemfile +0 -7
  46. data/LICENSE +0 -21
  47. data/README.md +0 -104
  48. data/Rakefile +0 -8
  49. data/aspose_cells_cloud-20.2.gem +0 -0
  50. data/aspose_cells_cloud.gemspec +0 -48
  51. data/data/Book1.xlsx +0 -0
  52. data/data/ImportData.xlsx +0 -0
  53. data/data/NewCopy.xlsx +0 -0
  54. data/data/OLEDoc.docx +0 -0
  55. data/data/PivTestFile2.xlsx +0 -0
  56. data/data/ReportData.xml +0 -1
  57. data/data/TestCase.xlsx +0 -0
  58. data/data/TestImportData.xlsx +0 -0
  59. data/data/TestImportDataCSV.csv +0 -3
  60. data/data/WaterMark.png +0 -0
  61. data/data/markdowntest.md +0 -41
  62. data/data/myDocument.xlsx +0 -0
  63. data/data/word.jpg +0 -0
  64. data/docs/AboveAverage.md +0 -10
  65. data/docs/AccessTokenResponse.md +0 -15
  66. data/docs/Area.md +0 -13
  67. data/docs/AutoFilter.md +0 -11
  68. data/docs/AutoFilterResponse.md +0 -10
  69. data/docs/AutoFitterOptions.md +0 -10
  70. data/docs/AutoShape.md +0 -42
  71. data/docs/AutoShapeResponse.md +0 -10
  72. data/docs/AutoShapes.md +0 -9
  73. data/docs/AutoShapesResponse.md +0 -10
  74. data/docs/Border.md +0 -10
  75. data/docs/CalculationOptions.md +0 -11
  76. data/docs/Cell.md +0 -24
  77. data/docs/CellArea.md +0 -11
  78. data/docs/CellResponse.md +0 -10
  79. data/docs/CellValue.md +0 -12
  80. data/docs/Cells.md +0 -14
  81. data/docs/CellsApi.md +0 -14581
  82. data/docs/CellsCloudResponse.md +0 -9
  83. data/docs/CellsColor.md +0 -12
  84. data/docs/CellsDocumentProperties.md +0 -9
  85. data/docs/CellsDocumentPropertiesResponse.md +0 -10
  86. data/docs/CellsDocumentProperty.md +0 -11
  87. data/docs/CellsDocumentPropertyResponse.md +0 -10
  88. data/docs/CellsObjectOperateTaskParameter.md +0 -10
  89. data/docs/CellsResponse.md +0 -10
  90. data/docs/Chart.md +0 -51
  91. data/docs/ChartArea.md +0 -21
  92. data/docs/ChartAreaResponse.md +0 -10
  93. data/docs/ChartFrame.md +0 -21
  94. data/docs/ChartOperateParameter.md +0 -17
  95. data/docs/Charts.md +0 -9
  96. data/docs/ChartsResponse.md +0 -10
  97. data/docs/Color.md +0 -11
  98. data/docs/ColorFilter.md +0 -12
  99. data/docs/ColorFilterRequest.md +0 -10
  100. data/docs/ColorScale.md +0 -13
  101. data/docs/Column.md +0 -13
  102. data/docs/ColumnResponse.md +0 -10
  103. data/docs/Columns.md +0 -11
  104. data/docs/ColumnsResponse.md +0 -10
  105. data/docs/Comment.md +0 -19
  106. data/docs/CommentResponse.md +0 -10
  107. data/docs/Comments.md +0 -9
  108. data/docs/CommentsResponse.md +0 -10
  109. data/docs/ConditionalFormatting.md +0 -10
  110. data/docs/ConditionalFormattingIcon.md +0 -10
  111. data/docs/ConditionalFormattingResponse.md +0 -10
  112. data/docs/ConditionalFormattingValue.md +0 -10
  113. data/docs/ConditionalFormattings.md +0 -10
  114. data/docs/ConditionalFormattingsResponse.md +0 -10
  115. data/docs/ConvertTaskParameter.md +0 -10
  116. data/docs/CopyOptions.md +0 -13
  117. data/docs/CreatePivotTableRequest.md +0 -14
  118. data/docs/CustomFilter.md +0 -9
  119. data/docs/CustomParserConfig.md +0 -10
  120. data/docs/DataBar.md +0 -19
  121. data/docs/DataBarBorder.md +0 -9
  122. data/docs/DataSorter.md +0 -11
  123. data/docs/DifSaveOptions.md +0 -15
  124. data/docs/DiscUsage.md +0 -9
  125. data/docs/DynamicFilter.md +0 -10
  126. data/docs/Error.md +0 -11
  127. data/docs/ErrorDetails.md +0 -9
  128. data/docs/FileSource.md +0 -9
  129. data/docs/FileVersion.md +0 -14
  130. data/docs/FileVersions.md +0 -8
  131. data/docs/FilesList.md +0 -8
  132. data/docs/FilesUploadResult.md +0 -9
  133. data/docs/FillFormat.md +0 -13
  134. data/docs/FillFormatResponse.md +0 -10
  135. data/docs/FilterColumn.md +0 -16
  136. data/docs/Font.md +0 -17
  137. data/docs/FontSetting.md +0 -12
  138. data/docs/FormatCondition.md +0 -22
  139. data/docs/GradientFill.md +0 -11
  140. data/docs/GradientFillStop.md +0 -10
  141. data/docs/HorizontalPageBreak.md +0 -10
  142. data/docs/HorizontalPageBreakResponse.md +0 -10
  143. data/docs/HorizontalPageBreaks.md +0 -9
  144. data/docs/HorizontalPageBreaksResponse.md +0 -10
  145. data/docs/HtmlSaveOptions.md +0 -27
  146. data/docs/Hyperlink.md +0 -12
  147. data/docs/HyperlinkResponse.md +0 -10
  148. data/docs/Hyperlinks.md +0 -10
  149. data/docs/HyperlinksResponse.md +0 -10
  150. data/docs/IconFilter.md +0 -9
  151. data/docs/IconSet.md +0 -13
  152. data/docs/ImageSaveOptions.md +0 -27
  153. data/docs/ImportBatchDataOption.md +0 -12
  154. data/docs/ImportCSVDataOption.md +0 -17
  155. data/docs/ImportDataTaskParameter.md +0 -10
  156. data/docs/ImportDoubleArrayOption.md +0 -15
  157. data/docs/ImportIntArrayOption.md +0 -15
  158. data/docs/ImportOption.md +0 -11
  159. data/docs/ImportStringArrayOption.md +0 -15
  160. data/docs/Legend.md +0 -23
  161. data/docs/LegendResponse.md +0 -10
  162. data/docs/Line.md +0 -26
  163. data/docs/LineFormat.md +0 -24
  164. data/docs/LineResponse.md +0 -10
  165. data/docs/Link.md +0 -11
  166. data/docs/LinkElement.md +0 -8
  167. data/docs/ListColumn.md +0 -9
  168. data/docs/ListObject.md +0 -23
  169. data/docs/ListObjectOperateParameter.md +0 -9
  170. data/docs/ListObjectResponse.md +0 -10
  171. data/docs/ListObjects.md +0 -9
  172. data/docs/ListObjectsResponse.md +0 -10
  173. data/docs/MHtmlSaveOptions.md +0 -27
  174. data/docs/MarkdownSaveOptions.md +0 -18
  175. data/docs/MergedCell.md +0 -12
  176. data/docs/MergedCellResponse.md +0 -10
  177. data/docs/MergedCells.md +0 -10
  178. data/docs/MergedCellsResponse.md +0 -10
  179. data/docs/MultipleFilter.md +0 -7
  180. data/docs/MultipleFilters.md +0 -9
  181. data/docs/Name.md +0 -15
  182. data/docs/NameResponse.md +0 -10
  183. data/docs/Names.md +0 -10
  184. data/docs/NamesResponse.md +0 -10
  185. data/docs/NegativeBarFormat.md +0 -11
  186. data/docs/ObjectExist.md +0 -9
  187. data/docs/OdsSaveOptions.md +0 -15
  188. data/docs/OleObject.md +0 -49
  189. data/docs/OleObjectResponse.md +0 -10
  190. data/docs/OleObjects.md +0 -9
  191. data/docs/OleObjectsResponse.md +0 -10
  192. data/docs/OoxmlSaveOptions.md +0 -16
  193. data/docs/OperateObject.md +0 -9
  194. data/docs/OperateObjectPosition.md +0 -13
  195. data/docs/OperateParameter.md +0 -8
  196. data/docs/PageBreakOperateParameter.md +0 -14
  197. data/docs/PageSection.md +0 -12
  198. data/docs/PageSectionsResponse.md +0 -10
  199. data/docs/PageSetup.md +0 -42
  200. data/docs/PageSetupOperateParameter.md +0 -9
  201. data/docs/PageSetupResponse.md +0 -10
  202. data/docs/PasswordRequest.md +0 -8
  203. data/docs/PasteOptions.md +0 -11
  204. data/docs/PatternFill.md +0 -14
  205. data/docs/PdfSaveOptions.md +0 -25
  206. data/docs/PdfSecurityOptions.md +0 -17
  207. data/docs/PicFormatOption.md +0 -13
  208. data/docs/Picture.md +0 -48
  209. data/docs/PictureResponse.md +0 -10
  210. data/docs/Pictures.md +0 -9
  211. data/docs/PicturesResponse.md +0 -10
  212. data/docs/PivotField.md +0 -46
  213. data/docs/PivotFieldResponse.md +0 -10
  214. data/docs/PivotFilter.md +0 -16
  215. data/docs/PivotFilterResponse.md +0 -10
  216. data/docs/PivotFiltersResponse.md +0 -10
  217. data/docs/PivotItem.md +0 -11
  218. data/docs/PivotTable.md +0 -76
  219. data/docs/PivotTableFieldRequest.md +0 -8
  220. data/docs/PivotTableOperateParameter.md +0 -16
  221. data/docs/PivotTableResponse.md +0 -10
  222. data/docs/PivotTables.md +0 -9
  223. data/docs/PivotTablesResponse.md +0 -10
  224. data/docs/ProtectSheetParameter.md +0 -23
  225. data/docs/Range.md +0 -16
  226. data/docs/RangeCopyRequest.md +0 -11
  227. data/docs/RangeSetOutlineBorderRequest.md +0 -11
  228. data/docs/RangeSetStyleRequest.md +0 -9
  229. data/docs/RangeValueResponse.md +0 -10
  230. data/docs/Ranges.md +0 -8
  231. data/docs/RangesResponse.md +0 -10
  232. data/docs/ResultDestination.md +0 -10
  233. data/docs/Row.md +0 -15
  234. data/docs/RowResponse.md +0 -10
  235. data/docs/Rows.md +0 -11
  236. data/docs/RowsResponse.md +0 -10
  237. data/docs/SaveOptions.md +0 -15
  238. data/docs/SaveResponse.md +0 -10
  239. data/docs/SaveResult.md +0 -10
  240. data/docs/SaveResultTaskParameter.md +0 -9
  241. data/docs/ShadowEffect.md +0 -14
  242. data/docs/Shape.md +0 -42
  243. data/docs/ShapeOperateParameter.md +0 -9
  244. data/docs/ShapeResponse.md +0 -10
  245. data/docs/Shapes.md +0 -9
  246. data/docs/ShapesResponse.md +0 -10
  247. data/docs/SingleValue.md +0 -9
  248. data/docs/SingleValueResponse.md +0 -10
  249. data/docs/SmartMarkerTaskParameter.md +0 -10
  250. data/docs/SolidFill.md +0 -10
  251. data/docs/SortKey.md +0 -10
  252. data/docs/SplitResult.md +0 -8
  253. data/docs/SplitResultDocument.md +0 -9
  254. data/docs/SplitResultResponse.md +0 -10
  255. data/docs/SplitWorkbookTaskParameter.md +0 -13
  256. data/docs/SpreadsheetML2003SaveOptions.md +0 -18
  257. data/docs/StorageExist.md +0 -8
  258. data/docs/StorageFile.md +0 -12
  259. data/docs/Style.md +0 -31
  260. data/docs/StyleResponse.md +0 -10
  261. data/docs/SvgSaveOptions.md +0 -16
  262. data/docs/TaskData.md +0 -8
  263. data/docs/TaskDescription.md +0 -9
  264. data/docs/TaskParameter.md +0 -7
  265. data/docs/TextItem.md +0 -9
  266. data/docs/TextItems.md +0 -9
  267. data/docs/TextItemsResponse.md +0 -10
  268. data/docs/TextOptions.md +0 -23
  269. data/docs/TextureFill.md +0 -13
  270. data/docs/ThemeColor.md +0 -9
  271. data/docs/TilePicOption.md +0 -13
  272. data/docs/Title.md +0 -28
  273. data/docs/TitleResponse.md +0 -10
  274. data/docs/Top10.md +0 -10
  275. data/docs/Top10Filter.md +0 -11
  276. data/docs/TxtSaveOptions.md +0 -19
  277. data/docs/Validation.md +0 -24
  278. data/docs/ValidationResponse.md +0 -10
  279. data/docs/Validations.md +0 -10
  280. data/docs/ValidationsResponse.md +0 -10
  281. data/docs/ValueType.md +0 -7
  282. data/docs/VerticalPageBreak.md +0 -10
  283. data/docs/VerticalPageBreakResponse.md +0 -10
  284. data/docs/VerticalPageBreaks.md +0 -9
  285. data/docs/VerticalPageBreaksResponse.md +0 -10
  286. data/docs/Workbook.md +0 -18
  287. data/docs/WorkbookEncryptionRequest.md +0 -10
  288. data/docs/WorkbookOperateParameter.md +0 -8
  289. data/docs/WorkbookProtectionRequest.md +0 -9
  290. data/docs/WorkbookReplaceResponse.md +0 -11
  291. data/docs/WorkbookResponse.md +0 -10
  292. data/docs/WorkbookSettings.md +0 -52
  293. data/docs/WorkbookSettingsOperateParameter.md +0 -9
  294. data/docs/WorkbookSettingsResponse.md +0 -10
  295. data/docs/Worksheet.md +0 -39
  296. data/docs/WorksheetMovingRequest.md +0 -9
  297. data/docs/WorksheetReplaceResponse.md +0 -11
  298. data/docs/WorksheetResponse.md +0 -10
  299. data/docs/Worksheets.md +0 -9
  300. data/docs/WorksheetsResponse.md +0 -10
  301. data/docs/XlsSaveOptions.md +0 -15
  302. data/docs/XlsbSaveOptions.md +0 -15
  303. data/docs/XpsSaveOptions.md +0 -15
  304. data/git_push.sh +0 -55
  305. data/lib/aspose_cells_cloud/.api_client.rb.swp +0 -0
  306. data/runTest.sh +0 -4
  307. data/spec/api/cells_one_spec.rb +0 -37
  308. data/spec/api/o_auth_api_spec.rb +0 -51
  309. data/test.pdf +0 -0
  310. data/testResult.txt +0 -113
@@ -1,25 +1,25 @@
1
- =begin
2
- --------------------------------------------------------------------------------------------------------------------
3
- Copyright (c) 2020 Aspose.Cells Cloud
4
- Permission is hereby granted, free of charge, to any person obtaining a copy
5
- of this software and associated documentation files (the "Software"), to deal
6
- in the Software without restriction, including without limitation the rights
7
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
- copies of the Software, and to permit persons to whom the Software is
9
- furnished to do so, subject to the following conditions:
10
- The above copyright notice and this permission notice shall be included in all
11
- copies or substantial portions of the Software.
12
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
- SOFTWARE.
19
- --------------------------------------------------------------------------------------------------------------------
20
-
21
- =end
22
-
23
- module AsposeCellsCloud
24
- VERSION = "20.4"
25
- end
1
+ =begin
2
+ --------------------------------------------------------------------------------------------------------------------
3
+ Copyright (c) 2020 Aspose.Cells Cloud
4
+ Permission is hereby granted, free of charge, to any person obtaining a copy
5
+ of this software and associated documentation files (the "Software"), to deal
6
+ in the Software without restriction, including without limitation the rights
7
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the Software is
9
+ furnished to do so, subject to the following conditions:
10
+ The above copyright notice and this permission notice shall be included in all
11
+ copies or substantial portions of the Software.
12
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
13
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
14
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
15
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
16
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
17
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
18
+ SOFTWARE.
19
+ --------------------------------------------------------------------------------------------------------------------
20
+
21
+ =end
22
+
23
+ module AsposeCellsCloud
24
+ VERSION = "20.10"
25
+ end
@@ -18,7 +18,8 @@ require 'json'
18
18
  # Please update as you see appropriate
19
19
  describe 'CellsApi' do
20
20
  before do
21
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
21
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
22
+ $VERBOSE = nil
22
23
  end
23
24
 
24
25
  after do
@@ -129,8 +130,8 @@ describe 'CellsApi' do
129
130
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
130
131
  expect(result.uploaded.size).to be > 0
131
132
  result = @instance.cells_get_worksheet_cell(name, sheet_name, cell_or_method_name, { :folder=>folder})
132
- #print(result.code)
133
- expect(result.code).to eql(200)
133
+ print(result)
134
+ #expect(result.code).to eql(200)
134
135
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
135
136
  end
136
137
  end
@@ -310,32 +311,32 @@ describe 'CellsApi' do
310
311
  end
311
312
  end
312
313
 
313
- # unit tests for cells_post_cell_characters
314
- # Set cell characters
315
- #
316
- # @param name
317
- # @param sheet_name
318
- # @param cell_name
319
- # @param [Hash] opts the optional parameters
320
- # @option opts [Array<FontSetting>] :options
321
- # @option opts [String] :folder
322
- # @option opts [String] :storage storage name.
323
- # @return [CellsCloudResponse]
324
- describe 'cells_post_cell_characters test' do
325
- it "should work" do
326
- name = $BOOK1
327
- sheet_name = $SHEET1
328
- cell_name = $CellName
329
- options = nil
330
- folder = $TEMPFOLDER
331
- storage = nil
332
- result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
333
- expect(result.uploaded.size).to be > 0
334
- result = @instance.cells_post_cell_characters(name, sheet_name, cell_name, { :options=>options,:folder=>folder})
335
- expect(result.code).to eql(200)
336
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
337
- end
338
- end
314
+ # # unit tests for cells_post_cell_characters
315
+ # # Set cell characters
316
+ # #
317
+ # # @param name
318
+ # # @param sheet_name
319
+ # # @param cell_name
320
+ # # @param [Hash] opts the optional parameters
321
+ # # @option opts [Array<FontSetting>] :options
322
+ # # @option opts [String] :folder
323
+ # # @option opts [String] :storage storage name.
324
+ # # @return [CellsCloudResponse]
325
+ # describe 'cells_post_cell_characters test' do
326
+ # it "should work" do
327
+ # name = $BOOK1
328
+ # sheet_name = $SHEET1
329
+ # cell_name = $CellName
330
+ # options = nil
331
+ # folder = $TEMPFOLDER
332
+ # storage = nil
333
+ # result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
334
+ # expect(result.uploaded.size).to be > 0
335
+ # result = @instance.cells_post_cell_characters(name, sheet_name, cell_name, { :options=>options,:folder=>folder})
336
+ # expect(result.code).to eql(200)
337
+ # # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
338
+ # end
339
+ # end
339
340
 
340
341
  # unit tests for cells_post_clear_contents
341
342
  # Clear cells contents.
@@ -7,7 +7,8 @@ require 'json'
7
7
  # Please update as you see appropriate
8
8
  describe 'CellsAutoFilterApi' do
9
9
  before do
10
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
10
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
11
+ $VERBOSE = nil
11
12
  end
12
13
 
13
14
  after do
@@ -7,7 +7,8 @@ require 'json'
7
7
  # Please update as you see appropriate
8
8
  describe 'CellsAutoshapesApi' do
9
9
  before do
10
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
10
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
11
+ $VERBOSE = nil
11
12
  end
12
13
 
13
14
  after do
@@ -8,7 +8,8 @@ require 'json'
8
8
  # Please update as you see appropriate
9
9
  describe 'CellsChartAreaApi' do
10
10
  before do
11
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
11
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
12
+ $VERBOSE = nil
12
13
  end
13
14
 
14
15
  after do
@@ -18,7 +18,8 @@ require 'json'
18
18
  # Please update as you see appropriate
19
19
  describe 'CellsChartsApi' do
20
20
  before do
21
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
21
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
22
+ $VERBOSE = nil
22
23
  end
23
24
 
24
25
  after do
@@ -7,7 +7,8 @@ require 'json'
7
7
  # Please update as you see appropriate
8
8
  describe 'CellsConditionalFormattingsApi' do
9
9
  before do
10
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
10
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
11
+ $VERBOSE = nil
11
12
  end
12
13
 
13
14
  after do
@@ -7,7 +7,8 @@ require 'json'
7
7
  # Please update as you see appropriate
8
8
  describe 'CellsHypelinksApi' do
9
9
  before do
10
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
10
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
11
+ $VERBOSE = nil
11
12
  end
12
13
 
13
14
  after do
@@ -7,7 +7,8 @@ require 'json'
7
7
  # Please update as you see appropriate
8
8
  describe 'CellsListObjectsApi' do
9
9
  before do
10
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
10
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
11
+ $VERBOSE = nil
11
12
  end
12
13
 
13
14
  after do
@@ -8,7 +8,8 @@ require 'json'
8
8
  # Please update as you see appropriate
9
9
  describe 'CellsOleObjectsApi' do
10
10
  before do
11
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
11
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
12
+ $VERBOSE = nil
12
13
  end
13
14
  after do
14
15
  # run after each test
@@ -118,8 +119,10 @@ describe 'CellsOleObjectsApi' do
118
119
  image_file = 'word.jpg'
119
120
  folder = $TEMPFOLDER
120
121
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
122
+ result = @instance.upload_file( folder+"/"+ole_file, ::File.open(File.expand_path("data/"+ole_file),"r") {|io| io.read(io.size) })
123
+ result = @instance.upload_file( folder+"/"+image_file, ::File.open(File.expand_path("data/"+image_file),"r") {|io| io.read(io.size) })
121
124
  expect(result.uploaded.size).to be > 0
122
- result = @instance.cells_ole_objects_put_worksheet_ole_object(name, sheet_name, { :ole_object=>ole_object, :upper_left_row=>upper_left_row, :upper_left_column=>upper_left_column, :height=>height, :width=>width, :ole_file=>ole_file, :image_file=>image_file,:folder=>folder})
125
+ result = @instance.cells_ole_objects_put_worksheet_ole_object(name, sheet_name, { :ole_object=>ole_object, :upper_left_row=>upper_left_row, :upper_left_column=>upper_left_column, :height=>height, :width=>width, :ole_file=> (folder+"/"+ole_file), :image_file=> (folder+"/"+image_file),:folder=>folder})
123
126
  expect(result.code).to eql(200)
124
127
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
125
128
  end
@@ -7,7 +7,8 @@ require 'json'
7
7
  # Please update as you see appropriate
8
8
  describe 'CellsPageBreaksApi' do
9
9
  before do
10
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
10
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
11
+ $VERBOSE = nil
11
12
  end
12
13
  after do
13
14
  # run after each test
@@ -207,7 +208,7 @@ describe 'CellsPageBreaksApi' do
207
208
  it "should work" do
208
209
  name = $BOOK1
209
210
  sheet_name = $SHEET1
210
- row = 1
211
+ row = 0
211
212
  folder = $TEMPFOLDER
212
213
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
213
214
  expect(result.uploaded.size).to be > 0
@@ -255,7 +256,7 @@ describe 'CellsPageBreaksApi' do
255
256
  it "should work" do
256
257
  name = $BOOK1
257
258
  sheet_name = $SHEET1
258
- column = 1
259
+ column = 0
259
260
  folder = $TEMPFOLDER
260
261
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
261
262
  expect(result.uploaded.size).to be > 0
@@ -18,7 +18,8 @@ require 'json'
18
18
  # Please update as you see appropriate
19
19
  describe 'CellsPageSetupApi' do
20
20
  before do
21
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
21
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
22
+ $VERBOSE = nil
22
23
  end
23
24
  after do
24
25
  # run after each test
@@ -6,7 +6,8 @@ require 'json'
6
6
  # Please update as you see appropriate
7
7
  describe 'CellsPicturesApi' do
8
8
  before do
9
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
9
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
10
+ $VERBOSE = nil
10
11
  end
11
12
 
12
13
  after do
@@ -116,8 +117,9 @@ describe 'CellsPicturesApi' do
116
117
  picture_path = 'WaterMark.png'
117
118
  folder = $TEMPFOLDER
118
119
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
120
+ result = @instance.upload_file( folder+"/"+picture_path, ::File.open(File.expand_path("data/"+picture_path),"r") {|io| io.read(io.size) })
119
121
  expect(result.uploaded.size).to be > 0
120
- result = @instance.cells_pictures_put_worksheet_add_picture(name, sheet_name, {:picture=>picture, :upper_left_row=>upper_left_row, :upper_left_column=>upper_left_column, :lower_right_row=>lower_right_row, :lower_right_column=>lower_right_column, :picture_path=>picture_path, :folder=>folder})
122
+ result = @instance.cells_pictures_put_worksheet_add_picture(name, sheet_name, {:picture=>picture, :upper_left_row=>upper_left_row, :upper_left_column=>upper_left_column, :lower_right_row=>lower_right_row, :lower_right_column=>lower_right_column, :picture_path=>(folder+"/"+picture_path), :folder=>folder})
121
123
  expect(result.code).to eql(200)
122
124
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
123
125
  end
@@ -7,7 +7,8 @@ require 'json'
7
7
  # Please update as you see appropriate
8
8
  describe 'CellsPivotTablesApi' do
9
9
  before do
10
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
10
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
11
+ $VERBOSE = nil
11
12
  end
12
13
 
13
14
  after do
@@ -209,6 +210,37 @@ describe 'CellsPivotTablesApi' do
209
210
  end
210
211
  end
211
212
 
213
+ describe 'cells_pivot_tables_post_pivot_table_update_pivot_fields test' do
214
+ it "should work" do
215
+ name = $PivTestFile
216
+ sheet_name = $SHEET4
217
+ pivot_table_index = 0
218
+ field_index = 0
219
+ folder = $TEMPFOLDER
220
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
221
+ expect(result.uploaded.size).to be > 0
222
+ pivot_field = AsposeCellsCloud::PivotField.new({:Number=>5})
223
+ result = @instance.cells_pivot_tables_post_pivot_table_update_pivot_fields(name, sheet_name, pivot_table_index, "Data",pivot_field , { :folder=>folder})
224
+ expect(result.code).to eql(200)
225
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
226
+ end
227
+ end
228
+
229
+ describe 'cells_pivot_tables_post_pivot_table_update_pivot_field test' do
230
+ it "should work" do
231
+ name = $PivTestFile
232
+ sheet_name = $SHEET4
233
+ pivot_table_index = 0
234
+ field_index = 0
235
+ folder = $TEMPFOLDER
236
+ result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
237
+ expect(result.uploaded.size).to be > 0
238
+ pivot_field = AsposeCellsCloud::PivotField.new({:Number=>5})
239
+ result = @instance.cells_pivot_tables_post_pivot_table_update_pivot_field(name, sheet_name, pivot_table_index,0, "Data",pivot_field , { :folder=>folder})
240
+ expect(result.code).to eql(200)
241
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
242
+ end
243
+ end
212
244
  # unit tests for cells_pivot_tables_post_pivot_table_style
213
245
  # Update style for pivot table
214
246
  #
@@ -377,12 +409,15 @@ describe 'CellsPivotTablesApi' do
377
409
  need_re_calculate = true
378
410
  folder = $TEMPFOLDER
379
411
  filter_index =0
412
+ field_index=0
380
413
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
381
414
  expect(result.uploaded.size).to be > 0
382
415
  result = @instance.cells_pivot_tables_put_worksheet_pivot_table_filter(name, sheet_name, pivot_table_index, { :filter=>filter, :need_re_calculate=>need_re_calculate, :folder=>folder})
383
416
  expect(result.code).to eql(200)
384
417
  result = @instance.cells_pivot_tables_get_worksheet_pivot_table_filter(name, sheet_name, pivot_table_index, filter_index, { :folder=>folder})
385
- expect(result.code).to eql(200)
418
+ expect(result.code).to eql(200)
419
+ result = @instance.cells_pivot_tables_delete_worksheet_pivot_table_filter(name, sheet_name, pivot_table_index, field_index, {:need_re_calculate=>need_re_calculate, :folder=>folder})
420
+ expect(result.code).to eql(200)
386
421
  end
387
422
  end
388
423
 
@@ -438,33 +473,6 @@ describe 'CellsPivotTablesApi' do
438
473
  end
439
474
  end
440
475
 
441
- # unit tests for cells_pivot_tables_delete_worksheet_pivot_table_filter
442
- # delete pivot filter for piovt table
443
- #
444
- # @param name
445
- # @param sheet_name
446
- # @param pivot_table_index
447
- # @param field_index
448
- # @param [Hash] opts the optional parameters
449
- # @option opts [BOOLEAN] :need_re_calculate
450
- # @option opts [String] :folder
451
- # @option opts [String] :storage storage name.
452
- # @return [CellsCloudResponse]
453
- describe 'cells_pivot_tables_delete_worksheet_pivot_table_filter test' do
454
- it "should work" do
455
- name = $PivTestFile
456
- sheet_name = $SHEET4
457
- pivot_table_index = 0
458
- field_index = 0
459
- need_re_calculate = true
460
- folder = $TEMPFOLDER
461
- result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
462
- expect(result.uploaded.size).to be > 0
463
- result = @instance.cells_pivot_tables_delete_worksheet_pivot_table_filter(name, sheet_name, pivot_table_index, field_index, {:need_re_calculate=>need_re_calculate, :folder=>folder})
464
- expect(result.code).to eql(200)
465
- # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
466
- end
467
- end
468
476
 
469
477
  # unit tests for cells_pivot_tables_delete_worksheet_pivot_table_filters
470
478
  # delete all pivot filters for piovt table
@@ -8,7 +8,8 @@ require 'json'
8
8
  # Please update as you see appropriate
9
9
  describe 'CellsPropertiesApi' do
10
10
  before do
11
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
11
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
12
+ $VERBOSE = nil
12
13
  end
13
14
 
14
15
  after do
@@ -8,7 +8,8 @@ require 'json'
8
8
  # Please update as you see appropriate
9
9
  describe 'CellsRangesApi' do
10
10
  before do
11
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
11
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
12
+ $VERBOSE = nil
12
13
  end
13
14
 
14
15
  after do
@@ -7,7 +7,8 @@ require 'json'
7
7
  # Please update as you see appropriate
8
8
  describe 'CellsSaveAsApi' do
9
9
  before do
10
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
10
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
11
+ $VERBOSE = nil
11
12
  end
12
13
 
13
14
  after do
@@ -37,7 +38,7 @@ describe 'CellsSaveAsApi' do
37
38
  folder = $TEMPFOLDER
38
39
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
39
40
  expect(result.uploaded.size).to be > 0
40
- result = @instance.cells_save_as_post_document_save_as(name, { :save_options=>save_options, :newfilename=>newfilename, :is_auto_fit_rows=>is_auto_fit_rows, :is_auto_fit_columns=>is_auto_fit_columns, :folder=>folder})
41
+ result = @instance.cells_save_as_post_document_save_as(name, { :save_options=>save_options, :newfilename=>(folder+"/"+newfilename), :is_auto_fit_rows=>is_auto_fit_rows, :is_auto_fit_columns=>is_auto_fit_columns, :folder=>folder})
41
42
  expect(result.code).to eql(200)
42
43
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
44
  end
@@ -65,7 +66,7 @@ describe 'CellsSaveAsApi' do
65
66
  folder = $TEMPFOLDER
66
67
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
67
68
  expect(result.uploaded.size).to be > 0
68
- result = @instance.cells_save_as_post_document_save_as(name, { :save_options=>save_options, :newfilename=>newfilename, :is_auto_fit_rows=>is_auto_fit_rows, :is_auto_fit_columns=>is_auto_fit_columns, :folder=>folder})
69
+ result = @instance.cells_save_as_post_document_save_as(name, { :save_options=>save_options, :newfilename=>(folder+"/"+newfilename), :is_auto_fit_rows=>is_auto_fit_rows, :is_auto_fit_columns=>is_auto_fit_columns, :folder=>folder})
69
70
  expect(result.code).to eql(200)
70
71
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
72
  end
@@ -8,7 +8,8 @@ require 'json'
8
8
  # Please update as you see appropriate
9
9
  describe 'CellsShapesApi' do
10
10
  before do
11
- @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,"v3.0")
11
+ @instance = AsposeCellsCloud::CellsApi.new($client_id,$client_secret,$api_version,$baseurl)
12
+ $VERBOSE = nil
12
13
  end
13
14
 
14
15
  after do
@@ -118,7 +119,7 @@ describe 'CellsShapesApi' do
118
119
  folder = $TEMPFOLDER
119
120
  result = @instance.upload_file( folder+"/"+name, ::File.open(File.expand_path("data/"+name),"r") {|io| io.read(io.size) })
120
121
  expect(result.uploaded.size).to be > 0
121
- result = @instance.cells_shapes_put_worksheet_shape(name, sheet_name, drawing_type, upper_left_row, upper_left_column, top, left, width, height, { :folder=>folder})
122
+ result = @instance.cells_shapes_put_worksheet_shape(name, sheet_name,{:drawing_type=> drawing_type, :upper_left_row=>upper_left_row,:upper_left_column=> upper_left_column,:top=> top, :left=>left,:width=>width,:height =>height, :folder=>folder})
122
123
  expect(result.code).to eql(200)
123
124
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
124
125
  end