fileturn 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDM5ODQ3OTRjNzQ1YTczNDViZDIzNTJjNjkzZWQ0MjUyMmU3NDQxNw==
4
+ NmM2NzU5ZGFhMjI1MDA2Yjg0MjRkNjdiZDY4ODBkYThiZmEwZDU3Ng==
5
5
  data.tar.gz: !binary |-
6
- NmU0OGY3MTg4ZDQyMmUxMmY0ZTMwNGZkNDc3ZTA4NTRjN2FhYzY3ZQ==
6
+ MDhiNWJjNmY2NDEyNGE4NzFiYjNiMTQyMmI4NGI3NGE4OGI1NjNiZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MzBkYmNlOGY1MDY4ZTk5ZmRlNjVlZGU5M2M0NWI0YzMxNTk2OWJkYmRkZjAw
10
- OGM0MDIzNjYxNzE3MTQ0ODJhMjJmMzJiODVlOWE2NDJhMDdmNzc3MWM4OGNj
11
- MTQyOWNjZjJmM2NmOTRkMTFiNjIwN2RiOTJhYWFjNWQ5MTU0NTY=
9
+ N2NlNTViYzY3NDM0NzEzZTgxNjY5NzhlNTc0MDViNDc1YmI3MzgyM2VlMjBl
10
+ ZWI2MzQ5MzY2MDMzY2EwYzdhMzY3NmFlMTY1Yzk1YTI4NmJiM2YxODBmYjZk
11
+ N2RlZmVjOGU4OTNlYjY1YTY4MjQ1MTBkMzlkMzYwNTRjOTFiZDM=
12
12
  data.tar.gz: !binary |-
13
- MzIzYWYyOGViYTExOTFjZjI4MmQ2YzAxMDViYWY3MjkwNmUxNDVhMzk0NTYw
14
- MjU5OGI5NmI5ZGQ0MGRkYTBkMjkzMmIzZDI2ZTE0NzBiODkzNWNlMmMwOGQ0
15
- MzdhMWJiY2RlMzAxMzExYTJmNWNiMDgwMGEyZGQ5N2ZkODQ1ZGM=
13
+ Y2I4NTM4OTc1NDYwZmIwYTI4OTczNjQ5YzU1ZjhiNzJhYWYyODRkMTQ2NjRl
14
+ MGQ0ZjAxNGUwMGVkMzUyNWIzZDhjOTMzMTljZTAyZDJmNDNiNTliZTBmMWIx
15
+ ZGJmNDA4ZTRhZDZjYzg2NjgyYmVhZjY2MGJjNzFhMzljYzU1YTg=
@@ -30,7 +30,7 @@ module FileTurn
30
30
  file_type = 'unknown' if file_type == ''
31
31
  file_size = file.class.size(file.path)
32
32
 
33
- conn.post('files/upload.json', { content_type: file_type, content_length: file_size }, 201) do |params|
33
+ conn.post('files/upload.json', { :content_type => file_type, :content_length => file_size }, 201) do |params|
34
34
  params['file_type'] = file_type
35
35
  params['file_size'] = file_size
36
36
  OpenStruct.new(params)
@@ -39,7 +39,7 @@ module FileTurn
39
39
 
40
40
  def evaluate_file_size(file)
41
41
  max_size = Account.load_only_if_not_loaded.max_file_size_in_bytes
42
- if file.size > max_size
42
+ if file.class.size(file) > max_size
43
43
  OpenStruct.new(:errors => {"file_size"=>["is too big"]})
44
44
  end
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module Fileturn
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -44,4 +44,47 @@ http_interactions:
44
44
  Time (US & Canada)","max_file_size_in_bytes":1048576}'
45
45
  http_version:
46
46
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
47
+ - request:
48
+ method: get
49
+ uri: http://fileturn.net/api/users.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
50
+ body:
51
+ encoding: US-ASCII
52
+ string: ''
53
+ headers:
54
+ User-Agent:
55
+ - Faraday v0.8.7
56
+ Accept-Encoding:
57
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
58
+ Accept:
59
+ - ! '*/*'
60
+ response:
61
+ status:
62
+ code: 401
63
+ message: Unauthorized
64
+ headers:
65
+ Cache-Control:
66
+ - no-cache
67
+ Content-Type:
68
+ - application/json; charset=utf-8
69
+ Date:
70
+ - Wed, 10 Jul 2013 02:23:45 GMT
71
+ Status:
72
+ - 401 Unauthorized
73
+ X-Rack-Cache:
74
+ - miss
75
+ X-Request-Id:
76
+ - ba809a4faf572e1c93137e8dec3e5ed4
77
+ X-Runtime:
78
+ - '0.011111'
79
+ X-Ua-Compatible:
80
+ - IE=Edge,chrome=1
81
+ Transfer-Encoding:
82
+ - chunked
83
+ Connection:
84
+ - keep-alive
85
+ body:
86
+ encoding: US-ASCII
87
+ string: ! '{"error":"Your token is invalid","status":401}'
88
+ http_version:
89
+ recorded_at: Wed, 10 Jul 2013 02:26:15 GMT
47
90
  recorded_with: VCR 2.4.0
