miniphonic 0.1.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 (44) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +23 -0
  3. data/Gemfile +4 -0
  4. data/Gemfile.lock +34 -0
  5. data/LICENSE +20 -0
  6. data/README.md +145 -0
  7. data/Rakefile +19 -0
  8. data/lib/miniphonic/api_object.rb +96 -0
  9. data/lib/miniphonic/helpers.rb +51 -0
  10. data/lib/miniphonic/info.rb +68 -0
  11. data/lib/miniphonic/preset.rb +17 -0
  12. data/lib/miniphonic/preset_attributes.rb +53 -0
  13. data/lib/miniphonic/production.rb +33 -0
  14. data/lib/miniphonic/production_attributes.rb +66 -0
  15. data/lib/miniphonic/response.rb +5 -0
  16. data/lib/miniphonic/version.rb +3 -0
  17. data/lib/miniphonic.rb +40 -0
  18. data/miniphonic.gemspec +29 -0
  19. data/test/spec/api_object_spec.rb +164 -0
  20. data/test/spec/cassettes/info/algorithms.yml +170 -0
  21. data/test/spec/cassettes/info/info.yml +740 -0
  22. data/test/spec/cassettes/info/output_files.yml +343 -0
  23. data/test/spec/cassettes/info/service_types.yml +263 -0
  24. data/test/spec/cassettes/info/services.yml +125 -0
  25. data/test/spec/cassettes/info/status_codes.yml +70 -0
  26. data/test/spec/cassettes/info/user_info.yml +63 -0
  27. data/test/spec/cassettes/preset/all.yml +795 -0
  28. data/test/spec/cassettes/preset/create.yml +97 -0
  29. data/test/spec/cassettes/preset/delete.yml +142 -0
  30. data/test/spec/cassettes/preset/upload_cover.yml +484 -0
  31. data/test/spec/cassettes/production/all.yml +6764 -0
  32. data/test/spec/cassettes/production/create.yml +118 -0
  33. data/test/spec/cassettes/production/delete.yml +163 -0
  34. data/test/spec/cassettes/production/start.yml +164 -0
  35. data/test/spec/cassettes/production/upload_audio.yml +20047 -0
  36. data/test/spec/cassettes/production/upload_audio_from_service.yml +233 -0
  37. data/test/spec/cassettes/production/upload_cover.yml +526 -0
  38. data/test/spec/data/test.jpg +0 -0
  39. data/test/spec/data/test.m4a +0 -0
  40. data/test/spec/helper.rb +32 -0
  41. data/test/spec/info_spec.rb +137 -0
  42. data/test/spec/preset_spec.rb +115 -0
  43. data/test/spec/production_spec.rb +181 -0
  44. metadata +223 -0
