slidize_cloud 24.9.0 → 24.10.0

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 (40) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/README.md +118 -0
  4. data/Rakefile +10 -0
  5. data/TestData/macros.pptm +0 -0
  6. data/TestData/master.pptx +0 -0
  7. data/TestData/protected.pptx +0 -0
  8. data/TestData/test.pptx +0 -0
  9. data/TestData/watermark.png +0 -0
  10. data/git_push.sh +57 -0
  11. data/lib/slidize_cloud/api/slidize_api.rb +829 -0
  12. data/lib/slidize_cloud/api_client.rb +451 -0
  13. data/lib/slidize_cloud/api_error.rb +75 -0
  14. data/lib/slidize_cloud/configuration.rb +389 -0
  15. data/lib/slidize_cloud/models/convert_request.rb +238 -0
  16. data/lib/slidize_cloud/models/convert_to_video_request.rb +245 -0
  17. data/lib/slidize_cloud/models/export_format.rb +83 -0
  18. data/lib/slidize_cloud/models/image_watermark_options.rb +247 -0
  19. data/lib/slidize_cloud/models/image_watermark_request.rb +256 -0
  20. data/lib/slidize_cloud/models/merge_options.rb +246 -0
  21. data/lib/slidize_cloud/models/merge_request.rb +247 -0
  22. data/lib/slidize_cloud/models/protect_request.rb +245 -0
  23. data/lib/slidize_cloud/models/protection_options.rb +256 -0
  24. data/lib/slidize_cloud/models/replace_text_options.rb +256 -0
  25. data/lib/slidize_cloud/models/replace_text_request.rb +247 -0
  26. data/lib/slidize_cloud/models/split_options.rb +237 -0
  27. data/lib/slidize_cloud/models/split_request.rb +245 -0
  28. data/lib/slidize_cloud/models/text_watermark_options.rb +277 -0
  29. data/lib/slidize_cloud/models/text_watermark_request.rb +247 -0
  30. data/lib/slidize_cloud/models/unprotect_request.rb +236 -0
  31. data/lib/slidize_cloud/models/video_options.rb +287 -0
  32. data/lib/slidize_cloud/models/video_resolution_type.rb +59 -0
  33. data/lib/slidize_cloud/models/video_transition_type.rb +63 -0
  34. data/lib/slidize_cloud/version.rb +32 -0
  35. data/lib/slidize_cloud.rb +76 -0
  36. data/slidize_cloud.gemspec +56 -0
  37. data/spec/api_client_spec.rb +240 -0
  38. data/spec/configuration_spec.rb +99 -0
  39. data/spec/spec_helper.rb +128 -0
  40. metadata +44 -3