@@ -57,4 +57,47 @@ http_interactions:
57
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
58
  http_version:
59
59
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
60
+ - request:
61
+ method: get
62
+ uri: http://fileturn.net/api/files.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
63
+ body:
64
+ encoding: US-ASCII
65
+ string: ''
66
+ headers:
67
+ User-Agent:
68
+ - Faraday v0.8.7
69
+ Accept-Encoding:
70
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
+ Accept:
72
+ - ! '*/*'
73
+ response:
74
+ status:
75
+ code: 401
76
+ message: Unauthorized
77
+ headers:
78
+ Cache-Control:
79
+ - no-cache
80
+ Content-Type:
81
+ - application/json; charset=utf-8
82
+ Date:
83
+ - Wed, 10 Jul 2013 02:23:46 GMT
84
+ Status:
85
+ - 401 Unauthorized
86
+ X-Rack-Cache:
87
+ - miss
88
+ X-Request-Id:
89
+ - 06747b44ea6f957924d8ea5d1e33af9c
90
+ X-Runtime:
91
+ - '0.008411'
92
+ X-Ua-Compatible:
93
+ - IE=Edge,chrome=1
94
+ Transfer-Encoding:
95
+ - chunked
96
+ Connection:
97
+ - keep-alive
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ! '{"error":"Your token is invalid","status":401}'
101
+ http_version:
102
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
60
103
  recorded_with: VCR 2.4.0
@@ -57,4 +57,47 @@ http_interactions:
57
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
58
  http_version:
59
59
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
60
+ - request:
61
+ method: get
62
+ uri: http://fileturn.net/api/files.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
63
+ body:
64
+ encoding: US-ASCII
65
+ string: ''
66
+ headers:
67
+ User-Agent:
68
+ - Faraday v0.8.7
69
+ Accept-Encoding:
70
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
71
+ Accept:
72
+ - ! '*/*'
73
+ response:
74
+ status:
75
+ code: 401
76
+ message: Unauthorized
77
+ headers:
78
+ Cache-Control:
79
+ - no-cache
80
+ Content-Type:
81
+ - application/json; charset=utf-8
82
+ Date:
83
+ - Wed, 10 Jul 2013 02:23:46 GMT
84
+ Status:
85
+ - 401 Unauthorized
86
+ X-Rack-Cache:
87
+ - miss
88
+ X-Request-Id:
89
+ - 37c32bf9e7fed70d25d9ea6c938d61fa
90
+ X-Runtime:
91
+ - '0.011916'
92
+ X-Ua-Compatible:
93
+ - IE=Edge,chrome=1
94
+ Transfer-Encoding:
95
+ - chunked
96
+ Connection:
97
+ - keep-alive
98
+ body:
99
+ encoding: US-ASCII
100
+ string: ! '{"error":"Your token is invalid","status":401}'
101
+ http_version:
102
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
60
103
  recorded_with: VCR 2.4.0
@@ -41,4 +41,47 @@ http_interactions:
41
41
  string: ! '{"errors":{"url":["can''t be blank"],"convert_to":["can''t be blank"]}}'
42
42
  http_version:
43
43
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
44
+ - request:
45
+ method: post
46
+ uri: http://fileturn.net/api/files.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ User-Agent:
52
+ - Faraday v0.8.7
53
+ Content-Length:
54
+ - '0'
55
+ Accept:
56
+ - ! '*/*'
57
+ response:
58
+ status:
59
+ code: 401
60
+ message: Unauthorized
61
+ headers:
62
+ Cache-Control:
63
+ - no-cache
64
+ Content-Type:
65
+ - application/json; charset=utf-8
66
+ Date:
67
+ - Wed, 10 Jul 2013 02:23:46 GMT
68
+ Status:
69
+ - 401 Unauthorized
70
+ X-Rack-Cache:
71
+ - invalidate, pass
72
+ X-Request-Id:
73
+ - fc1e6601526edcd56153258f170f282f
74
+ X-Runtime:
75
+ - '0.011877'
76
+ X-Ua-Compatible:
77
+ - IE=Edge,chrome=1
78
+ Transfer-Encoding:
79
+ - chunked
80
+ Connection:
81
+ - keep-alive
82
+ body:
83
+ encoding: US-ASCII
84
+ string: ! '{"error":"Your token is invalid","status":401}'
85
+ http_version:
86
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
44
87
  recorded_with: VCR 2.4.0