@@ -0,0 +1,125 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://auphonic.com/api/services.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic c2lybWFyY2VsOm5hYy1kaWQtY2lkLXlvZC1qYS1zaGxlai15dWwteQ==
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx/1.2.0
21
+ date:
22
+ - Fri, 18 Oct 2013 22:58:43 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ cache-control:
30
+ - max-age=0
31
+ vary:
32
+ - Authorization
33
+ expires:
34
+ - Fri, 18 Oct 2013 22:58:43 GMT
35
+ last-modified:
36
+ - Fri, 18 Oct 2013 22:58:43 GMT
37
+ access-control-allow-origin:
38
+ - '*'
39
+ access-control-allow-credentials:
40
+ - 'true'
41
+ access-control-allow-headers:
42
+ - Authorization,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type
43
+ body:
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "status_code": 200,
48
+ "form_errors": {},
49
+ "error_code": null,
50
+ "error_message": "",
51
+ "data": [
52
+ {
53
+ "outgoing": true,
54
+ "display_name": "Marcel Langer",
55
+ "uuid": "h8DesucEK6mepmyxtW83MY",
56
+ "incoming": true,
57
+ "type": "dropbox",
58
+ "email": "me@lumenpage.com"
59
+ }
60
+ ]
61
+ }
62
+ http_version:
63
+ recorded_at: Fri, 18 Oct 2013 22:58:52 GMT
64
+ - request:
65
+ method: get
66
+ uri: https://auphonic.com/api/services.json
67
+ body:
68
+ encoding: US-ASCII
69
+ string: ''
70
+ headers:
71
+ User-Agent:
72
+ - Faraday v0.8.8
73
+ Authorization:
74
+ - Basic c2lybWFyY2VsOm5hYy1kaWQtY2lkLXlvZC1qYS1zaGxlai15dWwteQ==
75
+ response:
76
+ status:
77
+ code: 200
78
+ message:
79
+ headers:
80
+ server:
81
+ - nginx/1.2.0
82
+ date:
83
+ - Fri, 18 Oct 2013 22:58:44 GMT
84
+ content-type:
85
+ - application/json; charset=utf-8
86
+ transfer-encoding:
87
+ - chunked
88
+ connection:
89
+ - close
90
+ cache-control:
91
+ - max-age=0
92
+ vary:
93
+ - Authorization
94
+ expires:
95
+ - Fri, 18 Oct 2013 22:58:44 GMT
96
+ last-modified:
97
+ - Fri, 18 Oct 2013 22:58:44 GMT
98
+ access-control-allow-origin:
99
+ - '*'
100
+ access-control-allow-credentials:
101
+ - 'true'
102
+ access-control-allow-headers:
103
+ - Authorization,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type
104
+ body:
105
+ encoding: UTF-8
106
+ string: |-
107
+ {
108
+ "status_code": 200,
109
+ "form_errors": {},
110
+ "error_code": null,
111
+ "error_message": "",
112
+ "data": [
113
+ {
114
+ "outgoing": true,
115
+ "display_name": "Marcel Langer",
116
+ "uuid": "h8DesucEK6mepmyxtW83MY",
117
+ "incoming": true,
118
+ "type": "dropbox",
119
+ "email": "me@lumenpage.com"
120
+ }
121
+ ]
122
+ }
123
+ http_version:
124
+ recorded_at: Fri, 18 Oct 2013 22:58:53 GMT
125
+ recorded_with: VCR 2.6.0
@@ -0,0 +1,70 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://auphonic.com/api/info/production_status.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic c2lybWFyY2VsOm5hYy1kaWQtY2lkLXlvZC1qYS1zaGxlai15dWwteQ==
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx/1.2.0
21
+ date:
22
+ - Fri, 18 Oct 2013 22:58:44 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ cache-control:
30
+ - max-age=600
31
+ vary:
32
+ - Authorization
33
+ expires:
34
+ - Fri, 18 Oct 2013 23:08:44 GMT
35
+ last-modified:
36
+ - Fri, 18 Oct 2013 22:58:44 GMT
37
+ access-control-allow-origin:
38
+ - '*'
39
+ access-control-allow-credentials:
40
+ - 'true'
41
+ access-control-allow-headers:
42
+ - Authorization,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type
43
+ body:
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "status_code": 200,
48
+ "form_errors": {},
49
+ "error_code": null,
50
+ "error_message": "",
51
+ "data": {
52
+ "0": "File Upload",
53
+ "1": "Waiting",
54
+ "2": "Error",
55
+ "3": "Done",
56
+ "4": "Audio Processing",
57
+ "5": "Audio Encoding",
58
+ "6": "Outgoing File Transfer",
59
+ "7": "Audio Mono Mixdown",
60
+ "8": "Splitting Audio On Chapter Marks",
61
+ "9": "Incomplete Form",
62
+ "10": "Production Not Started Yet",
63
+ "11": "Production Outdated",
64
+ "12": "Incoming File Transfer",
65
+ "13": "Stopping the Production"
66
+ }
67
+ }
68
+ http_version:
69
+ recorded_at: Fri, 18 Oct 2013 22:58:53 GMT
70
+ recorded_with: VCR 2.6.0
@@ -0,0 +1,63 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://auphonic.com/api/user.json
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.8.8
12
+ Authorization:
13
+ - Basic c2lybWFyY2VsOm5hYy1kaWQtY2lkLXlvZC1qYS1zaGxlai15dWwteQ==
14
+ response:
15
+ status:
16
+ code: 200
17
+ message:
18
+ headers:
19
+ server:
20
+ - nginx/1.2.0
21
+ date:
22
+ - Fri, 18 Oct 2013 22:58:45 GMT
23
+ content-type:
24
+ - application/json; charset=utf-8
25
+ transfer-encoding:
26
+ - chunked
27
+ connection:
28
+ - close
29
+ cache-control:
30
+ - max-age=0
31
+ vary:
32
+ - Authorization
33
+ expires:
34
+ - Fri, 18 Oct 2013 22:58:45 GMT
35
+ last-modified:
36
+ - Fri, 18 Oct 2013 22:58:45 GMT
37
+ access-control-allow-origin:
38
+ - '*'
39
+ access-control-allow-credentials:
40
+ - 'true'
41
+ access-control-allow-headers:
42
+ - Authorization,DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type
43
+ body:
44
+ encoding: UTF-8
45
+ string: |-
46
+ {
47
+ "status_code": 200,
48
+ "form_errors": {},
49
+ "error_code": null,
50
+ "error_message": "",
51
+ "data": {
52
+ "username": "sirmarcel",
53
+ "user_id": "9b229d5c0505a979726aa375613af121",
54
+ "error_email": false,
55
+ "warning_email": false,
56
+ "notification_email": false,
57
+ "email": "me@lumenlog.com",
58
+ "date_joined": "2012-06-20T16:29:32.341Z"
59
+ }
60
+ }
61
+ http_version:
62
+ recorded_at: Fri, 18 Oct 2013 22:58:53 GMT
63
+ recorded_with: VCR 2.6.0