fileturn 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +17 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +107 -0
- data/Rakefile +1 -0
- data/fileturn.gemspec +27 -0
- data/lib/fileturn/exceptions.rb +30 -0
- data/lib/fileturn/http_client.rb +49 -0
- data/lib/fileturn/resources/account.rb +46 -0
- data/lib/fileturn/resources/file.rb +112 -0
- data/lib/fileturn/resources/notification.rb +16 -0
- data/lib/fileturn/resources/resource.rb +17 -0
- data/lib/fileturn/resources/upload.rb +77 -0
- data/lib/fileturn/version.rb +3 -0
- data/lib/fileturn.rb +19 -0
- data/spec/.DS_Store +0 -0
- data/spec/data/.DS_Store +0 -0
- data/spec/data/testfile.docx +0 -0
- data/spec/fileturn_spec.rb +16 -0
- data/spec/fixtures/vcr_cassettes/account_info.yml +47 -0
- data/spec/fixtures/vcr_cassettes/file_all.yml +60 -0
- data/spec/fixtures/vcr_cassettes/file_all_notifications.yml +60 -0
- data/spec/fixtures/vcr_cassettes/file_convert_no_params.yml +44 -0
- data/spec/fixtures/vcr_cassettes/file_convert_success.yml +46 -0
- data/spec/fixtures/vcr_cassettes/file_doesnt_upload_since_too_big.yml +46 -0
- data/spec/fixtures/vcr_cassettes/file_failed_.yml +133 -0
- data/spec/fixtures/vcr_cassettes/file_notifications.yml +46 -0
- data/spec/fixtures/vcr_cassettes/file_queued_.yml +133 -0
- data/spec/fixtures/vcr_cassettes/file_reload.yml +89 -0
- data/spec/fixtures/vcr_cassettes/file_success.yml +46 -0
- data/spec/fixtures/vcr_cassettes/file_success_.yml +133 -0
- data/spec/fixtures/vcr_cassettes/file_time_taken.yml +133 -0
- data/spec/fixtures/vcr_cassettes/file_unauthorized.yml +44 -0
- data/spec/fixtures/vcr_cassettes/file_upload_doc_queued.yml +739 -0
- data/spec/fixtures/vcr_cassettes/file_upload_not_enough_credits.yml +87 -0
- data/spec/fixtures/vcr_cassettes/file_upload_queued.yml +160 -0
- data/spec/fixtures/vcr_cassettes/upload_all.yml +46 -0
- data/spec/fixtures/vcr_cassettes/upload_one.yml +46 -0
- data/spec/fixtures/vcr_cassettes/upload_refetch.yml +89 -0
- data/spec/resources/account_spec.rb +31 -0
- data/spec/resources/file_spec.rb +184 -0
- data/spec/resources/upload_spec.rb +41 -0
- data/spec/spec_helper.rb +19 -0
- metadata +198 -0
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/files.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ! 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- ! '"a0ad6f6d1d5bed418b32e6ea4d4977c9"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- 7624b8fbde85ac2530bbe7c001ce288d
|
31
|
+
X-Runtime:
|
32
|
+
- '0.037598'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
35
|
+
Date:
|
36
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '6636'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ! '{"files":[{"id":131,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-05T22:19:33Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_131.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306351&Signature=Nvmf2XYfi3ItUeVPstNyVTycHSM%3D","notifications":[{"id":109,"details":null,"parsed_time":"2013-07-05T22:19:42Z","status":"success","time_taken":"8.414609","file_id":131}]},{"id":138,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-05T22:40:12Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_138.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306351&Signature=QkoSMYdhVjEpS6rEHNxjfpCTT3k%3D","notifications":[{"id":115,"details":null,"parsed_time":"2013-07-05T22:40:16Z","status":"success","time_taken":"4.168722","file_id":138}]},{"id":140,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-05T22:40:13Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_140.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306351&Signature=PHtcNQOlp3Am8w4YuxcmTWzVPZI%3D","notifications":[{"id":119,"details":null,"parsed_time":"2013-07-05T22:40:29Z","status":"success","time_taken":"12.611831","file_id":140}]},{"id":392,"url":"http://test.com","convert_to":"pdf","created_at":"2013-07-07T18:24:12Z","status":"failed","download_url":"","notifications":[{"id":364,"details":"file
|
44
|
+
type not supported: com","parsed_time":null,"status":"failed","time_taken":null,"file_id":392}]},{"id":127,"url":"nice.com","convert_to":"pdf","created_at":"2013-07-05T22:18:55Z","status":"failed","download_url":"","notifications":[{"id":105,"details":"file
|
45
|
+
type not supported: com","parsed_time":null,"status":"failed","time_taken":null,"file_id":127}]},{"id":133,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:37:49Z","status":"failed","download_url":"","notifications":[{"id":111,"details":"extension
|
46
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":133}]},{"id":134,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:38:16Z","status":"failed","download_url":"","notifications":[{"id":112,"details":"extension
|
47
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":134}]},{"id":135,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:38:37Z","status":"failed","download_url":"","notifications":[{"id":113,"details":"extension
|
48
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":135}]},{"id":136,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfag","created_at":"2013-07-05T22:40:03Z","status":"failed","download_url":"","notifications":[{"id":114,"details":"extension
|
49
|
+
not supported: pdfag","parsed_time":null,"status":"failed","time_taken":null,"file_id":136}]},{"id":460,"url":"http://test.com","convert_to":"pdf","created_at":"2013-07-07T19:07:47Z","status":"failed","download_url":"","notifications":[{"id":432,"details":"file
|
50
|
+
type not supported: com","parsed_time":null,"status":"failed","time_taken":null,"file_id":460}]},{"id":475,"url":"http://test.com","convert_to":"pdf","created_at":"2013-07-07T19:10:31Z","status":"failed","download_url":"","notifications":[{"id":447,"details":"file
|
51
|
+
type not supported: com","parsed_time":null,"status":"failed","time_taken":null,"file_id":475}]},{"id":143,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:40:31Z","status":"failed","download_url":"","notifications":[{"id":120,"details":"extension
|
52
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":143}]},{"id":144,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:41:25Z","status":"failed","download_url":"","notifications":[{"id":122,"details":"extension
|
53
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":144}]},{"id":276,"url":"http://test.com","convert_to":"pdf","created_at":"2013-07-07T07:47:54Z","status":"failed","download_url":"","notifications":[{"id":248,"details":"file
|
54
|
+
type not supported: com","parsed_time":null,"status":"failed","time_taken":null,"file_id":276}]},{"id":145,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:41:42Z","status":"failed","download_url":"","notifications":[{"id":123,"details":"extension
|
55
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":145}]},{"id":146,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:41:44Z","status":"failed","download_url":"","notifications":[{"id":124,"details":"extension
|
56
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":146}]},{"id":157,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-06T01:23:56Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_157.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306351&Signature=BLFdG%2BdNziqVAK6Hkou5Aovc6rw%3D","notifications":[{"id":135,"details":null,"parsed_time":"2013-07-06T01:24:00Z","status":"success","time_taken":"4.32036","file_id":157}]},{"id":142,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-05T22:40:13Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_142.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306351&Signature=Jr4ECv5YHa9wpB8cDHGSd%2FYam%2Bw%3D","notifications":[{"id":121,"details":null,"parsed_time":"2013-07-05T22:40:32Z","status":"success","time_taken":"9.192231","file_id":142}]},{"id":160,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-06T05:49:17Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_160.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306590&Signature=%2BtR6KbPCdZWzrJ%2F3RWyomG8Pc5k%3D","notifications":[{"id":138,"details":null,"parsed_time":"2013-07-06T05:49:21Z","status":"success","time_taken":"3.653004","file_id":160}]},{"id":151,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdaa","created_at":"2013-07-05T22:41:57Z","status":"failed","download_url":"","notifications":[{"id":127,"details":"extension
|
57
|
+
not supported: pdaa","parsed_time":null,"status":"failed","time_taken":null,"file_id":151}]}],"total_files":380,"current_page":1,"per_page":20,"total_pages":19}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
60
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/files.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ! 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- ! '"a0ad6f6d1d5bed418b32e6ea4d4977c9"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- afc23b8a6580f895fedb33d44a564e02
|
31
|
+
X-Runtime:
|
32
|
+
- '0.039377'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
35
|
+
Date:
|
36
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '6636'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ! '{"files":[{"id":131,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-05T22:19:33Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_131.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306351&Signature=Nvmf2XYfi3ItUeVPstNyVTycHSM%3D","notifications":[{"id":109,"details":null,"parsed_time":"2013-07-05T22:19:42Z","status":"success","time_taken":"8.414609","file_id":131}]},{"id":138,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-05T22:40:12Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_138.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306351&Signature=QkoSMYdhVjEpS6rEHNxjfpCTT3k%3D","notifications":[{"id":115,"details":null,"parsed_time":"2013-07-05T22:40:16Z","status":"success","time_taken":"4.168722","file_id":138}]},{"id":140,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-05T22:40:13Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_140.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306351&Signature=PHtcNQOlp3Am8w4YuxcmTWzVPZI%3D","notifications":[{"id":119,"details":null,"parsed_time":"2013-07-05T22:40:29Z","status":"success","time_taken":"12.611831","file_id":140}]},{"id":392,"url":"http://test.com","convert_to":"pdf","created_at":"2013-07-07T18:24:12Z","status":"failed","download_url":"","notifications":[{"id":364,"details":"file
|
44
|
+
type not supported: com","parsed_time":null,"status":"failed","time_taken":null,"file_id":392}]},{"id":127,"url":"nice.com","convert_to":"pdf","created_at":"2013-07-05T22:18:55Z","status":"failed","download_url":"","notifications":[{"id":105,"details":"file
|
45
|
+
type not supported: com","parsed_time":null,"status":"failed","time_taken":null,"file_id":127}]},{"id":133,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:37:49Z","status":"failed","download_url":"","notifications":[{"id":111,"details":"extension
|
46
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":133}]},{"id":134,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:38:16Z","status":"failed","download_url":"","notifications":[{"id":112,"details":"extension
|
47
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":134}]},{"id":135,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:38:37Z","status":"failed","download_url":"","notifications":[{"id":113,"details":"extension
|
48
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":135}]},{"id":136,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfag","created_at":"2013-07-05T22:40:03Z","status":"failed","download_url":"","notifications":[{"id":114,"details":"extension
|
49
|
+
not supported: pdfag","parsed_time":null,"status":"failed","time_taken":null,"file_id":136}]},{"id":460,"url":"http://test.com","convert_to":"pdf","created_at":"2013-07-07T19:07:47Z","status":"failed","download_url":"","notifications":[{"id":432,"details":"file
|
50
|
+
type not supported: com","parsed_time":null,"status":"failed","time_taken":null,"file_id":460}]},{"id":475,"url":"http://test.com","convert_to":"pdf","created_at":"2013-07-07T19:10:31Z","status":"failed","download_url":"","notifications":[{"id":447,"details":"file
|
51
|
+
type not supported: com","parsed_time":null,"status":"failed","time_taken":null,"file_id":475}]},{"id":143,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:40:31Z","status":"failed","download_url":"","notifications":[{"id":120,"details":"extension
|
52
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":143}]},{"id":144,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:41:25Z","status":"failed","download_url":"","notifications":[{"id":122,"details":"extension
|
53
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":144}]},{"id":276,"url":"http://test.com","convert_to":"pdf","created_at":"2013-07-07T07:47:54Z","status":"failed","download_url":"","notifications":[{"id":248,"details":"file
|
54
|
+
type not supported: com","parsed_time":null,"status":"failed","time_taken":null,"file_id":276}]},{"id":145,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:41:42Z","status":"failed","download_url":"","notifications":[{"id":123,"details":"extension
|
55
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":145}]},{"id":146,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdfa","created_at":"2013-07-05T22:41:44Z","status":"failed","download_url":"","notifications":[{"id":124,"details":"extension
|
56
|
+
not supported: pdfa","parsed_time":null,"status":"failed","time_taken":null,"file_id":146}]},{"id":157,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-06T01:23:56Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_157.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306351&Signature=BLFdG%2BdNziqVAK6Hkou5Aovc6rw%3D","notifications":[{"id":135,"details":null,"parsed_time":"2013-07-06T01:24:00Z","status":"success","time_taken":"4.32036","file_id":157}]},{"id":142,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-05T22:40:13Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_142.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306351&Signature=Jr4ECv5YHa9wpB8cDHGSd%2FYam%2Bw%3D","notifications":[{"id":121,"details":null,"parsed_time":"2013-07-05T22:40:32Z","status":"success","time_taken":"9.192231","file_id":142}]},{"id":160,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdf","created_at":"2013-07-06T05:49:17Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_160.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373306590&Signature=%2BtR6KbPCdZWzrJ%2F3RWyomG8Pc5k%3D","notifications":[{"id":138,"details":null,"parsed_time":"2013-07-06T05:49:21Z","status":"success","time_taken":"3.653004","file_id":160}]},{"id":151,"url":"http://www.iiswc.org/iiswc2013/sample.doc","convert_to":"pdaa","created_at":"2013-07-05T22:41:57Z","status":"failed","download_url":"","notifications":[{"id":127,"details":"extension
|
57
|
+
not supported: pdaa","parsed_time":null,"status":"failed","time_taken":null,"file_id":151}]}],"total_files":380,"current_page":1,"per_page":20,"total_pages":19}'
|
58
|
+
http_version:
|
59
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
60
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/files.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Content-Length:
|
13
|
+
- '0'
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 422
|
19
|
+
message: ''
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Cache-Control:
|
26
|
+
- no-cache
|
27
|
+
X-Request-Id:
|
28
|
+
- 947b3793f1210e3f298a3e492a711134
|
29
|
+
X-Runtime:
|
30
|
+
- '0.013834'
|
31
|
+
Server:
|
32
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
33
|
+
Date:
|
34
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
35
|
+
Content-Length:
|
36
|
+
- '69'
|
37
|
+
Connection:
|
38
|
+
- Keep-Alive
|
39
|
+
body:
|
40
|
+
encoding: US-ASCII
|
41
|
+
string: ! '{"errors":{"url":["can''t be blank"],"convert_to":["can''t be blank"]}}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
44
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: post
|
5
|
+
uri: http://localhost:3000/api/files.json?convert_to=pdf&token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh&url=http://test.com
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Content-Length:
|
13
|
+
- '0'
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 201
|
19
|
+
message: ! 'Created '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- ! '"0bd3ad2a8f4dd447c4b67543a073105b"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- ffdbeb89a704a5bde4ade0a6f8f3fc9a
|
31
|
+
X-Runtime:
|
32
|
+
- '0.023636'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
35
|
+
Date:
|
36
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '144'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ! '{"id":611,"url":"http://test.com","convert_to":"pdf","created_at":"2013-07-07T22:46:58Z","status":"queued","download_url":"","notifications":[]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/uploads.json?token=vGAMKzyN1pFGCNcCFsPpjjVVZtvim1zop3te2pQU
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ! 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- ! '"b43687c602a82010e4d4591ff6b7404f"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- cafebdf6b2dfabab85adb53c2a1de1d3
|
31
|
+
X-Runtime:
|
32
|
+
- '0.015049'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
35
|
+
Date:
|
36
|
+
- Sun, 07 Jul 2013 23:00:04 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '79'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ! '{"uploads":[],"total_uploads":0,"current_page":1,"per_page":20,"total_pages":0}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 07 Jul 2013 23:00:04 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,133 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/files/212.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ! 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- ! '"e0117ff1172a6eeb48dec9a51c619ca6"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- e734079bfd0a3441c4b398f72b2893db
|
31
|
+
X-Runtime:
|
32
|
+
- '0.010559'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
35
|
+
Date:
|
36
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '461'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ! '{"id":212,"url":"http://www.k12.wa.us/rti/implementation/pubdocs/SchoolBlueprint.doc","convert_to":"pdf","created_at":"2013-07-07T03:38:20Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_212.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373259946&Signature=K60jm8kkSkXYjoEi8eVVr%2Bh1bBY%3D","notifications":[{"id":184,"details":null,"parsed_time":"2013-07-07T03:40:06Z","status":"success","time_taken":"105.926075","file_id":212}]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
46
|
+
- request:
|
47
|
+
method: get
|
48
|
+
uri: http://localhost:3000/api/files/154.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
User-Agent:
|
54
|
+
- Faraday v0.8.7
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
Accept:
|
58
|
+
- ! '*/*'
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: ! 'OK '
|
63
|
+
headers:
|
64
|
+
Content-Type:
|
65
|
+
- application/json; charset=utf-8
|
66
|
+
X-Ua-Compatible:
|
67
|
+
- IE=Edge
|
68
|
+
Etag:
|
69
|
+
- ! '"ccfff9a55b35efe35cc28aef5e5663b8"'
|
70
|
+
Cache-Control:
|
71
|
+
- max-age=0, private, must-revalidate
|
72
|
+
X-Request-Id:
|
73
|
+
- 788223c0a190f6cb51e0dad99555abf0
|
74
|
+
X-Runtime:
|
75
|
+
- '0.010913'
|
76
|
+
Server:
|
77
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
78
|
+
Date:
|
79
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
80
|
+
Content-Length:
|
81
|
+
- '290'
|
82
|
+
Connection:
|
83
|
+
- Keep-Alive
|
84
|
+
body:
|
85
|
+
encoding: US-ASCII
|
86
|
+
string: ! '{"id":154,"url":"http://www.iiswc.org/iiswc2013/sample.docaa","convert_to":"pdf","created_at":"2013-07-06T01:18:31Z","status":"failed","download_url":"","notifications":[{"id":132,"details":"Invalid
|
87
|
+
response code: 404","parsed_time":null,"status":"failed","time_taken":null,"file_id":154}]}'
|
88
|
+
http_version:
|
89
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
90
|
+
- request:
|
91
|
+
method: get
|
92
|
+
uri: http://localhost:3000/api/files/210.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
|
93
|
+
body:
|
94
|
+
encoding: US-ASCII
|
95
|
+
string: ''
|
96
|
+
headers:
|
97
|
+
User-Agent:
|
98
|
+
- Faraday v0.8.7
|
99
|
+
Accept-Encoding:
|
100
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
101
|
+
Accept:
|
102
|
+
- ! '*/*'
|
103
|
+
response:
|
104
|
+
status:
|
105
|
+
code: 200
|
106
|
+
message: ! 'OK '
|
107
|
+
headers:
|
108
|
+
Content-Type:
|
109
|
+
- application/json; charset=utf-8
|
110
|
+
X-Ua-Compatible:
|
111
|
+
- IE=Edge
|
112
|
+
Etag:
|
113
|
+
- ! '"23074bb4f5f1834341c4c7f1a6522ffd"'
|
114
|
+
Cache-Control:
|
115
|
+
- max-age=0, private, must-revalidate
|
116
|
+
X-Request-Id:
|
117
|
+
- 9250a099bde700a7e0319046326aef85
|
118
|
+
X-Runtime:
|
119
|
+
- '0.010272'
|
120
|
+
Server:
|
121
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
122
|
+
Date:
|
123
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
124
|
+
Content-Length:
|
125
|
+
- '196'
|
126
|
+
Connection:
|
127
|
+
- Keep-Alive
|
128
|
+
body:
|
129
|
+
encoding: US-ASCII
|
130
|
+
string: ! '{"id":210,"url":"http://www.k12.wa.us/rti/implementation/pubdocs/SchoolBlueprint.doc","convert_to":"pdf","created_at":"2013-07-07T02:30:27Z","status":"queued","download_url":"","notifications":[]}'
|
131
|
+
http_version:
|
132
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
133
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/files/212.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ! 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- ! '"e0117ff1172a6eeb48dec9a51c619ca6"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- b1b82d8a14df743deea2d8aadddcafbb
|
31
|
+
X-Runtime:
|
32
|
+
- '0.011431'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
35
|
+
Date:
|
36
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '461'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ! '{"id":212,"url":"http://www.k12.wa.us/rti/implementation/pubdocs/SchoolBlueprint.doc","convert_to":"pdf","created_at":"2013-07-07T03:38:20Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_212.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373259946&Signature=K60jm8kkSkXYjoEi8eVVr%2Bh1bBY%3D","notifications":[{"id":184,"details":null,"parsed_time":"2013-07-07T03:40:06Z","status":"success","time_taken":"105.926075","file_id":212}]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
46
|
+
recorded_with: VCR 2.4.0
|
@@ -0,0 +1,133 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://localhost:3000/api/files/212.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
User-Agent:
|
11
|
+
- Faraday v0.8.7
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
Accept:
|
15
|
+
- ! '*/*'
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: ! 'OK '
|
20
|
+
headers:
|
21
|
+
Content-Type:
|
22
|
+
- application/json; charset=utf-8
|
23
|
+
X-Ua-Compatible:
|
24
|
+
- IE=Edge
|
25
|
+
Etag:
|
26
|
+
- ! '"e0117ff1172a6eeb48dec9a51c619ca6"'
|
27
|
+
Cache-Control:
|
28
|
+
- max-age=0, private, must-revalidate
|
29
|
+
X-Request-Id:
|
30
|
+
- f000769bcaea9da8cde2ed5722e64c95
|
31
|
+
X-Runtime:
|
32
|
+
- '0.010352'
|
33
|
+
Server:
|
34
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
35
|
+
Date:
|
36
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
37
|
+
Content-Length:
|
38
|
+
- '461'
|
39
|
+
Connection:
|
40
|
+
- Keep-Alive
|
41
|
+
body:
|
42
|
+
encoding: US-ASCII
|
43
|
+
string: ! '{"id":212,"url":"http://www.k12.wa.us/rti/implementation/pubdocs/SchoolBlueprint.doc","convert_to":"pdf","created_at":"2013-07-07T03:38:20Z","status":"processed","download_url":"https://fileturn.s3.amazonaws.com/8_212.pdf?AWSAccessKeyId=AKIAIKXW3ZZ5WNURNYMA&Expires=1373259946&Signature=K60jm8kkSkXYjoEi8eVVr%2Bh1bBY%3D","notifications":[{"id":184,"details":null,"parsed_time":"2013-07-07T03:40:06Z","status":"success","time_taken":"105.926075","file_id":212}]}'
|
44
|
+
http_version:
|
45
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
46
|
+
- request:
|
47
|
+
method: get
|
48
|
+
uri: http://localhost:3000/api/files/154.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ''
|
52
|
+
headers:
|
53
|
+
User-Agent:
|
54
|
+
- Faraday v0.8.7
|
55
|
+
Accept-Encoding:
|
56
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
57
|
+
Accept:
|
58
|
+
- ! '*/*'
|
59
|
+
response:
|
60
|
+
status:
|
61
|
+
code: 200
|
62
|
+
message: ! 'OK '
|
63
|
+
headers:
|
64
|
+
Content-Type:
|
65
|
+
- application/json; charset=utf-8
|
66
|
+
X-Ua-Compatible:
|
67
|
+
- IE=Edge
|
68
|
+
Etag:
|
69
|
+
- ! '"ccfff9a55b35efe35cc28aef5e5663b8"'
|
70
|
+
Cache-Control:
|
71
|
+
- max-age=0, private, must-revalidate
|
72
|
+
X-Request-Id:
|
73
|
+
- f9b76e655104439fa8abd0a18fef85d9
|
74
|
+
X-Runtime:
|
75
|
+
- '0.045212'
|
76
|
+
Server:
|
77
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
78
|
+
Date:
|
79
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
80
|
+
Content-Length:
|
81
|
+
- '290'
|
82
|
+
Connection:
|
83
|
+
- Keep-Alive
|
84
|
+
body:
|
85
|
+
encoding: US-ASCII
|
86
|
+
string: ! '{"id":154,"url":"http://www.iiswc.org/iiswc2013/sample.docaa","convert_to":"pdf","created_at":"2013-07-06T01:18:31Z","status":"failed","download_url":"","notifications":[{"id":132,"details":"Invalid
|
87
|
+
response code: 404","parsed_time":null,"status":"failed","time_taken":null,"file_id":154}]}'
|
88
|
+
http_version:
|
89
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
90
|
+
- request:
|
91
|
+
method: get
|
92
|
+
uri: http://localhost:3000/api/files/210.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
|
93
|
+
body:
|
94
|
+
encoding: US-ASCII
|
95
|
+
string: ''
|
96
|
+
headers:
|
97
|
+
User-Agent:
|
98
|
+
- Faraday v0.8.7
|
99
|
+
Accept-Encoding:
|
100
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
101
|
+
Accept:
|
102
|
+
- ! '*/*'
|
103
|
+
response:
|
104
|
+
status:
|
105
|
+
code: 200
|
106
|
+
message: ! 'OK '
|
107
|
+
headers:
|
108
|
+
Content-Type:
|
109
|
+
- application/json; charset=utf-8
|
110
|
+
X-Ua-Compatible:
|
111
|
+
- IE=Edge
|
112
|
+
Etag:
|
113
|
+
- ! '"23074bb4f5f1834341c4c7f1a6522ffd"'
|
114
|
+
Cache-Control:
|
115
|
+
- max-age=0, private, must-revalidate
|
116
|
+
X-Request-Id:
|
117
|
+
- 31ba6d690031e206c7e77c284a10a514
|
118
|
+
X-Runtime:
|
119
|
+
- '0.010914'
|
120
|
+
Server:
|
121
|
+
- WEBrick/1.3.1 (Ruby/1.9.3/2012-11-10)
|
122
|
+
Date:
|
123
|
+
- Sun, 07 Jul 2013 22:46:58 GMT
|
124
|
+
Content-Length:
|
125
|
+
- '196'
|
126
|
+
Connection:
|
127
|
+
- Keep-Alive
|
128
|
+
body:
|
129
|
+
encoding: US-ASCII
|
130
|
+
string: ! '{"id":210,"url":"http://www.k12.wa.us/rti/implementation/pubdocs/SchoolBlueprint.doc","convert_to":"pdf","created_at":"2013-07-07T02:30:27Z","status":"queued","download_url":"","notifications":[]}'
|
131
|
+
http_version:
|
132
|
+
recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
|
133
|
+
recorded_with: VCR 2.4.0
|