@@ -43,4 +43,47 @@ http_interactions:
43
43
  string: ! '{"id":611,"url":"http://test.com","convert_to":"pdf","created_at":"2013-07-07T22:46:58Z","status":"queued","download_url":"","notifications":[]}'
44
44
  http_version:
45
45
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
46
+ - request:
47
+ method: post
48
+ uri: http://fileturn.net/api/files.json?convert_to=pdf&token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh&url=http://test.com
49
+ body:
50
+ encoding: US-ASCII
51
+ string: ''
52
+ headers:
53
+ User-Agent:
54
+ - Faraday v0.8.7
55
+ Content-Length:
56
+ - '0'
57
+ Accept:
58
+ - ! '*/*'
59
+ response:
60
+ status:
61
+ code: 401
62
+ message: Unauthorized
63
+ headers:
64
+ Cache-Control:
65
+ - no-cache
66
+ Content-Type:
67
+ - application/json; charset=utf-8
68
+ Date:
69
+ - Wed, 10 Jul 2013 02:23:46 GMT
70
+ Status:
71
+ - 401 Unauthorized
72
+ X-Rack-Cache:
73
+ - invalidate, pass
74
+ X-Request-Id:
75
+ - 4859cd7268f9b0e546de5f75d0ee3f8f
76
+ X-Runtime:
77
+ - '0.013926'
78
+ X-Ua-Compatible:
79
+ - IE=Edge,chrome=1
80
+ Transfer-Encoding:
81
+ - chunked
82
+ Connection:
83
+ - keep-alive
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ! '{"error":"Your token is invalid","status":401}'
87
+ http_version:
88
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
46
89
  recorded_with: VCR 2.4.0
@@ -130,4 +130,47 @@ http_interactions:
130
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
131
  http_version:
132
132
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
133
+ - request:
134
+ method: get
135
+ uri: http://fileturn.net/api/files/212.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers:
140
+ User-Agent:
141
+ - Faraday v0.8.7
142
+ Accept-Encoding:
143
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
144
+ Accept:
145
+ - ! '*/*'
146
+ response:
147
+ status:
148
+ code: 401
149
+ message: Unauthorized
150
+ headers:
151
+ Cache-Control:
152
+ - no-cache
153
+ Content-Type:
154
+ - application/json; charset=utf-8
155
+ Date:
156
+ - Wed, 10 Jul 2013 02:23:46 GMT
157
+ Status:
158
+ - 401 Unauthorized
159
+ X-Rack-Cache:
160
+ - miss
161
+ X-Request-Id:
162
+ - d93fa7aeb5abba8f525a6c7ee8957560
163
+ X-Runtime:
164
+ - '0.009809'
165
+ X-Ua-Compatible:
166
+ - IE=Edge,chrome=1
167
+ Content-Length:
168
+ - '46'
169
+ Connection:
170
+ - keep-alive
171
+ body:
172
+ encoding: US-ASCII
173
+ string: ! '{"error":"Your token is invalid","status":401}'
174
+ http_version:
175
+ recorded_at: Wed, 10 Jul 2013 02:26:15 GMT
133
176
  recorded_with: VCR 2.4.0
@@ -43,4 +43,47 @@ http_interactions:
43
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
44
  http_version:
45
45
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
46
+ - request:
47
+ method: get
48
+ uri: http://fileturn.net/api/files/212.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: 401
62
+ message: Unauthorized
63
+ headers:
64
+ Cache-Control:
65
+ - no-cache
66
+ Content-Type:
67
+ - application/json; charset=utf-8
68
+ Date:
69
+ - Wed, 10 Jul 2013 02:23:46 GMT
70
+ Status:
71
+ - 401 Unauthorized
72
+ X-Rack-Cache:
73
+ - miss
74
+ X-Request-Id:
75
+ - 50b5f386f61482578270da1f2964db5f
76
+ X-Runtime:
77
+ - '0.012142'
78
+ X-Ua-Compatible:
79
+ - IE=Edge,chrome=1
80
+ Transfer-Encoding:
81
+ - chunked
82
+ Connection:
83
+ - keep-alive
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ! '{"error":"Your token is invalid","status":401}'
87
+ http_version:
88
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
46
89
  recorded_with: VCR 2.4.0
@@ -130,4 +130,47 @@ http_interactions:
130
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
131
  http_version:
132
132
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
133
+ - request:
134
+ method: get
135
+ uri: http://fileturn.net/api/files/212.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers:
140
+ User-Agent:
141
+ - Faraday v0.8.7
142
+ Accept-Encoding:
143
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
144
+ Accept:
145
+ - ! '*/*'
146
+ response:
147
+ status:
148
+ code: 401
149
+ message: Unauthorized
150
+ headers:
151
+ Cache-Control:
152
+ - no-cache
153
+ Content-Type:
154
+ - application/json; charset=utf-8
155
+ Date:
156
+ - Wed, 10 Jul 2013 02:23:46 GMT
157
+ Status:
158
+ - 401 Unauthorized
159
+ X-Rack-Cache:
160
+ - miss
161
+ X-Request-Id:
162
+ - b1166a18aed3943dd0743a82c56637ca
163
+ X-Runtime:
164
+ - '0.010285'
165
+ X-Ua-Compatible:
166
+ - IE=Edge,chrome=1
167
+ Transfer-Encoding:
168
+ - chunked
169
+ Connection:
170
+ - keep-alive
171
+ body:
172
+ encoding: US-ASCII
173
+ string: ! '{"error":"Your token is invalid","status":401}'
174
+ http_version:
175
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
133
176
  recorded_with: VCR 2.4.0
@@ -86,4 +86,47 @@ http_interactions:
86
86
  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}]}'
87
87
  http_version:
88
88
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
89
+ - request:
90
+ method: get
91
+ uri: http://fileturn.net/api/files/212.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
92
+ body:
93
+ encoding: US-ASCII
94
+ string: ''
95
+ headers:
96
+ User-Agent:
97
+ - Faraday v0.8.7
98
+ Accept-Encoding:
99
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
100
+ Accept:
101
+ - ! '*/*'
102
+ response:
103
+ status:
104
+ code: 401
105
+ message: Unauthorized
106
+ headers:
107
+ Cache-Control:
108
+ - no-cache
109
+ Content-Type:
110
+ - application/json; charset=utf-8
111
+ Date:
112
+ - Wed, 10 Jul 2013 02:23:46 GMT
113
+ Status:
114
+ - 401 Unauthorized
115
+ X-Rack-Cache:
116
+ - miss
117
+ X-Request-Id:
118
+ - 8a1c78af3cefdd648592d855f9d3a5ce
119
+ X-Runtime:
120
+ - '0.007918'
121
+ X-Ua-Compatible:
122
+ - IE=Edge,chrome=1
123
+ Transfer-Encoding:
124
+ - chunked
125
+ Connection:
126
+ - keep-alive
127
+ body:
128
+ encoding: US-ASCII
129
+ string: ! '{"error":"Your token is invalid","status":401}'
130
+ http_version:
131
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
89
132
  recorded_with: VCR 2.4.0
@@ -43,4 +43,47 @@ http_interactions:
43
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
44
  http_version:
45
45
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
46
+ - request:
47
+ method: get
48
+ uri: http://fileturn.net/api/files/212.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: 401
62
+ message: Unauthorized
63
+ headers:
64
+ Cache-Control:
65
+ - no-cache
66
+ Content-Type:
67
+ - application/json; charset=utf-8
68
+ Date:
69
+ - Wed, 10 Jul 2013 02:23:46 GMT
70
+ Status:
71
+ - 401 Unauthorized
72
+ X-Rack-Cache:
73
+ - miss
74
+ X-Request-Id:
75
+ - dcd85875b43c8880ac195456c03f60c2
76
+ X-Runtime:
77
+ - '0.015276'
78
+ X-Ua-Compatible:
79
+ - IE=Edge,chrome=1
80
+ Transfer-Encoding:
81
+ - chunked
82
+ Connection:
83
+ - keep-alive
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ! '{"error":"Your token is invalid","status":401}'
87
+ http_version:
88
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
46
89
  recorded_with: VCR 2.4.0
@@ -130,4 +130,47 @@ http_interactions:
130
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
131
  http_version:
132
132
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
133
+ - request:
134
+ method: get
135
+ uri: http://fileturn.net/api/files/212.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers:
140
+ User-Agent:
141
+ - Faraday v0.8.7
142
+ Accept-Encoding:
143
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
144
+ Accept:
145
+ - ! '*/*'
146
+ response:
147
+ status:
148
+ code: 401
149
+ message: Unauthorized
150
+ headers:
151
+ Cache-Control:
152
+ - no-cache
153
+ Content-Type:
154
+ - application/json; charset=utf-8
155
+ Date:
156
+ - Wed, 10 Jul 2013 02:23:46 GMT
157
+ Status:
158
+ - 401 Unauthorized
159
+ X-Rack-Cache:
160
+ - miss
161
+ X-Request-Id:
162
+ - e0cbb48f58fe4fd50ba22b05f6299357
163
+ X-Runtime:
164
+ - '0.010530'
165
+ X-Ua-Compatible:
166
+ - IE=Edge,chrome=1
167
+ Transfer-Encoding:
168
+ - chunked
169
+ Connection:
170
+ - keep-alive
171
+ body:
172
+ encoding: US-ASCII
173
+ string: ! '{"error":"Your token is invalid","status":401}'
174
+ http_version:
175
+ recorded_at: Wed, 10 Jul 2013 02:26:15 GMT
133
176
  recorded_with: VCR 2.4.0
