transloadit 2.0.0 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/ci.yml +23 -0
  3. data/.standard.yml +0 -0
  4. data/CHANGELOG.md +70 -55
  5. data/Gemfile +1 -1
  6. data/README.md +162 -86
  7. data/Rakefile +12 -17
  8. data/examples/README.md +94 -55
  9. data/examples/basic/audio-concat-transcoder.rb +29 -19
  10. data/examples/basic/audio-transcoder.rb +32 -22
  11. data/examples/basic/image-transcoder.rb +22 -17
  12. data/examples/basic/main.rb +31 -37
  13. data/examples/basic/media-transcoder.rb +2 -7
  14. data/lib/transloadit/api_model.rb +13 -13
  15. data/lib/transloadit/assembly.rb +27 -24
  16. data/lib/transloadit/exception.rb +2 -4
  17. data/lib/transloadit/request.rb +58 -52
  18. data/lib/transloadit/response/assembly.rb +14 -13
  19. data/lib/transloadit/response.rb +10 -10
  20. data/lib/transloadit/step.rb +13 -13
  21. data/lib/transloadit/template.rb +5 -5
  22. data/lib/transloadit/version.rb +1 -1
  23. data/lib/transloadit.rb +24 -24
  24. data/test/fixtures/cassettes/cancel_assembly.yml +3 -3
  25. data/test/fixtures/cassettes/create_template.yml +1 -1
  26. data/test/fixtures/cassettes/delete_template.yml +1 -1
  27. data/test/fixtures/cassettes/fetch_assemblies.yml +1 -1
  28. data/test/fixtures/cassettes/fetch_assembly_aborted.yml +3 -3
  29. data/test/fixtures/cassettes/fetch_assembly_errors.yml +3 -3
  30. data/test/fixtures/cassettes/fetch_assembly_executing.yml +3 -3
  31. data/test/fixtures/cassettes/fetch_assembly_notifications.yml +1 -1
  32. data/test/fixtures/cassettes/fetch_assembly_ok.yml +6 -6
  33. data/test/fixtures/cassettes/fetch_assembly_uploading.yml +3 -3
  34. data/test/fixtures/cassettes/fetch_billing.yml +1 -1
  35. data/test/fixtures/cassettes/fetch_root.yml +3 -3
  36. data/test/fixtures/cassettes/fetch_template.yml +1 -1
  37. data/test/fixtures/cassettes/fetch_templates.yml +1 -1
  38. data/test/fixtures/cassettes/post_assembly.yml +2 -2
  39. data/test/fixtures/cassettes/rate_limit_fail.yml +3 -3
  40. data/test/fixtures/cassettes/rate_limit_succeed.yml +4 -4
  41. data/test/fixtures/cassettes/replay_assembly.yml +2 -2
  42. data/test/fixtures/cassettes/replay_assembly_notification.yml +1 -1
  43. data/test/fixtures/cassettes/submit_assembly.yml +3 -3
  44. data/test/fixtures/cassettes/update_template.yml +1 -1
  45. data/test/test_helper.rb +10 -10
  46. data/test/unit/test_transloadit.rb +66 -66
  47. data/test/unit/transloadit/test_api.rb +35 -33
  48. data/test/unit/transloadit/test_assembly.rb +148 -112
  49. data/test/unit/transloadit/test_request.rb +41 -42
  50. data/test/unit/transloadit/test_response.rb +76 -76
  51. data/test/unit/transloadit/test_step.rb +52 -52
  52. data/test/unit/transloadit/test_template.rb +49 -54
  53. data/transloadit.gemspec +25 -26
  54. metadata +25 -41
  55. data/.travis.yml +0 -13
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: transloadit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Touset
8
8
  - Robin Mehner
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-03 00:00:00.000000000 Z
12
+ date: 2024-01-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client
@@ -95,6 +95,20 @@ dependencies:
95
95
  - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: standard
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - ">="
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
98
112
  - !ruby/object:Gem::Dependency
99
113
  name: vcr
