miniphonic 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +23 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +34 -0
- data/LICENSE +20 -0
- data/README.md +145 -0
- data/Rakefile +19 -0
- data/lib/miniphonic/api_object.rb +96 -0
- data/lib/miniphonic/helpers.rb +51 -0
- data/lib/miniphonic/info.rb +68 -0
- data/lib/miniphonic/preset.rb +17 -0
- data/lib/miniphonic/preset_attributes.rb +53 -0
- data/lib/miniphonic/production.rb +33 -0
- data/lib/miniphonic/production_attributes.rb +66 -0
- data/lib/miniphonic/response.rb +5 -0
- data/lib/miniphonic/version.rb +3 -0
- data/lib/miniphonic.rb +40 -0
- data/miniphonic.gemspec +29 -0
- data/test/spec/api_object_spec.rb +164 -0
- data/test/spec/cassettes/info/algorithms.yml +170 -0
- data/test/spec/cassettes/info/info.yml +740 -0
- data/test/spec/cassettes/info/output_files.yml +343 -0
- data/test/spec/cassettes/info/service_types.yml +263 -0
- data/test/spec/cassettes/info/services.yml +125 -0
- data/test/spec/cassettes/info/status_codes.yml +70 -0
- data/test/spec/cassettes/info/user_info.yml +63 -0
- data/test/spec/cassettes/preset/all.yml +795 -0
- data/test/spec/cassettes/preset/create.yml +97 -0
- data/test/spec/cassettes/preset/delete.yml +142 -0
- data/test/spec/cassettes/preset/upload_cover.yml +484 -0
- data/test/spec/cassettes/production/all.yml +6764 -0
- data/test/spec/cassettes/production/create.yml +118 -0
- data/test/spec/cassettes/production/delete.yml +163 -0
- data/test/spec/cassettes/production/start.yml +164 -0
- data/test/spec/cassettes/production/upload_audio.yml +20047 -0
- data/test/spec/cassettes/production/upload_audio_from_service.yml +233 -0
- data/test/spec/cassettes/production/upload_cover.yml +526 -0
- data/test/spec/data/test.jpg +0 -0
- data/test/spec/data/test.m4a +0 -0
- data/test/spec/helper.rb +32 -0
- data/test/spec/info_spec.rb +137 -0
- data/test/spec/preset_spec.rb +115 -0
- data/test/spec/production_spec.rb +181 -0
- metadata +223 -0
@@ -0,0 +1,233 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: https://auphonic.com/api/productions.json
|
6
|
+
body:
|
7
|
+
encoding: UTF-8
|
8
|
+
string: '{}'
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.8
|
12
|
+
Authorization:
|
13
|
+
- Basic c2lybWFyY2VsOm5hYy1kaWQtY2lkLXlvZC1qYS1zaGxlai15dWwteQ==
|
14
|
+
Content-Type:
|
15
|
+
- application/json
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message:
|
20
|
+
headers:
|
21
|
+
server:
|
22
|
+
- nginx/1.2.0
|
23
|
+
date:
|
24
|
+
- Fri, 18 Oct 2013 22:59:08 GMT
|
25
|
+
content-type:
|
26
|
+
- application/json; charset=utf-8
|
27
|
+
transfer-encoding:
|
28
|
+
- chunked
|
29
|
+
connection:
|
30
|
+
- close
|
31
|
+
cache-control:
|
32
|
+
- max-age=0
|
33
|
+
vary:
|
34
|
+
- Authorization
|
35
|
+
expires:
|
36
|
+
- Fri, 18 Oct 2013 22:59:08 GMT
|
37
|
+
last-modified:
|
38
|
+
- Fri, 18 Oct 2013 22:59:08 GMT
|
39
|
+
access-control-allow-origin:
|
40
|
+
- '*'
|
41
|
+
access-control-allow-credentials:
|
42
|
+
- 'true'
|
43
|
+
access-control-allow-headers:
|
44
|
+
- Authorization,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type
|
45
|
+
body:
|
46
|
+
encoding: UTF-8
|
47
|
+
string: |-
|
48
|
+
{
|
49
|
+
"status_code": 200,
|
50
|
+
"form_errors": {},
|
51
|
+
"error_code": null,
|
52
|
+
"error_message": "",
|
53
|
+
"data": {
|
54
|
+
"status_string": "Incomplete Form",
|
55
|
+
"image": null,
|
56
|
+
"creation_time": "2013-10-18T22:59:07.840Z",
|
57
|
+
"chapters": [],
|
58
|
+
"edit_page": "https://auphonic.com/engine/upload/edit/xcfFnhD36Tg2KoBy7pHPRU",
|
59
|
+
"channels": null,
|
60
|
+
"warning_message": "",
|
61
|
+
"samplerate": null,
|
62
|
+
"output_files": [],
|
63
|
+
"uuid": "xcfFnhD36Tg2KoBy7pHPRU",
|
64
|
+
"service": null,
|
65
|
+
"warning_status": null,
|
66
|
+
"has_video": false,
|
67
|
+
"error_status": null,
|
68
|
+
"thumbnail": null,
|
69
|
+
"metadata": {
|
70
|
+
"album": "",
|
71
|
+
"publisher": "",
|
72
|
+
"subtitle": "",
|
73
|
+
"license": "",
|
74
|
+
"artist": "",
|
75
|
+
"track": "",
|
76
|
+
"title": "",
|
77
|
+
"summary": "",
|
78
|
+
"append_chapters": false,
|
79
|
+
"url": "",
|
80
|
+
"license_url": "",
|
81
|
+
"location": {
|
82
|
+
"latitude": null,
|
83
|
+
"longitude": null
|
84
|
+
},
|
85
|
+
"year": "",
|
86
|
+
"genre": "",
|
87
|
+
"tags": [
|
88
|
+
""
|
89
|
+
]
|
90
|
+
},
|
91
|
+
"status": 9,
|
92
|
+
"input_file": "",
|
93
|
+
"status_page": "https://auphonic.com/engine/status/xcfFnhD36Tg2KoBy7pHPRU",
|
94
|
+
"length_timestring": "",
|
95
|
+
"multi_input_files": [],
|
96
|
+
"bitrate": null,
|
97
|
+
"output_basename": "",
|
98
|
+
"outgoing_services": [],
|
99
|
+
"change_time": "2013-10-18T22:59:07.840Z",
|
100
|
+
"error_message": "",
|
101
|
+
"waveform_image": null,
|
102
|
+
"length": 0,
|
103
|
+
"algorithms": {
|
104
|
+
"normloudness": true,
|
105
|
+
"loudnesstarget": -16,
|
106
|
+
"denoise": false,
|
107
|
+
"denoiseamount": 0,
|
108
|
+
"hipfilter": true,
|
109
|
+
"leveler": true
|
110
|
+
},
|
111
|
+
"start_allowed": false,
|
112
|
+
"change_allowed": true,
|
113
|
+
"format": ""
|
114
|
+
}
|
115
|
+
}
|
116
|
+
http_version:
|
117
|
+
recorded_at: Fri, 18 Oct 2013 22:59:16 GMT
|
118
|
+
- request:
|
119
|
+
method: post
|
120
|
+
uri: https://auphonic.com/api/production/xcfFnhD36Tg2KoBy7pHPRU.json
|
121
|
+
body:
|
122
|
+
encoding: UTF-8
|
123
|
+
string: '{"input_file":"test.m4a","service":"h8DesucEK6mepmyxtW83MY","reset_data":true}'
|
124
|
+
headers:
|
125
|
+
User-Agent:
|
126
|
+
- Faraday v0.8.8
|
127
|
+
Authorization:
|
128
|
+
- Basic c2lybWFyY2VsOm5hYy1kaWQtY2lkLXlvZC1qYS1zaGxlai15dWwteQ==
|
129
|
+
Content-Type:
|
130
|
+
- application/json
|
131
|
+
response:
|
132
|
+
status:
|
133
|
+
code: 200
|
134
|
+
message:
|
135
|
+
headers:
|
136
|
+
server:
|
137
|
+
- nginx/1.2.0
|
138
|
+
date:
|
139
|
+
- Fri, 18 Oct 2013 22:59:09 GMT
|
140
|
+
content-type:
|
141
|
+
- application/json; charset=utf-8
|
142
|
+
transfer-encoding:
|
143
|
+
- chunked
|
144
|
+
connection:
|
145
|
+
- close
|
146
|
+
cache-control:
|
147
|
+
- max-age=0
|
148
|
+
vary:
|
149
|
+
- Authorization
|
150
|
+
expires:
|
151
|
+
- Fri, 18 Oct 2013 22:59:09 GMT
|
152
|
+
last-modified:
|
153
|
+
- Fri, 18 Oct 2013 22:59:09 GMT
|
154
|
+
access-control-allow-origin:
|
155
|
+
- '*'
|
156
|
+
access-control-allow-credentials:
|
157
|
+
- 'true'
|
158
|
+
access-control-allow-headers:
|
159
|
+
- Authorization,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type
|
160
|
+
body:
|
161
|
+
encoding: UTF-8
|
162
|
+
string: |-
|
163
|
+
{
|
164
|
+
"status_code": 200,
|
165
|
+
"form_errors": {},
|
166
|
+
"error_code": null,
|
167
|
+
"error_message": "",
|
168
|
+
"data": {
|
169
|
+
"status_string": "Incomplete Form",
|
170
|
+
"image": null,
|
171
|
+
"creation_time": "2013-10-18T22:59:07.840Z",
|
172
|
+
"chapters": [],
|
173
|
+
"edit_page": "https://auphonic.com/engine/upload/edit/xcfFnhD36Tg2KoBy7pHPRU",
|
174
|
+
"channels": null,
|
175
|
+
"warning_message": "",
|
176
|
+
"samplerate": null,
|
177
|
+
"output_files": [],
|
178
|
+
"uuid": "xcfFnhD36Tg2KoBy7pHPRU",
|
179
|
+
"service": "h8DesucEK6mepmyxtW83MY",
|
180
|
+
"warning_status": null,
|
181
|
+
"has_video": false,
|
182
|
+
"error_status": null,
|
183
|
+
"thumbnail": null,
|
184
|
+
"metadata": {
|
185
|
+
"album": "",
|
186
|
+
"publisher": "",
|
187
|
+
"subtitle": "",
|
188
|
+
"license": "",
|
189
|
+
"artist": "",
|
190
|
+
"track": "",
|
191
|
+
"title": "",
|
192
|
+
"summary": "",
|
193
|
+
"append_chapters": false,
|
194
|
+
"url": "",
|
195
|
+
"license_url": "",
|
196
|
+
"location": {
|
197
|
+
"latitude": null,
|
198
|
+
"longitude": null
|
199
|
+
},
|
200
|
+
"year": "",
|
201
|
+
"genre": "",
|
202
|
+
"tags": [
|
203
|
+
""
|
204
|
+
]
|
205
|
+
},
|
206
|
+
"status": 9,
|
207
|
+
"input_file": "test.m4a",
|
208
|
+
"status_page": "https://auphonic.com/engine/status/xcfFnhD36Tg2KoBy7pHPRU",
|
209
|
+
"length_timestring": "",
|
210
|
+
"multi_input_files": [],
|
211
|
+
"bitrate": null,
|
212
|
+
"output_basename": "",
|
213
|
+
"outgoing_services": [],
|
214
|
+
"change_time": "2013-10-18T22:59:07.840Z",
|
215
|
+
"error_message": "",
|
216
|
+
"waveform_image": null,
|
217
|
+
"length": 0,
|
218
|
+
"algorithms": {
|
219
|
+
"normloudness": true,
|
220
|
+
"loudnesstarget": -16,
|
221
|
+
"denoise": false,
|
222
|
+
"denoiseamount": 0,
|
223
|
+
"hipfilter": true,
|
224
|
+
"leveler": true
|
225
|
+
},
|
226
|
+
"start_allowed": false,
|
227
|
+
"change_allowed": true,
|
228
|
+
"format": ""
|
229
|
+
}
|
230
|
+
}
|
231
|
+
http_version:
|
232
|
+
recorded_at: Fri, 18 Oct 2013 22:59:18 GMT
|
233
|
+
recorded_with: VCR 2.6.0
|