@@ -130,4 +130,47 @@ http_interactions:
130
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
131
  http_version:
132
132
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
133
+ - request:
134
+ method: get
135
+ uri: http://fileturn.net/api/files/212.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
136
+ body:
137
+ encoding: US-ASCII
138
+ string: ''
139
+ headers:
140
+ User-Agent:
141
+ - Faraday v0.8.7
142
+ Accept-Encoding:
143
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
144
+ Accept:
145
+ - ! '*/*'
146
+ response:
147
+ status:
148
+ code: 401
149
+ message: Unauthorized
150
+ headers:
151
+ Cache-Control:
152
+ - no-cache
153
+ Content-Type:
154
+ - application/json; charset=utf-8
155
+ Date:
156
+ - Wed, 10 Jul 2013 02:23:46 GMT
157
+ Status:
158
+ - 401 Unauthorized
159
+ X-Rack-Cache:
160
+ - miss
161
+ X-Request-Id:
162
+ - d730bae2e395f66340a78fcb4a67dae3
163
+ X-Runtime:
164
+ - '0.010042'
165
+ X-Ua-Compatible:
166
+ - IE=Edge,chrome=1
167
+ Transfer-Encoding:
168
+ - chunked
169
+ Connection:
170
+ - keep-alive
171
+ body:
172
+ encoding: US-ASCII
173
+ string: ! '{"error":"Your token is invalid","status":401}'
174
+ http_version:
175
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
133
176
  recorded_with: VCR 2.4.0
@@ -41,4 +41,47 @@ http_interactions:
41
41
  string: ! '{"error":"Your token is invalid","status":401}'
42
42
  http_version:
43
43
  recorded_at: Sun, 07 Jul 2013 22:46:58 GMT
44
+ - request:
45
+ method: get
46
+ uri: http://fileturn.net/api/files/123.json?token=blah
47
+ body:
48
+ encoding: US-ASCII
49
+ string: ''
50
+ headers:
51
+ User-Agent:
52
+ - Faraday v0.8.7
53
+ Accept-Encoding:
54
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
55
+ Accept:
56
+ - ! '*/*'
57
+ response:
58
+ status:
59
+ code: 401
60
+ message: Unauthorized
61
+ headers:
62
+ Cache-Control:
63
+ - no-cache
64
+ Content-Type:
65
+ - application/json; charset=utf-8
66
+ Date:
67
+ - Wed, 10 Jul 2013 02:23:46 GMT
68
+ Status:
69
+ - 401 Unauthorized
70
+ X-Rack-Cache:
71
+ - miss
72
+ X-Request-Id:
73
+ - ede134fabb5794d8f7b700b49ef4d950
74
+ X-Runtime:
75
+ - '0.024409'
76
+ X-Ua-Compatible:
77
+ - IE=Edge,chrome=1
78
+ Transfer-Encoding:
79
+ - chunked
80
+ Connection:
81
+ - keep-alive
82
+ body:
83
+ encoding: US-ASCII
84
+ string: ! '{"error":"Your token is invalid","status":401}'
85
+ http_version:
86
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
44
87
  recorded_with: VCR 2.4.0
@@ -736,4 +736,47 @@ http_interactions:
736
736
  string: ! '{"id":613,"url":"https://fileturn.s3.amazonaws.com/uploads/8_296","convert_to":"pdf","created_at":"2013-07-07T22:46:59Z","status":"queued","download_url":"","notifications":[]}'
737
737
  http_version:
738
738
  recorded_at: Sun, 07 Jul 2013 22:46:59 GMT
739
+ - request:
740
+ method: get
741
+ uri: http://fileturn.net/api/users.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
742
+ body:
743
+ encoding: US-ASCII
744
+ string: ''
745
+ headers:
746
+ User-Agent:
747
+ - Faraday v0.8.7
748
+ Accept-Encoding:
749
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
750
+ Accept:
751
+ - ! '*/*'
752
+ response:
753
+ status:
754
+ code: 401
755
+ message: Unauthorized
756
+ headers:
757
+ Cache-Control:
758
+ - no-cache
759
+ Content-Type:
760
+ - application/json; charset=utf-8
761
+ Date:
762
+ - Wed, 10 Jul 2013 02:23:46 GMT
763
+ Status:
764
+ - 401 Unauthorized
765
+ X-Rack-Cache:
766
+ - miss
767
+ X-Request-Id:
768
+ - 256064bfaedddc4db3d9329cf3765617
769
+ X-Runtime:
770
+ - '0.012834'
771
+ X-Ua-Compatible:
772
+ - IE=Edge,chrome=1
773
+ Transfer-Encoding:
774
+ - chunked
775
+ Connection:
776
+ - keep-alive
777
+ body:
778
+ encoding: US-ASCII
779
+ string: ! '{"error":"Your token is invalid","status":401}'
780
+ http_version:
781
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
739
782
  recorded_with: VCR 2.4.0