100
114
  requirement: !ruby/object:Gem::Requirement
@@ -160,8 +174,9 @@ executables: []
160
174
  extensions: []
161
175
  extra_rdoc_files: []
162
176
  files:
177
+ - ".github/workflows/ci.yml"
163
178
  - ".gitignore"
164
- - ".travis.yml"
179
+ - ".standard.yml"
165
180
  - CHANGELOG.md
166
181
  - Gemfile
167
182
  - LICENSE
@@ -213,11 +228,11 @@ files:
213
228
  - test/unit/transloadit/test_step.rb
214
229
  - test/unit/transloadit/test_template.rb
215
230
  - transloadit.gemspec
216
- homepage: http://github.com/transloadit/ruby-sdk/
231
+ homepage: https://github.com/transloadit/ruby-sdk/
217
232
  licenses:
218
233
  - MIT
219
234
  metadata: {}
220
- post_install_message:
235
+ post_install_message:
221
236
  rdoc_options: []
222
237
  require_paths:
223
238
  - lib
@@ -225,46 +240,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
225
240
  requirements:
226
241
  - - ">="
227
242
  - !ruby/object:Gem::Version
228
- version: 2.1.0
243
+ version: 3.0.0
229
244
  required_rubygems_version: !ruby/object:Gem::Requirement
230
245
  requirements:
231
246
  - - ">="
232
247
  - !ruby/object:Gem::Version
233
248
  version: 2.2.0
234
249
  requirements: []
235
- rubyforge_project:
236
- rubygems_version: 2.2.0
237
- signing_key:
250
+ rubygems_version: 3.5.3
251
+ signing_key:
238
252
  specification_version: 4
239
253
  summary: Official Ruby gem for Transloadit
240
- test_files:
241
- - test/fixtures/cassettes/cancel_assembly.yml
242
- - test/fixtures/cassettes/create_template.yml
243
- - test/fixtures/cassettes/delete_template.yml
244
- - test/fixtures/cassettes/fetch_assemblies.yml
245
- - test/fixtures/cassettes/fetch_assembly_aborted.yml
246
- - test/fixtures/cassettes/fetch_assembly_errors.yml
247
- - test/fixtures/cassettes/fetch_assembly_executing.yml
248
- - test/fixtures/cassettes/fetch_assembly_notifications.yml
249
- - test/fixtures/cassettes/fetch_assembly_ok.yml
250
- - test/fixtures/cassettes/fetch_assembly_uploading.yml
251
- - test/fixtures/cassettes/fetch_billing.yml
252
- - test/fixtures/cassettes/fetch_root.yml
253
- - test/fixtures/cassettes/fetch_template.yml
254
- - test/fixtures/cassettes/fetch_templates.yml
255
- - test/fixtures/cassettes/post_assembly.yml
256
- - test/fixtures/cassettes/rate_limit_fail.yml
257
- - test/fixtures/cassettes/rate_limit_succeed.yml
258
- - test/fixtures/cassettes/replay_assembly.yml
259
- - test/fixtures/cassettes/replay_assembly_notification.yml
260
- - test/fixtures/cassettes/submit_assembly.yml
261
- - test/fixtures/cassettes/update_template.yml
262
- - test/test_helper.rb
263
- - test/unit/test_transloadit.rb
264
- - test/unit/transloadit/test_api.rb
265
- - test/unit/transloadit/test_assembly.rb
266
- - test/unit/transloadit/test_request.rb
267
- - test/unit/transloadit/test_response.rb
268
- - test/unit/transloadit/test_step.rb
269
- - test/unit/transloadit/test_template.rb
270
- has_rdoc:
254
+ test_files: []
data/.travis.yml DELETED
@@ -1,13 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.1.0
5
- - 2.2.0
6
- - 2.3.0
7
- - rbx-2
8
- - jruby-9.0.0.0
9
- script: "COVERAGE=false bundle exec rake test"
10
- matrix:
11
- allow_failures:
12
- - rvm: rbx-2
13
-