transloadit 1.2.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.gitignore +3 -1
- data/.travis.yml +4 -4
- data/CHANGELOG.md +26 -0
- data/LICENSE +1 -1
- data/README.md +141 -16
- data/examples/README.md +185 -0
- data/examples/basic/audio-concat-transcoder.rb +40 -0
- data/examples/basic/audio-transcoder.rb +37 -0
- data/examples/basic/image-transcoder.rb +27 -0
- data/examples/basic/main.rb +69 -0
- data/examples/basic/media-transcoder.rb +13 -0
- data/lib/transloadit.rb +31 -0
- data/lib/transloadit/api_model.rb +73 -0
- data/lib/transloadit/assembly.rb +103 -63
- data/lib/transloadit/exception.rb +27 -0
- data/lib/transloadit/request.rb +23 -41
- data/lib/transloadit/response/assembly.rb +25 -0
- data/lib/transloadit/template.rb +63 -0
- data/lib/transloadit/version.rb +1 -1
- data/test/fixtures/cassettes/create_template.yml +48 -0
- data/test/fixtures/cassettes/delete_template.yml +44 -0
- data/test/fixtures/cassettes/fetch_assemblies.yml +44 -0
- data/test/fixtures/cassettes/fetch_assembly_notifications.yml +44 -0
- data/test/fixtures/cassettes/fetch_assembly_ok.yml +36 -0
- data/test/fixtures/cassettes/fetch_billing.yml +44 -0
- data/test/fixtures/cassettes/{fetch_bored.yml → fetch_root.yml} +6 -6
- data/test/fixtures/cassettes/fetch_template.yml +44 -0
- data/test/fixtures/cassettes/fetch_templates.yml +44 -0
- data/test/fixtures/cassettes/rate_limit_fail.yml +105 -0
- data/test/fixtures/cassettes/rate_limit_succeed.yml +79 -0
- data/test/fixtures/cassettes/replay_assembly.yml +49 -0
- data/test/fixtures/cassettes/replay_assembly_notification.yml +48 -0
- data/test/fixtures/cassettes/submit_assembly.yml +1 -36
- data/test/fixtures/cassettes/update_template.yml +48 -0
- data/test/test_helper.rb +4 -0
- data/test/unit/test_transloadit.rb +14 -1
- data/test/unit/transloadit/test_api.rb +50 -0
- data/test/unit/transloadit/test_assembly.rb +178 -47
- data/test/unit/transloadit/test_request.rb +28 -20
- data/test/unit/transloadit/test_response.rb +44 -0
- data/test/unit/transloadit/test_template.rb +118 -0
- data/transloadit.gemspec +3 -3
- metadata +70 -33
@@ -1,26 +1,14 @@
|
|
1
1
|
require 'test_helper'
|
2
2
|
|
3
3
|
describe Transloadit::Request do
|
4
|
-
before do
|
5
|
-
# reset the API endpoint between tests
|
6
|
-
Transloadit::Request.api Transloadit::Request::API_ENDPOINT
|
7
|
-
end
|
8
|
-
|
9
4
|
it 'must allow initialization' do
|
10
5
|
request = Transloadit::Request.new '/'
|
11
6
|
request.must_be_kind_of Transloadit::Request
|
12
7
|
end
|
13
8
|
|
14
|
-
it 'must locate bored instances' do
|
15
|
-
VCR.use_cassette 'fetch_bored' do
|
16
|
-
Transloadit::Request.bored!.
|
17
|
-
wont_equal Transloadit::Request::API_ENDPOINT.host
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
9
|
describe 'when performing a GET' do
|
22
10
|
before do
|
23
|
-
@request = Transloadit::Request.new
|
11
|
+
@request = Transloadit::Request.new '/'
|
24
12
|
end
|
25
13
|
|
26
14
|
it 'must inspect to the API URL' do
|
@@ -28,9 +16,9 @@ describe Transloadit::Request do
|
|
28
16
|
end
|
29
17
|
|
30
18
|
it 'must perform a GET against the resource' do
|
31
|
-
VCR.use_cassette '
|
19
|
+
VCR.use_cassette 'fetch_root' do
|
32
20
|
@request.get(:params => { :foo => 'bar'})['ok'].
|
33
|
-
must_equal '
|
21
|
+
must_equal 'SERVER_ROOT'
|
34
22
|
end
|
35
23
|
end
|
36
24
|
|
@@ -44,9 +32,9 @@ describe Transloadit::Request do
|
|
44
32
|
end
|
45
33
|
|
46
34
|
it 'must perform a GET against the resource' do
|
47
|
-
VCR.use_cassette '
|
35
|
+
VCR.use_cassette 'fetch_root' do
|
48
36
|
@request.get(:params => { :foo => 'bar'})['ok'].
|
49
|
-
must_equal '
|
37
|
+
must_equal 'SERVER_ROOT'
|
50
38
|
end
|
51
39
|
end
|
52
40
|
|
@@ -54,11 +42,9 @@ describe Transloadit::Request do
|
|
54
42
|
end
|
55
43
|
|
56
44
|
describe 'when performing a POST' do
|
57
|
-
|
45
|
+
it 'must perform a POST against the resource' do
|
58
46
|
@request = Transloadit::Request.new('assemblies', 'secret')
|
59
|
-
end
|
60
47
|
|
61
|
-
it 'must perform a POST against the resource' do
|
62
48
|
VCR.use_cassette 'post_assembly' do
|
63
49
|
@request.post(:params => {
|
64
50
|
:auth => { :key => '',
|
@@ -68,4 +54,26 @@ describe Transloadit::Request do
|
|
68
54
|
end
|
69
55
|
end
|
70
56
|
end
|
57
|
+
|
58
|
+
describe 'when performing a PUT' do
|
59
|
+
it 'must perform a PUT against the resource' do
|
60
|
+
@request = Transloadit::Request.new('templates/55c965a063a311e6ba2d379ef10b28f7', 'secret')
|
61
|
+
VCR.use_cassette 'update_template' do
|
62
|
+
@request.put(:params => {
|
63
|
+
:name => 'foo',
|
64
|
+
:template => {:key => 'value'}
|
65
|
+
})['ok'].must_equal 'TEMPLATE_UPDATED'
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
describe 'when performing a DELETE' do
|
71
|
+
it 'must perform a DELETE against the resource' do
|
72
|
+
@request = Transloadit::Request.new('templates/55c965a063a311e6ba2d379ef10b28f7', 'secret')
|
73
|
+
|
74
|
+
VCR.use_cassette 'delete_template' do
|
75
|
+
@request.delete['ok'].must_equal 'TEMPLATE_DELETED'
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
71
79
|
end
|
@@ -76,6 +76,36 @@ describe Transloadit::Response do
|
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
|
+
describe 'long-running assembly' do
|
80
|
+
before do
|
81
|
+
VCR.use_cassette 'fetch_assembly_executing' do
|
82
|
+
@response = Transloadit::Response.new(
|
83
|
+
RestClient::Resource.new(REQUEST_URI).get
|
84
|
+
).extend!(Transloadit::Response::Assembly)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
it 'must allow reloading until finished' do
|
89
|
+
@response.finished?.must_equal false
|
90
|
+
|
91
|
+
VCR.use_cassette 'fetch_assembly_ok' do
|
92
|
+
VCR.use_cassette 'fetch_assembly_executing' do
|
93
|
+
@response.reload_until_finished!
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
@response.finished?.must_equal true
|
98
|
+
end
|
99
|
+
|
100
|
+
it 'must raise exception if reload until finished tries exceeded' do
|
101
|
+
assert_raises Transloadit::Exception::ReloadLimitReached do
|
102
|
+
VCR.use_cassette 'fetch_assembly_executing', :allow_playback_repeats => true do
|
103
|
+
@response.reload_until_finished! tries: 1
|
104
|
+
end
|
105
|
+
end
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
79
109
|
describe 'statuses' do
|
80
110
|
it 'must allow checking for upload' do
|
81
111
|
VCR.use_cassette 'fetch_assembly_uploading' do
|
@@ -101,6 +131,20 @@ describe Transloadit::Response do
|
|
101
131
|
@response.error?.must_equal false
|
102
132
|
end
|
103
133
|
|
134
|
+
it 'must allow to check for replaying' do
|
135
|
+
VCR.use_cassette 'replay_assembly' do
|
136
|
+
@response = Transloadit::Response.new(
|
137
|
+
RestClient::Resource.new(
|
138
|
+
'http://api2.transloadit.com/assemblies/55c965a063a311e6ba2d379ef10b28f7/replay'
|
139
|
+
).post({})
|
140
|
+
).extend!(Transloadit::Response::Assembly)
|
141
|
+
end
|
142
|
+
|
143
|
+
@response.finished?.must_equal false
|
144
|
+
@response.replaying?.must_equal true
|
145
|
+
@response.error?.must_equal false
|
146
|
+
end
|
147
|
+
|
104
148
|
it 'must allow to check for aborted' do
|
105
149
|
VCR.use_cassette 'fetch_assembly_aborted' do
|
106
150
|
@response = Transloadit::Response.new(
|
@@ -0,0 +1,118 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
describe Transloadit::Template do
|
4
|
+
|
5
|
+
it 'must inherit from Transloadit::ApiModel class' do
|
6
|
+
(Transloadit::Template < Transloadit::ApiModel).must_equal true
|
7
|
+
end
|
8
|
+
|
9
|
+
describe 'using template API methods' do
|
10
|
+
include WebMock::API
|
11
|
+
|
12
|
+
before do
|
13
|
+
WebMock.reset!
|
14
|
+
@transloadit = Transloadit.new(:key => '')
|
15
|
+
@template = Transloadit::Template.new @transloadit
|
16
|
+
end
|
17
|
+
|
18
|
+
it 'must allow to create new template' do
|
19
|
+
VCR.use_cassette 'create_template' do
|
20
|
+
response = @template.create(
|
21
|
+
{
|
22
|
+
:name => 'foo',
|
23
|
+
:template => {'key' => 'value'}
|
24
|
+
}
|
25
|
+
)
|
26
|
+
response['ok'].must_equal 'TEMPLATE_CREATED'
|
27
|
+
response['template_name'].must_equal 'foo'
|
28
|
+
response['template_content']['key'].must_equal 'value'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
describe 'when fetching all templates' do
|
33
|
+
|
34
|
+
it 'must perform GET request to /templates' do
|
35
|
+
stub = stub_request(:get, 'api2.transloadit.com/templates?params=%7B%22auth%22:%7B%22key%22:%22%22%7D%7D')
|
36
|
+
@template.list
|
37
|
+
|
38
|
+
assert_requested(stub)
|
39
|
+
end
|
40
|
+
|
41
|
+
it 'must return a list of items' do
|
42
|
+
VCR.use_cassette 'fetch_templates' do
|
43
|
+
response = @template.list
|
44
|
+
|
45
|
+
response['items'].must_equal []
|
46
|
+
response['count'].must_equal 0
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
describe 'when fetching single template' do
|
52
|
+
|
53
|
+
it 'must perform GET request to /templates/[id]' do
|
54
|
+
stub = stub_request(
|
55
|
+
:get,
|
56
|
+
'api2.transloadit.com/templates/76fe5df1c93a0a530f3e583805cf98b4?params=%7B%22auth%22:%7B%22key%22:%22%22%7D%7D'
|
57
|
+
)
|
58
|
+
@template.get '76fe5df1c93a0a530f3e583805cf98b4'
|
59
|
+
|
60
|
+
assert_requested(stub)
|
61
|
+
end
|
62
|
+
|
63
|
+
it 'must get template with specified id' do
|
64
|
+
VCR.use_cassette 'fetch_template' do
|
65
|
+
response = @template.get '76fe5df1c93a0a530f3e583805cf98b4'
|
66
|
+
response['ok'].must_equal 'TEMPLATE_FOUND'
|
67
|
+
response['template_id'].must_equal '76fe5df1c93a0a530f3e583805cf98b4'
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'when updating template' do
|
73
|
+
|
74
|
+
it 'must perform PUT request to templates/[id]' do
|
75
|
+
url = 'api2.transloadit.com/templates/76fe5df1c93a0a530f3e583805cf98b4'
|
76
|
+
stub_request(:put, url)
|
77
|
+
@template.update(
|
78
|
+
'76fe5df1c93a0a530f3e583805cf98b4',
|
79
|
+
{:name => 'foo', :template => {:key => 'value'}}
|
80
|
+
)
|
81
|
+
|
82
|
+
assert_requested(:put, url) do |req|
|
83
|
+
values = values_from_post_body(req.body)
|
84
|
+
data = MultiJson.load(values['params'])
|
85
|
+
data['name'].must_equal 'foo'
|
86
|
+
data['template']['key'].must_equal 'value'
|
87
|
+
end
|
88
|
+
end
|
89
|
+
|
90
|
+
it 'must update template with specified id' do
|
91
|
+
VCR.use_cassette 'update_template' do
|
92
|
+
response = @template.update '55c965a063a311e6ba2d379ef10b28f7'
|
93
|
+
|
94
|
+
response['ok'].must_equal 'TEMPLATE_UPDATED'
|
95
|
+
response['template_id'].must_equal '55c965a063a311e6ba2d379ef10b28f7'
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
describe 'when deleting a template' do
|
101
|
+
|
102
|
+
it 'must perform DELETE request to templates/[id]' do
|
103
|
+
stub = stub_request(:delete, 'api2.transloadit.com/templates/76fe5df1c93a0a530f3e583805cf98b4')
|
104
|
+
@template.delete '76fe5df1c93a0a530f3e583805cf98b4'
|
105
|
+
|
106
|
+
assert_requested(stub)
|
107
|
+
end
|
108
|
+
|
109
|
+
it 'must delete specified template templates' do
|
110
|
+
VCR.use_cassette 'delete_template' do
|
111
|
+
response = @template.delete '55c965a063a311e6ba2d379ef10b28f7'
|
112
|
+
|
113
|
+
response['ok'].must_equal 'TEMPLATE_DELETED'
|
114
|
+
end
|
115
|
+
end
|
116
|
+
end
|
117
|
+
end
|
118
|
+
end
|
data/transloadit.gemspec
CHANGED
@@ -15,8 +15,8 @@ Gem::Specification.new do |gem|
|
|
15
15
|
gem.summary = 'Official Ruby gem for Transloadit'
|
16
16
|
gem.description = 'The transloadit gem allows you to automate uploading files through the Transloadit REST API'
|
17
17
|
|
18
|
-
gem.required_rubygems_version = '>=
|
19
|
-
gem.required_ruby_version = '>= 1.
|
18
|
+
gem.required_rubygems_version = '>= 2.2.0'
|
19
|
+
gem.required_ruby_version = '>= 2.1.0'
|
20
20
|
|
21
21
|
gem.files = `git ls-files`.split("\n")
|
22
22
|
gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
@@ -24,7 +24,7 @@ Gem::Specification.new do |gem|
|
|
24
24
|
|
25
25
|
gem.add_dependency 'rest-client'
|
26
26
|
gem.add_dependency 'multi_json'
|
27
|
-
gem.add_dependency 'mime-types'
|
27
|
+
gem.add_dependency 'mime-types'
|
28
28
|
|
29
29
|
gem.add_development_dependency 'rake'
|
30
30
|
gem.add_development_dependency 'minitest'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: transloadit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stephen Touset
|
@@ -9,146 +9,146 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2016-12-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
requirements:
|
18
|
-
- -
|
18
|
+
- - ">="
|
19
19
|
- !ruby/object:Gem::Version
|
20
20
|
version: '0'
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
|
-
- -
|
25
|
+
- - ">="
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '0'
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: multi_json
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
31
31
|
requirements:
|
32
|
-
- -
|
32
|
+
- - ">="
|
33
33
|
- !ruby/object:Gem::Version
|
34
34
|
version: '0'
|
35
35
|
type: :runtime
|
36
36
|
prerelease: false
|
37
37
|
version_requirements: !ruby/object:Gem::Requirement
|
38
38
|
requirements:
|
39
|
-
- -
|
39
|
+
- - ">="
|
40
40
|
- !ruby/object:Gem::Version
|
41
41
|
version: '0'
|
42
42
|
- !ruby/object:Gem::Dependency
|
43
43
|
name: mime-types
|
44
44
|
requirement: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
|
-
- -
|
46
|
+
- - ">="
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '
|
48
|
+
version: '0'
|
49
49
|
type: :runtime
|
50
50
|
prerelease: false
|
51
51
|
version_requirements: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - ">="
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '
|
55
|
+
version: '0'
|
56
56
|
- !ruby/object:Gem::Dependency
|
57
57
|
name: rake
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ">="
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
type: :development
|
64
64
|
prerelease: false
|
65
65
|
version_requirements: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
|
-
- -
|
67
|
+
- - ">="
|
68
68
|
- !ruby/object:Gem::Version
|
69
69
|
version: '0'
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: minitest
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
|
-
- -
|
74
|
+
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
type: :development
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
|
-
- -
|
81
|
+
- - ">="
|
82
82
|
- !ruby/object:Gem::Version
|
83
83
|
version: '0'
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: simplecov
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
|
-
- -
|
88
|
+
- - ">="
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: '0'
|
91
91
|
type: :development
|
92
92
|
prerelease: false
|
93
93
|
version_requirements: !ruby/object:Gem::Requirement
|
94
94
|
requirements:
|
95
|
-
- -
|
95
|
+
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
97
|
version: '0'
|
98
98
|
- !ruby/object:Gem::Dependency
|
99
99
|
name: vcr
|
100
100
|
requirement: !ruby/object:Gem::Requirement
|
101
101
|
requirements:
|
102
|
-
- -
|
102
|
+
- - ">="
|
103
103
|
- !ruby/object:Gem::Version
|
104
104
|
version: '0'
|
105
105
|
type: :development
|
106
106
|
prerelease: false
|
107
107
|
version_requirements: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- -
|
109
|
+
- - ">="
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
- !ruby/object:Gem::Dependency
|
113
113
|
name: webmock
|
114
114
|
requirement: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- -
|
116
|
+
- - ">="
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
type: :development
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- -
|
123
|
+
- - ">="
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
- !ruby/object:Gem::Dependency
|
127
127
|
name: yard
|
128
128
|
requirement: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- -
|
130
|
+
- - ">="
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '0'
|
133
133
|
type: :development
|
134
134
|
prerelease: false
|
135
135
|
version_requirements: !ruby/object:Gem::Requirement
|
136
136
|
requirements:
|
137
|
-
- -
|
137
|
+
- - ">="
|
138
138
|
- !ruby/object:Gem::Version
|
139
139
|
version: '0'
|
140
140
|
- !ruby/object:Gem::Dependency
|
141
141
|
name: kramdown
|
142
142
|
requirement: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
|
-
- -
|
144
|
+
- - ">="
|
145
145
|
- !ruby/object:Gem::Version
|
146
146
|
version: '0'
|
147
147
|
type: :development
|
148
148
|
prerelease: false
|
149
149
|
version_requirements: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
|
-
- -
|
151
|
+
- - ">="
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '0'
|
154
154
|
description: The transloadit gem allows you to automate uploading files through the
|
@@ -160,35 +160,58 @@ executables: []
|
|
160
160
|
extensions: []
|
161
161
|
extra_rdoc_files: []
|
162
162
|
files:
|
163
|
-
- .gitignore
|
164
|
-
- .travis.yml
|
163
|
+
- ".gitignore"
|
164
|
+
- ".travis.yml"
|
165
165
|
- CHANGELOG.md
|
166
166
|
- Gemfile
|
167
167
|
- LICENSE
|
168
168
|
- README.md
|
169
169
|
- Rakefile
|
170
|
+
- examples/README.md
|
171
|
+
- examples/basic/audio-concat-transcoder.rb
|
172
|
+
- examples/basic/audio-transcoder.rb
|
173
|
+
- examples/basic/image-transcoder.rb
|
174
|
+
- examples/basic/main.rb
|
175
|
+
- examples/basic/media-transcoder.rb
|
170
176
|
- lib/transloadit.rb
|
177
|
+
- lib/transloadit/api_model.rb
|
171
178
|
- lib/transloadit/assembly.rb
|
179
|
+
- lib/transloadit/exception.rb
|
172
180
|
- lib/transloadit/request.rb
|
173
181
|
- lib/transloadit/response.rb
|
174
182
|
- lib/transloadit/response/assembly.rb
|
175
183
|
- lib/transloadit/step.rb
|
184
|
+
- lib/transloadit/template.rb
|
176
185
|
- lib/transloadit/version.rb
|
177
186
|
- test/fixtures/cassettes/cancel_assembly.yml
|
187
|
+
- test/fixtures/cassettes/create_template.yml
|
188
|
+
- test/fixtures/cassettes/delete_template.yml
|
189
|
+
- test/fixtures/cassettes/fetch_assemblies.yml
|
178
190
|
- test/fixtures/cassettes/fetch_assembly_aborted.yml
|
179
191
|
- test/fixtures/cassettes/fetch_assembly_errors.yml
|
180
192
|
- test/fixtures/cassettes/fetch_assembly_executing.yml
|
193
|
+
- test/fixtures/cassettes/fetch_assembly_notifications.yml
|
181
194
|
- test/fixtures/cassettes/fetch_assembly_ok.yml
|
182
195
|
- test/fixtures/cassettes/fetch_assembly_uploading.yml
|
183
|
-
- test/fixtures/cassettes/
|
196
|
+
- test/fixtures/cassettes/fetch_billing.yml
|
197
|
+
- test/fixtures/cassettes/fetch_root.yml
|
198
|
+
- test/fixtures/cassettes/fetch_template.yml
|
199
|
+
- test/fixtures/cassettes/fetch_templates.yml
|
184
200
|
- test/fixtures/cassettes/post_assembly.yml
|
201
|
+
- test/fixtures/cassettes/rate_limit_fail.yml
|
202
|
+
- test/fixtures/cassettes/rate_limit_succeed.yml
|
203
|
+
- test/fixtures/cassettes/replay_assembly.yml
|
204
|
+
- test/fixtures/cassettes/replay_assembly_notification.yml
|
185
205
|
- test/fixtures/cassettes/submit_assembly.yml
|
206
|
+
- test/fixtures/cassettes/update_template.yml
|
186
207
|
- test/test_helper.rb
|
187
208
|
- test/unit/test_transloadit.rb
|
209
|
+
- test/unit/transloadit/test_api.rb
|
188
210
|
- test/unit/transloadit/test_assembly.rb
|
189
211
|
- test/unit/transloadit/test_request.rb
|
190
212
|
- test/unit/transloadit/test_response.rb
|
191
213
|
- test/unit/transloadit/test_step.rb
|
214
|
+
- test/unit/transloadit/test_template.rb
|
192
215
|
- transloadit.gemspec
|
193
216
|
homepage: http://github.com/transloadit/ruby-sdk/
|
194
217
|
licenses:
|
@@ -200,34 +223,48 @@ require_paths:
|
|
200
223
|
- lib
|
201
224
|
required_ruby_version: !ruby/object:Gem::Requirement
|
202
225
|
requirements:
|
203
|
-
- -
|
226
|
+
- - ">="
|
204
227
|
- !ruby/object:Gem::Version
|
205
|
-
version: 1.
|
228
|
+
version: 2.1.0
|
206
229
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
207
230
|
requirements:
|
208
|
-
- -
|
231
|
+
- - ">="
|
209
232
|
- !ruby/object:Gem::Version
|
210
|
-
version:
|
233
|
+
version: 2.2.0
|
211
234
|
requirements: []
|
212
235
|
rubyforge_project:
|
213
|
-
rubygems_version: 2.
|
236
|
+
rubygems_version: 2.2.0
|
214
237
|
signing_key:
|
215
238
|
specification_version: 4
|
216
239
|
summary: Official Ruby gem for Transloadit
|
217
240
|
test_files:
|
218
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
|
219
245
|
- test/fixtures/cassettes/fetch_assembly_aborted.yml
|
220
246
|
- test/fixtures/cassettes/fetch_assembly_errors.yml
|
221
247
|
- test/fixtures/cassettes/fetch_assembly_executing.yml
|
248
|
+
- test/fixtures/cassettes/fetch_assembly_notifications.yml
|
222
249
|
- test/fixtures/cassettes/fetch_assembly_ok.yml
|
223
250
|
- test/fixtures/cassettes/fetch_assembly_uploading.yml
|
224
|
-
- test/fixtures/cassettes/
|
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
|
225
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
|
226
260
|
- test/fixtures/cassettes/submit_assembly.yml
|
261
|
+
- test/fixtures/cassettes/update_template.yml
|
227
262
|
- test/test_helper.rb
|
228
263
|
- test/unit/test_transloadit.rb
|
264
|
+
- test/unit/transloadit/test_api.rb
|
229
265
|
- test/unit/transloadit/test_assembly.rb
|
230
266
|
- test/unit/transloadit/test_request.rb
|
231
267
|
- test/unit/transloadit/test_response.rb
|
232
268
|
- test/unit/transloadit/test_step.rb
|
269
|
+
- test/unit/transloadit/test_template.rb
|
233
270
|
has_rdoc:
|