@@ -84,4 +84,47 @@ http_interactions:
84
84
  string: ! '{"uploads":[],"total_uploads":0,"current_page":1,"per_page":20,"total_pages":0}'
85
85
  http_version:
86
86
  recorded_at: Sun, 07 Jul 2013 22:46:59 GMT
87
+ - request:
88
+ method: get
89
+ uri: http://fileturn.net/api/users.json?token=vGAMKzyN1pFGCNcCFsPpjjVVZtvim1zop3te2pQU
90
+ body:
91
+ encoding: US-ASCII
92
+ string: ''
93
+ headers:
94
+ User-Agent:
95
+ - Faraday v0.8.7
96
+ Accept-Encoding:
97
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
98
+ Accept:
99
+ - ! '*/*'
100
+ response:
101
+ status:
102
+ code: 401
103
+ message: Unauthorized
104
+ headers:
105
+ Cache-Control:
106
+ - no-cache
107
+ Content-Type:
108
+ - application/json; charset=utf-8
109
+ Date:
110
+ - Wed, 10 Jul 2013 02:23:47 GMT
111
+ Status:
112
+ - 401 Unauthorized
113
+ X-Rack-Cache:
114
+ - miss
115
+ X-Request-Id:
116
+ - c5a953f6afa289036ea7cc90d86a2dd0
117
+ X-Runtime:
118
+ - '0.006471'
119
+ X-Ua-Compatible:
120
+ - IE=Edge,chrome=1
121
+ Transfer-Encoding:
122
+ - chunked
123
+ Connection:
124
+ - keep-alive
125
+ body:
126
+ encoding: US-ASCII
127
+ string: ! '{"error":"Your token is invalid","status":401}'
128
+ http_version:
129
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
87
130
  recorded_with: VCR 2.4.0
@@ -157,4 +157,47 @@ http_interactions:
157
157
  string: ! '{"id":612,"url":"https://fileturn.s3.amazonaws.com/uploads/8_295","convert_to":"pdf","created_at":"2013-07-07T22:46:59Z","status":"queued","download_url":"","notifications":[]}'
158
158
  http_version:
159
159
  recorded_at: Sun, 07 Jul 2013 22:46:59 GMT
160
+ - request:
161
+ method: get
162
+ uri: http://fileturn.net/api/users.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
163
+ body:
164
+ encoding: US-ASCII
165
+ string: ''
166
+ headers:
167
+ User-Agent:
168
+ - Faraday v0.8.7
169
+ Accept-Encoding:
170
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
171
+ Accept:
172
+ - ! '*/*'
173
+ response:
174
+ status:
175
+ code: 401
176
+ message: Unauthorized
177
+ headers:
178
+ Cache-Control:
179
+ - no-cache
180
+ Content-Type:
181
+ - application/json; charset=utf-8
182
+ Date:
183
+ - Wed, 10 Jul 2013 02:23:46 GMT
184
+ Status:
185
+ - 401 Unauthorized
186
+ X-Rack-Cache:
187
+ - miss
188
+ X-Request-Id:
189
+ - 92841dbf8b0194657c5fab165ea5745d
190
+ X-Runtime:
191
+ - '0.016394'
192
+ X-Ua-Compatible:
193
+ - IE=Edge,chrome=1
194
+ Transfer-Encoding:
195
+ - chunked
196
+ Connection:
197
+ - keep-alive
198
+ body:
199
+ encoding: US-ASCII
200
+ string: ! '{"error":"Your token is invalid","status":401}'
201
+ http_version:
202
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
160
203
  recorded_with: VCR 2.4.0