@@ -0,0 +1,240 @@
1
+ =begin
2
+ /**
3
+ * --------------------------------------------------------------------------------------------------------------------
4
+ * <copyright company="Smallize">
5
+ * Copyright (c) 2024 Slidize for Cloud
6
+ * </copyright>
7
+ * <summary>
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ * </summary>
26
+ * --------------------------------------------------------------------------------------------------------------------
27
+ */
28
+ =end
29
+
30
+ require 'spec_helper'
31
+
32
+ describe SlidizeCloud::ApiClient do
33
+ context 'initialization' do
34
+ context 'URL stuff' do
35
+ context 'host' do
36
+ it 'removes http from host' do
37
+ SlidizeCloud.configure { |c| c.host = 'http://example.com' }
38
+ expect(SlidizeCloud::Configuration.default.host).to eq('example.com')
39
+ end
40
+
41
+ it 'removes https from host' do
42
+ SlidizeCloud.configure { |c| c.host = 'https://wookiee.com' }
43
+ expect(SlidizeCloud::ApiClient.default.config.host).to eq('wookiee.com')
44
+ end
45
+
46
+ it 'removes trailing path from host' do
47
+ SlidizeCloud.configure { |c| c.host = 'hobo.com/v4' }
48
+ expect(SlidizeCloud::Configuration.default.host).to eq('hobo.com')
49
+ end
50
+ end
51
+
52
+ context 'base_path' do
53
+ it "prepends a slash to base_path" do
54
+ SlidizeCloud.configure { |c| c.base_path = 'v4/dog' }
55
+ expect(SlidizeCloud::Configuration.default.base_path).to eq('/v4/dog')
56
+ end
57
+
58
+ it "doesn't prepend a slash if one is already there" do
59
+ SlidizeCloud.configure { |c| c.base_path = '/v4/dog' }
60
+ expect(SlidizeCloud::Configuration.default.base_path).to eq('/v4/dog')
61
+ end
62
+
63
+ it "ends up as a blank string if nil" do
64
+ SlidizeCloud.configure { |c| c.base_path = nil }
65
+ expect(SlidizeCloud::Configuration.default.base_path).to eq('')
66
+ end
67
+ end
68
+ end
69
+ end
70
+
71
+
72
+ describe 'proxy in #build_connection' do
73
+ let(:config) { SlidizeCloud::Configuration.new }
74
+ let(:api_client) { SlidizeCloud::ApiClient.new(config) }
75
+ let(:proxy_uri) { URI('http://example.org:8080') }
76
+
77
+ it 'defaults to nil' do
78
+ expect(SlidizeCloud::Configuration.default.proxy).to be_nil
79
+ expect(config.proxy).to be_nil
80
+
81
+ connection = api_client.build_connection
82
+ expect(connection.proxy_for_request('/test')).to be_nil
83
+ end
84
+
85
+ it 'can be customized with a string' do
86
+ config.proxy = proxy_uri.to_s
87
+
88
+ connection = api_client.build_connection
89
+ configured_proxy = connection.proxy_for_request('/test')
90
+
91
+ expect(configured_proxy).not_to be_nil
92
+ expect(configured_proxy.uri.to_s).to eq proxy_uri.to_s
93
+ end
94
+
95
+ it 'can be customized with a hash' do
96
+ config.proxy = { uri: proxy_uri }
97
+
98
+ connection = api_client.build_connection
99
+ configured_proxy = connection.proxy_for_request('/test')
100
+
101
+ expect(configured_proxy).not_to be_nil
102
+ expect(configured_proxy.uri).to eq proxy_uri
103
+ end
104
+ end
105
+
106
+ describe '#deserialize' do
107
+ it "handles Array<Integer>" do
108
+ api_client = SlidizeCloud::ApiClient.new
109
+ headers = { 'Content-Type' => 'application/json' }
110
+ response = double('response', headers: headers, body: '[12, 34]')
111
+ data = api_client.deserialize(response, 'Array<Integer>')
112
+ expect(data).to be_instance_of(Array)
113
+ expect(data).to eq([12, 34])
114
+ end
115
+
116
+ it 'handles Array<Array<Integer>>' do
117
+ api_client = SlidizeCloud::ApiClient.new
118
+ headers = { 'Content-Type' => 'application/json' }
119
+ response = double('response', headers: headers, body: '[[12, 34], [56]]')
120
+ data = api_client.deserialize(response, 'Array<Array<Integer>>')
121
+ expect(data).to be_instance_of(Array)
122
+ expect(data).to eq([[12, 34], [56]])
123
+ end
124
+
125
+ it 'handles Hash<String, String>' do
126
+ api_client = SlidizeCloud::ApiClient.new
127
+ headers = { 'Content-Type' => 'application/json' }
128
+ response = double('response', headers: headers, body: '{"message": "Hello"}')
129
+ data = api_client.deserialize(response, 'Hash<String, String>')
130
+ expect(data).to be_instance_of(Hash)
131
+ expect(data).to eq(:message => 'Hello')
132
+ end
133
+ end
134
+
135
+ describe "#object_to_hash" do
136
+ it 'ignores nils and includes empty arrays' do
137
+ # uncomment below to test object_to_hash for model
138
+ # api_client = SlidizeCloud::ApiClient.new
139
+ # _model = SlidizeCloud::ModelName.new
140
+ # update the model attribute below
141
+ # _model.id = 1
142
+ # update the expected value (hash) below
143
+ # expected = {id: 1, name: '', tags: []}
144
+ # expect(api_client.object_to_hash(_model)).to eq(expected)
145
+ end
146
+ end
147
+
148
+ describe '#build_collection_param' do
149
+ let(:param) { ['aa', 'bb', 'cc'] }
150
+ let(:api_client) { SlidizeCloud::ApiClient.new }
151
+
152
+ it 'works for csv' do
153
+ expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc')
154
+ end
155
+
156
+ it 'works for ssv' do
157
+ expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc')
158
+ end
159
+
160
+ it 'works for tsv' do
161
+ expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc")
162
+ end
163
+
164
+ it 'works for pipes' do
165
+ expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc')
166
+ end
167
+
168
+ it 'works for multi' do
169
+ expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc'])
170
+ end
171
+
172
+ it 'fails for invalid collection format' do
173
+ expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
174
+ end
175
+ end
176
+
177
+ describe '#json_mime?' do
178
+ let(:api_client) { SlidizeCloud::ApiClient.new }
179
+
180
+ it 'works' do
181
+ expect(api_client.json_mime?(nil)).to eq false
182
+ expect(api_client.json_mime?('')).to eq false
183
+
184
+ expect(api_client.json_mime?('application/json')).to eq true
185
+ expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true
186
+ expect(api_client.json_mime?('APPLICATION/JSON')).to eq true
187
+
188
+ expect(api_client.json_mime?('application/xml')).to eq false
189
+ expect(api_client.json_mime?('text/plain')).to eq false
190
+ expect(api_client.json_mime?('application/jsonp')).to eq false
191
+ end
192
+ end
193
+
194
+ describe '#select_header_accept' do
195
+ let(:api_client) { SlidizeCloud::ApiClient.new }
196
+
197
+ it 'works' do
198
+ expect(api_client.select_header_accept(nil)).to be_nil
199
+ expect(api_client.select_header_accept([])).to be_nil
200
+
201
+ expect(api_client.select_header_accept(['application/json'])).to eq('application/json')
202
+ expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
203
+ expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
204
+
205
+ expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml')
206
+ expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml')
207
+ end
208
+ end
209
+
210
+ describe '#select_header_content_type' do
211
+ let(:api_client) { SlidizeCloud::ApiClient.new }
212
+
213
+ it 'works' do
214
+ expect(api_client.select_header_content_type(nil)).to be_nil
215
+ expect(api_client.select_header_content_type([])).to be_nil
216
+
217
+ expect(api_client.select_header_content_type(['application/json'])).to eq('application/json')
218
+ expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8')
219
+ expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON')
220
+ expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml')
221
+ expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain')
222
+ end
223
+ end
224
+
225
+ describe '#sanitize_filename' do
226
+ let(:api_client) { SlidizeCloud::ApiClient.new }
227
+
228
+ it 'works' do
229
+ expect(api_client.sanitize_filename('sun')).to eq('sun')
230
+ expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif')
231
+ expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif')
232
+ expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif')
233
+ expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif')
234
+ expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif')
235
+ expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif')
236
+ expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif')
237
+ expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif')
238
+ end
239
+ end
240
+ end
@@ -0,0 +1,99 @@
1
+ =begin
2
+ /**
3
+ * --------------------------------------------------------------------------------------------------------------------
4
+ * <copyright company="Smallize">
5
+ * Copyright (c) 2024 Slidize for Cloud
6
+ * </copyright>
7
+ * <summary>
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ * </summary>
26
+ * --------------------------------------------------------------------------------------------------------------------
27
+ */
28
+ =end
29
+
30
+ require 'spec_helper'
31
+
32
+ describe SlidizeCloud::Configuration do
33
+ let(:config) { SlidizeCloud::Configuration.default }
34
+
35
+ before(:each) do
36
+ # uncomment below to setup host and base_path
37
+ # require 'URI'
38
+ # uri = URI.parse("https://api.slidize.cloud/v1.0/slides")
39
+ # SlidizeCloud.configure do |c|
40
+ # c.host = uri.host
41
+ # c.base_path = uri.path
42
+ # end
43
+ end
44
+
45
+ describe '#base_url' do
46
+ it 'should have the default value' do
47
+ # uncomment below to test default value of the base path
48
+ # expect(config.base_url).to eq("https://api.slidize.cloud/v1.0/slides")
49
+ end
50
+
51
+ it 'should remove trailing slashes' do
52
+ [nil, '', '/', '//'].each do |base_path|
53
+ config.base_path = base_path
54
+ # uncomment below to test trailing slashes
55
+ # expect(config.base_url).to eq("https://api.slidize.cloud/v1.0/slides")
56
+ end
57
+ end
58
+ end
59
+
60
+ describe '#configure_faraday_connection' do
61
+ let(:faraday_connection) { Faraday::Connection.new }
62
+
63
+ before do
64
+ stub_const('CustomAdapter', Class.new(Faraday::Adapter))
65
+ stub_const('AnotherCustomAdapter', Class.new(Faraday::Adapter))
66
+
67
+ config.configure_faraday_connection do |conn|
68
+ conn.adapter CustomAdapter
69
+ conn.response :logger, nil, headers: true, bodies: true, log_level: :debug do |logger|
70
+ logger.filter(/(Authorization: )(.*)/, '\1[REDACTED]')
71
+ end
72
+ end
73
+ end
74
+
75
+ it 'adds a block that will be used to configure the connection' do
76
+ expect(faraday_connection.adapter).to eq(Faraday::Adapter::NetHttp)
77
+ expect(faraday_connection.builder.handlers).to_not include(Faraday::Response::Logger)
78
+
79
+ config.configure_connection(faraday_connection)
80
+
81
+ expect(faraday_connection.adapter).to eq(CustomAdapter)
82
+ expect(faraday_connection.builder.handlers).to include(Faraday::Response::Logger)
83
+ end
84
+
85
+ it 'supports multiple configuration blocks' do
86
+ config.configure_faraday_connection do |conn|
87
+ conn.adapter AnotherCustomAdapter
88
+ end
89
+
90
+ expect(faraday_connection.adapter).to eq(Faraday::Adapter::NetHttp)
91
+ expect(faraday_connection.builder.handlers).to_not include(Faraday::Response::Logger)
92
+
93
+ config.configure_connection(faraday_connection)
94
+
95
+ expect(faraday_connection.adapter).to eq(AnotherCustomAdapter)
96
+ expect(faraday_connection.builder.handlers).to include(Faraday::Response::Logger)
97
+ end
98
+ end
99
+ end
@@ -0,0 +1,128 @@
1
+ =begin
2
+ /**
3
+ * --------------------------------------------------------------------------------------------------------------------
4
+ * <copyright company="Smallize">
5
+ * Copyright (c) 2024 Slidize for Cloud
6
+ * </copyright>
7
+ * <summary>
8
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
9
+ * of this software and associated documentation files (the "Software"), to deal
10
+ * in the Software without restriction, including without limitation the rights
11
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12
+ * copies of the Software, and to permit persons to whom the Software is
13
+ * furnished to do so, subject to the following conditions:
14
+ *
15
+ * The above copyright notice and this permission notice shall be included in all
16
+ * copies or substantial portions of the Software.
17
+ *
18
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24
+ * SOFTWARE.
25
+ * </summary>
26
+ * --------------------------------------------------------------------------------------------------------------------
27
+ */
28
+ =end
29
+
30
+ # load the gem
31
+ require 'slidize_cloud'
32
+
33
+ # The following was generated by the `rspec --init` command. Conventionally, all
34
+ # specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
35
+ # The generated `.rspec` file contains `--require spec_helper` which will cause
36
+ # this file to always be loaded, without a need to explicitly require it in any
37
+ # files.
38
+ #
39
+ # Given that it is always loaded, you are encouraged to keep this file as
40
+ # light-weight as possible. Requiring heavyweight dependencies from this file
41
+ # will add to the boot time of your test suite on EVERY test run, even for an
42
+ # individual file that may not need all of that loaded. Instead, consider making
43
+ # a separate helper file that requires the additional dependencies and performs
44
+ # the additional setup, and require it from the spec files that actually need
45
+ # it.
46
+ #
47
+ # The `.rspec` file also contains a few flags that are not defaults but that
48
+ # users commonly want.
49
+ #
50
+ # See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
51
+ RSpec.configure do |config|
52
+ # rspec-expectations config goes here. You can use an alternate
53
+ # assertion/expectation library such as wrong or the stdlib/minitest
54
+ # assertions if you prefer.
55
+ config.expect_with :rspec do |expectations|
56
+ # This option will default to `true` in RSpec 4. It makes the `description`
57
+ # and `failure_message` of custom matchers include text for helper methods
58
+ # defined using `chain`, e.g.:
59
+ # be_bigger_than(2).and_smaller_than(4).description
60
+ # # => "be bigger than 2 and smaller than 4"
61
+ # ...rather than:
62
+ # # => "be bigger than 2"
63
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
64
+ end
65
+
66
+ # rspec-mocks config goes here. You can use an alternate test double
67
+ # library (such as bogus or mocha) by changing the `mock_with` option here.
68
+ config.mock_with :rspec do |mocks|
69
+ # Prevents you from mocking or stubbing a method that does not exist on
70
+ # a real object. This is generally recommended, and will default to
71
+ # `true` in RSpec 4.
72
+ mocks.verify_partial_doubles = true
73
+ end
74
+
75
+ # The settings below are suggested to provide a good initial experience
76
+ # with RSpec, but feel free to customize to your heart's content.
77
+ =begin
78
+ # These two settings work together to allow you to limit a spec run
79
+ # to individual examples or groups you care about by tagging them with
80
+ # `:focus` metadata. When nothing is tagged with `:focus`, all examples
81
+ # get run.
82
+ config.filter_run :focus
83
+ config.run_all_when_everything_filtered = true
84
+
85
+ # Allows RSpec to persist some state between runs in order to support
86
+ # the `--only-failures` and `--next-failure` CLI options. We recommend
87
+ # you configure your source control system to ignore this file.
88
+ config.example_status_persistence_file_path = "spec/examples.txt"
89
+
90
+ # Limits the available syntax to the non-monkey patched syntax that is
91
+ # recommended. For more details, see:
92
+ # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/
93
+ # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
94
+ # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode
95
+ config.disable_monkey_patching!
96
+
97
+ # This setting enables warnings. It's recommended, but in some cases may
98
+ # be too noisy due to issues in dependencies.
99
+ config.warnings = true
100
+
101
+ # Many RSpec users commonly either run the entire suite or an individual
102
+ # file, and it's useful to allow more verbose output when running an
103
+ # individual spec file.
104
+ if config.files_to_run.one?
105
+ # Use the documentation formatter for detailed output,
106
+ # unless a formatter has already been configured
107
+ # (e.g. via a command-line flag).
108
+ config.default_formatter = 'doc'
109
+ end
110
+
111
+ # Print the 10 slowest examples and example groups at the
112
+ # end of the spec run, to help surface which specs are running
113
+ # particularly slow.
114
+ config.profile_examples = 10
115
+
116
+ # Run specs in random order to surface order dependencies. If you find an
117
+ # order dependency and want to debug it, you can fix the order by providing
118
+ # the seed, which is printed after each run.
119
+ # --seed 1234
120
+ config.order = :random
121
+
122
+ # Seed global randomization in this process using the `--seed` CLI option.
123
+ # Setting this allows you to use `--seed` to deterministically reproduce
124
+ # test failures related to randomization by passing the same `--seed` value
125
+ # as the one that triggered the failure.
126
+ Kernel.srand config.seed
127
+ =end
128
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slidize_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 24.9.0
4
+ version: 24.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Slidize.Cloud Team
@@ -70,7 +70,45 @@ email:
70
70
  executables: []
