asposecloud 1.0.0 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data/README.md +31 -9
  2. data/Tests/Barcode/builder_tests.rb +95 -0
  3. data/Tests/Barcode/reader_tests.rb +70 -0
  4. data/Tests/Cells/charteditor_tests.rb +139 -0
  5. data/Tests/Cells/converter_tests.rb +83 -0
  6. data/Tests/Cells/extractor_tests.rb +40 -0
  7. data/Tests/Cells/texteditor_tests.rb +52 -0
  8. data/Tests/Cells/workbook_tests.rb +167 -0
  9. data/Tests/Cells/worksheet_tests.rb +435 -0
  10. data/Tests/Data/barcodeQR.bmp +0 -0
  11. data/Tests/Data/barcodeQR.jpg +0 -0
  12. data/Tests/Data/barcodeQR.tiff +0 -0
  13. data/Tests/Data/bizcard.psd +0 -0
  14. data/Tests/Data/macbook.gif +0 -0
  15. data/Tests/Data/mail_merge_regions.docx +0 -0
  16. data/Tests/Data/mail_merge_template.docx +0 -0
  17. data/Tests/Data/test_cells.xlsx +0 -0
  18. data/Tests/Data/test_multi_pages.docx +0 -0
  19. data/Tests/Data/test_slides.pptx +0 -0
  20. data/Tests/Email/converter_tests.rb +30 -0
  21. data/Tests/Email/document_tests.rb +55 -0
  22. data/Tests/Imaging/converter_tests.rb +32 -0
  23. data/Tests/Imaging/document_tests.rb +132 -0
  24. data/Tests/Imaging/extractor_tests.rb +67 -0
  25. data/Tests/Imaging/image_tests.rb +55 -0
  26. data/Tests/Ocr/extractor_tests.rb +34 -0
  27. data/Tests/Pdf/annotationeditor_tests.rb +128 -0
  28. data/Tests/Pdf/converter_tests.rb +74 -0
  29. data/Tests/Pdf/document_tests.rb +285 -0
  30. data/Tests/Pdf/extractor_tests.rb +37 -0
  31. data/Tests/Pdf/texteditor_tests.rb +84 -0
  32. data/Tests/Slides/converter_tests.rb +59 -0
  33. data/Tests/Slides/document_tests.rb +187 -0
  34. data/Tests/Slides/extractor_tests.rb +92 -0
  35. data/Tests/Storage/folder_tests.rb +64 -0
  36. data/Tests/Tasks/assignments_tests.rb +44 -0
  37. data/Tests/Tasks/calendar_tests.rb +45 -0
  38. data/Tests/Tasks/converter_tests.rb +32 -0
  39. data/Tests/Tasks/document_tests.rb +114 -0
  40. data/Tests/Tasks/resources_tests.rb +44 -0
  41. data/Tests/Words/builder_tests.rb +56 -0
  42. data/Tests/Words/converter_tests.rb +54 -0
  43. data/Tests/Words/document_tests.rb +208 -0
  44. data/Tests/Words/extractor_tests.rb +120 -0
  45. data/Tests/Words/mail_merge_tests.rb +120 -0
  46. data/Tests/setup.json +6 -0
  47. data/lib/Barcode/builder.rb +270 -20
  48. data/lib/Barcode/reader.rb +112 -18
  49. data/lib/Cells/chart_editor.rb +102 -0
  50. data/lib/Cells/convertor.rb +22 -2
  51. data/lib/Cells/text_editor.rb +8 -2
  52. data/lib/Cells/workbook.rb +63 -3
  53. data/lib/Cells/worksheet.rb +479 -10
  54. data/lib/Common/utils.rb +2 -0
  55. data/lib/Email/converter.rb +2 -18
  56. data/lib/Email/document.rb +32 -17
  57. data/lib/Ocr/extractor.rb +26 -20
  58. data/lib/Pdf/annotation_editor.rb +0 -17
  59. data/lib/Pdf/converter.rb +25 -17
  60. data/lib/Pdf/document.rb +167 -23
  61. data/lib/Pdf/extractor.rb +0 -17
  62. data/lib/Pdf/text_editor.rb +35 -20
  63. data/lib/Slides/converter.rb +48 -18
  64. data/lib/Slides/document.rb +186 -51
  65. data/lib/Slides/extractor.rb +35 -18
  66. data/lib/Storage/folder.rb +30 -25
  67. data/lib/Words/builder.rb +23 -29
  68. data/lib/Words/converter.rb +30 -17
  69. data/lib/Words/document.rb +336 -28
  70. data/lib/Words/extractor.rb +112 -33
  71. data/lib/Words/mail_merge.rb +2 -20
  72. data/{Tests/word_tests.rb → lib/aspose_imaging.rb} +5 -17
  73. data/lib/asposecloud.rb +3 -1
  74. data/lib/asposecloud/version.rb +1 -1
  75. data/lib/imaging/converter.rb +55 -0
  76. data/lib/imaging/document.rb +301 -0
  77. data/lib/imaging/extractor.rb +165 -0
  78. data/lib/imaging/image.rb +118 -0
  79. data/lib/restclient.rb +36 -0
  80. data/lib/tasks/assignments.rb +19 -19
  81. data/lib/tasks/calendar.rb +27 -19
  82. data/lib/tasks/converter.rb +4 -17
  83. data/lib/tasks/document.rb +79 -22
  84. data/lib/tasks/resources.rb +18 -18
  85. metadata +70 -19
  86. checksums.yaml +0 -7
  87. data/Tests/barcode_tests.rb +0 -45
  88. data/Tests/cell_tests.rb +0 -41
  89. data/Tests/email_tests.rb +0 -43
  90. data/Tests/pdf_tests.rb +0 -76
  91. data/Tests/slide_tests.rb +0 -41
  92. data/Tests/storage_tests.rb +0 -86
  93. data/Tests/tasks_tests.rb +0 -24
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: f9c133e2c8da16e74c0aef9b3673f3958c2b77d0
4
- data.tar.gz: 68cc23993b6dff4676fb7a489ae95c11e49c16e7
5
- SHA512:
6
- metadata.gz: 6b91f328999823bd2448bd456a94291fca077bd646c4a9088534bd364661a77b5de8660f623f3ecfd3ad701f924fb1dbb18c283ca1b4842407f869949908fb60
7
- data.tar.gz: 0b01b13b67c45987ca4c2c73931d94a70736081ab9d39c4366e1cb704ac3d96db343a5035ef96f71e7e73044e3a0e56af17c8c0bfd28552c4b21c97ea9803233
@@ -1,45 +0,0 @@
1
- # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
- #
3
- # LICENSE: This program is free software; you can redistribute it and/or
4
- # modify it under the terms of the GNU General Public License
5
- # as published by the Free Software Foundation; either version 3
6
- # of the License, or (at your option) any later version.
7
- # This program is distributed in the hope that it will be useful,
8
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- # GNU General Public License for more details.
11
- # You should have received a copy of the GNU General Public License
12
- # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
- #
14
- # @package Aspose_Cloud_SDK_For_Ruby
15
- # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
- # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
-
18
- require 'test/unit'
19
- require_relative '../lib/asposecloud'
20
-
21
- class BarcodeTests < Test::Unit::TestCase
22
- def test_save_barcode
23
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
24
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
25
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
26
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
27
-
28
- # Create object of barcode builder class
29
- builder = Aspose::Cloud::Barcode::Builder.new
30
- builder.save('Text to generate barcode','QR','png')
31
- assert_equal true, File.exist?('./Output/barcodeQR.png')
32
- end
33
-
34
- def test_read_barcode_local
35
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
36
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
37
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
38
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
39
-
40
- # Create object of barcode reader class
41
- reader = Aspose::Cloud::Barcode::Reader.new('storage_file_name.png')
42
- response = reader.read_from_local_image('./Data/barcodeQR.png')
43
- assert_instance_of Array, response
44
- end
45
- end
@@ -1,41 +0,0 @@
1
- # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
- #
3
- # LICENSE: This program is free software; you can redistribute it and/or
4
- # modify it under the terms of the GNU General Public License
5
- # as published by the Free Software Foundation; either version 3
6
- # of the License, or (at your option) any later version.
7
- # This program is distributed in the hope that it will be useful,
8
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- # GNU General Public License for more details.
11
- # You should have received a copy of the GNU General Public License
12
- # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
- #
14
- # @package Aspose_Cloud_SDK_For_Ruby
15
- # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
- # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
-
18
- require 'test/unit'
19
- require_relative '../lib/asposecloud'
20
-
21
- class CellTests < Test::Unit::TestCase
22
- def test_convert_storage_file
23
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
24
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
25
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
26
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
27
-
28
- # Create Object of folder class
29
- folder = Aspose::Cloud::AsposeStorage::Folder.new
30
- response = folder.upload_file './Data/test_convert_cell.xlsx'
31
- assert_equal true, response
32
-
33
- # Create object of cell converter class
34
- converter = Aspose::Cloud::Cells::Converter.new('test_convert_cell.xlsx')
35
- assert_nothing_thrown 'Error' do
36
- converter.convert('./Output/converted_file.tiff','tiff')
37
- end
38
-
39
- assert_equal true, File.exist?('./Output/converted_file.tiff')
40
- end
41
- end
@@ -1,43 +0,0 @@
1
- # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
- #
3
- # LICENSE: This program is free software; you can redistribute it and/or
4
- # modify it under the terms of the GNU General Public License
5
- # as published by the Free Software Foundation; either version 3
6
- # of the License, or (at your option) any later version.
7
- # This program is distributed in the hope that it will be useful,
8
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- # GNU General Public License for more details.
11
- # You should have received a copy of the GNU General Public License
12
- # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
- #
14
- # @package Aspose_Cloud_SDK_For_Ruby
15
- # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
- # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
-
18
- require 'test/unit'
19
- require_relative '../lib/asposecloud'
20
-
21
- class EmailTests < Test::Unit::TestCase
22
-
23
- def test_convert_storage_file
24
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
25
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
26
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
27
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
28
-
29
- # Create Object of folder class
30
- folder = Aspose::Cloud::AsposeStorage::Folder.new
31
- response = folder.upload_file './Data/email_test.eml'
32
- assert_equal true, response
33
-
34
- # Create object of pdf converter class
35
- converter = Aspose::Cloud::Email::Converter.new('email_test.eml')
36
- assert_nothing_thrown 'Error' do
37
- converter.convert('msg')
38
- end
39
-
40
- assert_equal true, File.exist?('./Output/email_test.msg')
41
- end
42
-
43
- end
@@ -1,76 +0,0 @@
1
- # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
- #
3
- # LICENSE: This program is free software; you can redistribute it and/or
4
- # modify it under the terms of the GNU General Public License
5
- # as published by the Free Software Foundation; either version 3
6
- # of the License, or (at your option) any later version.
7
- # This program is distributed in the hope that it will be useful,
8
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- # GNU General Public License for more details.
11
- # You should have received a copy of the GNU General Public License
12
- # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
- #
14
- # @package Aspose_Cloud_SDK_For_Ruby
15
- # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
- # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
-
18
- require 'test/unit'
19
- require_relative '../lib/asposecloud'
20
-
21
- class PdfTests < Test::Unit::TestCase
22
-
23
- def test_convert_local_file
24
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
25
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
26
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
27
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
28
-
29
- # Create object of pdf converter class
30
- converter = Aspose::Cloud::Pdf::Converter.new('file_on_storage.pdf')
31
-
32
- converter.convert_local_file('./Data/test_convertlocal.pdf','./Output/converted_file.doc','doc')
33
- assert_equal true, File.exist?('./Output/converted_file.doc')
34
- end
35
-
36
- def test_convert_storage_file
37
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
38
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
39
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
40
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
41
-
42
- # Create Object of folder class
43
- folder = Aspose::Cloud::AsposeStorage::Folder.new
44
- response = folder.upload_file './Data/test_file_on_storage.pdf'
45
- assert_equal true, response
46
-
47
- # Create object of pdf converter class
48
- converter = Aspose::Cloud::Pdf::Converter.new('test_file_on_storage.pdf')
49
- assert_nothing_thrown 'Error' do
50
- converter.convert('doc')
51
- end
52
-
53
- assert_equal true, File.exist?('./Output/test_file_on_storage.doc')
54
- end
55
-
56
- def test_replace_text
57
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
58
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
59
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
60
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
61
-
62
- # Create Object of folder class
63
- folder = Aspose::Cloud::AsposeStorage::Folder.new
64
- response = folder.upload_file './Data/test_replace_text.pdf'
65
- assert_equal true, response
66
-
67
- # Create object of pdf text editor class
68
- editor = Aspose::Cloud::Pdf::TextEditor.new('test_replace_text.pdf')
69
- assert_nothing_thrown 'Error' do
70
- response = editor.replace_text 'Kevin', 'Nick', false, 1
71
- end
72
-
73
- assert_equal true, response
74
- end
75
-
76
- end
@@ -1,41 +0,0 @@
1
- # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
- #
3
- # LICENSE: This program is free software; you can redistribute it and/or
4
- # modify it under the terms of the GNU General Public License
5
- # as published by the Free Software Foundation; either version 3
6
- # of the License, or (at your option) any later version.
7
- # This program is distributed in the hope that it will be useful,
8
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- # GNU General Public License for more details.
11
- # You should have received a copy of the GNU General Public License
12
- # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
- #
14
- # @package Aspose_Cloud_SDK_For_Ruby
15
- # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
- # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
-
18
- require 'test/unit'
19
- require_relative '../lib/asposecloud'
20
-
21
- class SlideTests < Test::Unit::TestCase
22
- def test_convert_slide
23
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
24
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
25
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
26
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
27
-
28
- # Create Object of folder class
29
- folder = Aspose::Cloud::AsposeStorage::Folder.new
30
- response = folder.upload_file './Data/test_convert_slide.pptx'
31
- assert_equal true, response
32
-
33
- # Create object of slides converter class
34
- slides_converter = Aspose::Cloud::Slides::Converter.new('test_convert_slide.pptx')
35
- assert_nothing_thrown 'Error' do
36
- slides_converter.convert(1,'png')
37
- end
38
-
39
- assert_equal true, File.exist?('./Output/test_convert_slide.png')
40
- end
41
- end
@@ -1,86 +0,0 @@
1
- # Copyright (c) Aspose 2002-2014. All Rights Reserved.
2
- #
3
- # LICENSE: This program is free software; you can redistribute it and/or
4
- # modify it under the terms of the GNU General Public License
5
- # as published by the Free Software Foundation; either version 3
6
- # of the License, or (at your option) any later version.
7
- # This program is distributed in the hope that it will be useful,
8
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
9
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
- # GNU General Public License for more details.
11
- # You should have received a copy of the GNU General Public License
12
- # along with this program. If not, see <http://opensource.org/licenses/gpl-3.0.html>;.
13
- #
14
- # @package Aspose_Cloud_SDK_For_Ruby
15
- # @author Assad Mahmood Qazi <assad.mahmood@aspose.com>
16
- # @link https://github.com/asposeforcloud/Aspose_Cloud_SDK_For_Ruby/tree/revamp
17
-
18
- require 'test/unit'
19
- require_relative '../lib/asposecloud'
20
-
21
- class StorageTests < Test::Unit::TestCase
22
-
23
- def test_get_files
24
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
25
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
26
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
27
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
28
-
29
- # Create object of folder class
30
- folder = Aspose::Cloud::AsposeStorage::Folder.new
31
-
32
- response = folder.get_files
33
- assert_instance_of(Array,response)
34
- end
35
-
36
- def test_file_exists
37
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
38
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
39
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
40
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
41
-
42
- # Create object of folder class
43
- folder = Aspose::Cloud::AsposeStorage::Folder.new
44
- assert_nothing_thrown 'Error' do
45
- folder.file_exists('testfile.jpeg')
46
- end
47
- end
48
-
49
- def test_create_folder
50
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
51
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
52
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
53
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
54
-
55
- # Create object of folder class
56
- folder = Aspose::Cloud::AsposeStorage::Folder.new
57
- response = folder.create_folder('testing123')
58
- assert_equal true, response
59
- end
60
-
61
- def test_upload_file
62
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
63
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
64
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
65
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
66
-
67
- # Create object of folder class
68
- folder = Aspose::Cloud::AsposeStorage::Folder.new
69
- response = folder.upload_file './Data/test_uploadfile.docx'
70
- assert_equal true, response
71
- end
72
-
73
- def test_get_file
74
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
75
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
76
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
77
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
78
-
79
- # Create object of folder class
80
- folder = Aspose::Cloud::AsposeStorage::Folder.new
81
- response = folder.get_file 'testfile.jpeg'
82
- Aspose::Cloud::Common::Utils.save_file response, Aspose::Cloud::Common::AsposeApp.output_location + 'testfile.jpeg'
83
- assert_equal true, File.exist?(Aspose::Cloud::Common::AsposeApp.output_location + 'testfile.jpeg')
84
- end
85
-
86
- end
@@ -1,24 +0,0 @@
1
- require 'test/unit'
2
- require_relative '../lib/asposecloud'
3
-
4
- class TasksTests < Test::Unit::TestCase
5
- def test_convert_storage_file
6
- Aspose::Cloud::Common::AsposeApp.app_key = '8356c76c7412f32bb85ae7472e842da4'
7
- Aspose::Cloud::Common::AsposeApp.app_sid = '8EB6E644-4A40-4B50-8012-135D1F8F7513'
8
- Aspose::Cloud::Common::AsposeApp.output_location = './Output/'
9
- Aspose::Cloud::Common::Product.set_base_product_uri('http://test.aspose.com/v1.1')
10
-
11
- # Create Object of folder class
12
- folder = Aspose::Cloud::AsposeStorage::Folder.new
13
- response = folder.upload_file './Data/test_tasks.mpp'
14
- assert_equal true, response
15
-
16
- # Create object of pdf converter class
17
- converter = Aspose::Cloud::Tasks::Converter.new('test_tasks.mpp')
18
- assert_nothing_thrown 'Error' do
19
- converter.convert('pdf')
20
- end
21
-
22
- assert_equal true, File.exist?('./Output/test_tasks.pdf')
23
- end
24
- end