@@ -43,4 +43,47 @@ http_interactions:
43
43
  string: ! '{"uploads":[{"id":19,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo0MjoyMVoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzE5In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"fT8UPL6JZyFFDNnvp34hu19xTOA=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_19","url":"https://fileturn.s3.amazonaws.com"},{"id":20,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo0NDo0NVoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzIwIn0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"jo5qzKc7bttffI4lvaMYtvPJTLU=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_20","url":"https://fileturn.s3.amazonaws.com"},{"id":21,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo0NTozMloiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzIxIn0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"qr5JLPrgZwbxZrg7mLHWocjPT0M=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_21","url":"https://fileturn.s3.amazonaws.com"},{"id":22,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo0Njo1N1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzIyIn0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"w8x85LquOE27301pPiXSJ4n4TU8=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_22","url":"https://fileturn.s3.amazonaws.com"},{"id":23,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo0NzoxMFoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzIzIn0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"G4J86vvrjRsbmt6gAjlFnY4nn58=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_23","url":"https://fileturn.s3.amazonaws.com"},{"id":24,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1MDoyN1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzI0In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"VxngEVfIogyU4s0qY/WfqOBi3cY=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_24","url":"https://fileturn.s3.amazonaws.com"},{"id":25,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1MTo0NloiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzI1In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"Rpm+KCeuQH8eEFvHJLM/VL+4Bls=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_25","url":"https://fileturn.s3.amazonaws.com"},{"id":26,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1Mzo0OFoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzI2In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"6IFA8778EX4b/99RZDeqEUIQL/U=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_26","url":"https://fileturn.s3.amazonaws.com"},{"id":27,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1NDowOVoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzI3In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"HQ92JSVOOj1mrjHyZvWEIPEvA+I=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_27","url":"https://fileturn.s3.amazonaws.com"},{"id":28,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1NTozNFoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzI4In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"Pi13kzzDw5fX5n+HP6BlRTivxe0=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_28","url":"https://fileturn.s3.amazonaws.com"},{"id":29,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1NTo1NloiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzI5In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"fua+0jX4FjeErG35xs+6pbbWJx4=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_29","url":"https://fileturn.s3.amazonaws.com"},{"id":30,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1NjowM1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzMwIn0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"s3p27gHOZzTh8C6QLVbuU1DcTEQ=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_30","url":"https://fileturn.s3.amazonaws.com"},{"id":31,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1NjoxOFoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzMxIn0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"bBi91IEq6w2eVC4rIHLgCsXK5Kc=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_31","url":"https://fileturn.s3.amazonaws.com"},{"id":32,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1NjozN1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzMyIn0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"KhfEDSOEw1MVIL7VG/rtxdKcLgs=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_32","url":"https://fileturn.s3.amazonaws.com"},{"id":33,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1Njo0OFoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzMzIn0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"j9aCDICySJPRJpmoSDvZm/78RGs=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_33","url":"https://fileturn.s3.amazonaws.com"},{"id":34,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1NzowNFoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzM0In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"Y+IwBpUNSeXNOPZxechPfr2YY/w=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_34","url":"https://fileturn.s3.amazonaws.com"},{"id":35,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1Nzo1MFoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzM1In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"7LgZIqOKMlfIAMFzrh5SfJJkoLI=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_35","url":"https://fileturn.s3.amazonaws.com"},{"id":36,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo1OToyN1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzM2In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"36DzSgSNJBPtaE8NIHBJE+dTBsI=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_36","url":"https://fileturn.s3.amazonaws.com"},{"id":37,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwODowMjoxN1oiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzM3In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"JXTm5t7JAg+Qe3x9uH+L3AaePtY=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_37","url":"https://fileturn.s3.amazonaws.com"},{"id":38,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwODowNDoxOVoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzM4In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"ABsF7VLBIGlIvXQUpsZW0eu6Xds=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_38","url":"https://fileturn.s3.amazonaws.com"}],"total_uploads":240,"current_page":1,"per_page":20,"total_pages":12}'
44
44
  http_version:
45
45
  recorded_at: Sun, 07 Jul 2013 22:46:59 GMT
46
+ - request:
47
+ method: get
48
+ uri: http://fileturn.net/api/uploads.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: 401
62
+ message: Unauthorized
63
+ headers:
64
+ Cache-Control:
65
+ - no-cache
66
+ Content-Type:
67
+ - application/json; charset=utf-8
68
+ Date:
69
+ - Wed, 10 Jul 2013 02:23:47 GMT
70
+ Status:
71
+ - 401 Unauthorized
72
+ X-Rack-Cache:
73
+ - miss
74
+ X-Request-Id:
75
+ - 1bf59c318fe44a7cb14fc78f57a01746
76
+ X-Runtime:
77
+ - '0.013501'
78
+ X-Ua-Compatible:
79
+ - IE=Edge,chrome=1
80
+ Transfer-Encoding:
81
+ - chunked
82
+ Connection:
83
+ - keep-alive
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ! '{"error":"Your token is invalid","status":401}'
87
+ http_version:
88
+ recorded_at: Wed, 10 Jul 2013 02:26:16 GMT
46
89
  recorded_with: VCR 2.4.0
@@ -43,4 +43,47 @@ http_interactions:
43
43
  string: ! '{"id":19,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo0MjoyMVoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzE5In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"fT8UPL6JZyFFDNnvp34hu19xTOA=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_19","url":"https://fileturn.s3.amazonaws.com"}'
44
44
  http_version:
45
45
  recorded_at: Sun, 07 Jul 2013 22:46:59 GMT