71
71
  extensions: []
72
72
  extra_rdoc_files: []
73
- files: []
73
+ files:
74
+ - Gemfile
75
+ - README.md
76
+ - Rakefile
77
+ - TestData/macros.pptm
78
+ - TestData/master.pptx
79
+ - TestData/protected.pptx
80
+ - TestData/test.pptx
81
+ - TestData/watermark.png
82
+ - git_push.sh
83
+ - lib/slidize_cloud.rb
84
+ - lib/slidize_cloud/api/slidize_api.rb
85
+ - lib/slidize_cloud/api_client.rb
86
+ - lib/slidize_cloud/api_error.rb
87
+ - lib/slidize_cloud/configuration.rb
88
+ - lib/slidize_cloud/models/convert_request.rb
89
+ - lib/slidize_cloud/models/convert_to_video_request.rb
90
+ - lib/slidize_cloud/models/export_format.rb
91
+ - lib/slidize_cloud/models/image_watermark_options.rb
92
+ - lib/slidize_cloud/models/image_watermark_request.rb
93
+ - lib/slidize_cloud/models/merge_options.rb
94
+ - lib/slidize_cloud/models/merge_request.rb
95
+ - lib/slidize_cloud/models/protect_request.rb
96
+ - lib/slidize_cloud/models/protection_options.rb
97
+ - lib/slidize_cloud/models/replace_text_options.rb
98
+ - lib/slidize_cloud/models/replace_text_request.rb
99
+ - lib/slidize_cloud/models/split_options.rb
100
+ - lib/slidize_cloud/models/split_request.rb
101
+ - lib/slidize_cloud/models/text_watermark_options.rb
102
+ - lib/slidize_cloud/models/text_watermark_request.rb
103
+ - lib/slidize_cloud/models/unprotect_request.rb
104
+ - lib/slidize_cloud/models/video_options.rb
105
+ - lib/slidize_cloud/models/video_resolution_type.rb
106
+ - lib/slidize_cloud/models/video_transition_type.rb
107
+ - lib/slidize_cloud/version.rb
108
+ - slidize_cloud.gemspec
109
+ - spec/api_client_spec.rb
110
+ - spec/configuration_spec.rb
111
+ - spec/spec_helper.rb
74
112
  homepage: https://github.com/slidize-cloud/slidize-cloud-ruby
75
113
  licenses:
76
114
  - MIT
@@ -94,4 +132,7 @@ rubygems_version: 3.4.10
94
132
  signing_key:
95
133
  specification_version: 4
96
134
  summary: Slidize.Cloud Web API References Ruby Gem
97
- test_files: []
135
+ test_files:
136
+ - spec/api_client_spec.rb
137
+ - spec/configuration_spec.rb
138
+ - spec/spec_helper.rb