46
+ - request:
47
+ method: get
48
+ uri: http://fileturn.net/api/uploads/19.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: 401
62
+ message: Unauthorized
63
+ headers:
64
+ Cache-Control:
65
+ - no-cache
66
+ Content-Type:
67
+ - application/json; charset=utf-8
68
+ Date:
69
+ - Wed, 10 Jul 2013 02:23:47 GMT
70
+ Status:
71
+ - 401 Unauthorized
72
+ X-Rack-Cache:
73
+ - miss
74
+ X-Request-Id:
75
+ - 16a5ec7b2fd36dcc043b920620bd671d
76
+ X-Runtime:
77
+ - '0.019284'
78
+ X-Ua-Compatible:
79
+ - IE=Edge,chrome=1
80
+ Transfer-Encoding:
81
+ - chunked
82
+ Connection:
83
+ - keep-alive
84
+ body:
85
+ encoding: US-ASCII
86
+ string: ! '{"error":"Your token is invalid","status":401}'
87
+ http_version:
88
+ recorded_at: Wed, 10 Jul 2013 02:26:17 GMT
46
89
  recorded_with: VCR 2.4.0
@@ -86,4 +86,47 @@ http_interactions:
86
86
  string: ! '{"id":19,"policy":"eyJleHBpcmF0aW9uIjoiMjAxMy0wNy0wN1QwNzo0MjoyMVoiLCJjb25kaXRpb25zIjpbeyJidWNrZXQiOiJmaWxldHVybiJ9LHsia2V5IjoidXBsb2Fkcy84XzE5In0sWyJjb250ZW50LWxlbmd0aC1yYW5nZSIsNTAwLDUwMF1dfQ==","signature":"fT8UPL6JZyFFDNnvp34hu19xTOA=","aws_access_key_id":"AKIAIKXW3ZZ5WNURNYMA","key":"uploads/8_19","url":"https://fileturn.s3.amazonaws.com"}'
87
87
  http_version:
88
88
  recorded_at: Sun, 07 Jul 2013 22:46:59 GMT
89
+ - request:
90
+ method: get
91
+ uri: http://fileturn.net/api/uploads/19.json?token=67sFfjudMpXxJeioQcPSppYkoVdQD1oetqPWzMAh
92
+ body:
93
+ encoding: US-ASCII
94
+ string: ''
95
+ headers:
96
+ User-Agent:
97
+ - Faraday v0.8.7
98
+ Accept-Encoding:
99
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
100
+ Accept:
101
+ - ! '*/*'
102
+ response:
103
+ status:
104
+ code: 401
105
+ message: Unauthorized
106
+ headers:
107
+ Cache-Control:
108
+ - no-cache
109
+ Content-Type:
110
+ - application/json; charset=utf-8
111
+ Date:
112
+ - Wed, 10 Jul 2013 02:23:47 GMT
113
+ Status:
114
+ - 401 Unauthorized
115
+ X-Rack-Cache:
116
+ - miss
117
+ X-Request-Id:
118
+ - d5d63ee6ce159a202618ebb9be0254e0
119
+ X-Runtime:
120
+ - '0.010437'
121
+ X-Ua-Compatible:
122
+ - IE=Edge,chrome=1
123
+ Transfer-Encoding:
124
+ - chunked
125
+ Connection:
126
+ - keep-alive
127
+ body:
128
+ encoding: US-ASCII
129
+ string: ! '{"error":"Your token is invalid","status":401}'
130
+ http_version:
131
+ recorded_at: Wed, 10 Jul 2013 02:26:17 GMT
89
132
  recorded_with: VCR 2.4.0
data/spec/spec_helper.rb CHANGED
@@ -5,6 +5,7 @@ require 'fileturn'
5
5
  require 'rspec'
6
6
  require 'ostruct'
7
7
  require 'vcr'
8
+ require 'stub_http_client'
8
9
 
9
10
  VCR.configure do |c|
10
11
  c.cassette_library_dir = 'spec/fixtures/vcr_cassettes'
@@ -0,0 +1,7 @@
1
+ module FileTurn
2
+ class HttpClient
3
+ def self.conn
4
+ @conn ||= Faraday.new(:url => 'http://localhost:3000/')
5
+ end
6
+ end
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fileturn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nisarg Shah
@@ -144,6 +144,7 @@ files:
144
144
  - spec/resources/file_spec.rb
145
145
  - spec/resources/upload_spec.rb
146
146
  - spec/spec_helper.rb
147
+ - spec/stub_http_client.rb
147
148
  homepage: ''
148
149
  licenses: []
149
150
  metadata: {}
@@ -196,3 +197,4 @@ test_files:
196
197
  - spec/resources/file_spec.rb
197
198
  - spec/resources/upload_spec.rb
198
199
  - spec/spec_helper.rb
200
+ - spec/stub_http_client.rb