reggie 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/lib/reggie.rb CHANGED
@@ -32,6 +32,7 @@ class Reggie
32
32
  :content_type => :json,
33
33
  :accept => :json
34
34
  rescue => e
35
+ e
35
36
  end
36
37
  end
37
- end
38
+ end
data/reggie.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{reggie}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jimmy Huang"]
12
- s.date = %q{2012-03-28}
12
+ s.date = %q{2012-03-29}
13
13
  s.description = %q{A Ruby wrapper for a caching API}
14
14
  s.email = %q{jimmy.huang@duragility.com}
15
15
  s.extra_rdoc_files = [
@@ -1,5 +1,4 @@
1
1
  ---
2
- recorded_with: VCR 2.0.0
3
2
  http_interactions:
4
3
  - request:
5
4
  method: put
@@ -7,301 +6,302 @@ http_interactions:
7
6
  body:
8
7
  string: "{\"MediaPath\":\"http://img.bleacherreport.net/img/slides/photos/002/037/135/137267039_crop_exact.jpg?w=650&h=440&q=85\",\"MediaType\":8}"
9
8
  headers:
10
- Accept:
11
- - application/json
12
- Content-Type:
13
- - application/json
14
9
  Content-Length:
15
10
  - "131"
16
- Authorization:
17
- - TOKEN
18
11
  Accept-Encoding:
19
12
  - gzip, deflate
13
+ Authorization:
14
+ - TOKEN
15
+ Accept:
16
+ - application/json
17
+ Content-Type:
18
+ - application/json
20
19
  response:
21
20
  status:
22
21
  code: 200
23
22
  message: OK
24
23
  headers:
25
- Server:
26
- - Microsoft-IIS/7.5
24
+ Content-Length:
25
+ - "0"
27
26
  Cache-Control:
28
27
  - private
29
- Date:
30
- - Wed, 28 Mar 2012 18:44:21 GMT
28
+ Server:
29
+ - Microsoft-IIS/7.5
31
30
  X-Aspnet-Version:
32
31
  - 4.0.30319
33
32
  X-Powered-By:
34
33
  - ASP.NET
35
- Content-Length:
36
- - "0"
34
+ Date:
35
+ - Thu, 29 Mar 2012 16:11:18 GMT
37
36
  body:
38
37
  string: ""
39
38
  http_version:
40
- recorded_at: Wed, 28 Mar 2012 18:45:33 GMT
39
+ recorded_at: Thu, 29 Mar 2012 16:12:35 GMT
41
40
  - request:
42
41
  method: put
43
42
  uri: https://api.edgecast.com/v2/mcc/customers/CUSTOMER_ID/edge/load
44
43
  body:
45
44
  string: "{\"MediaPath\":\"http://img.bleacherreport.net/img/slides/photos/002/037/135/XXX_crop_exact.jpg?w=650&h=440&q=85\",\"MediaType\":8}"
46
45
  headers:
47
- Accept:
48
- - application/json
49
- Content-Type:
50
- - application/json
51
46
  Content-Length:
52
47
  - "125"
53
- Authorization:
54
- - TOKEN
55
48
  Accept-Encoding:
56
49
  - gzip, deflate
50
+ Authorization:
51
+ - TOKEN
52
+ Accept:
53
+ - application/json
54
+ Content-Type:
55
+ - application/json
57
56
  response:
58
57
  status:
59
58
  code: 200
60
59
  message: OK
61
60
  headers:
62
- Server:
63
- - Microsoft-IIS/7.5
61
+ Content-Length:
62
+ - "0"
64
63
  Cache-Control:
65
64
  - private
66
- Date:
67
- - Wed, 28 Mar 2012 18:44:21 GMT
65
+ Server:
66
+ - Microsoft-IIS/7.5
68
67
  X-Aspnet-Version:
69
68
  - 4.0.30319
70
69
  X-Powered-By:
71
70
  - ASP.NET
72
- Content-Length:
73
- - "0"
71
+ Date:
72
+ - Thu, 29 Mar 2012 16:11:18 GMT
74
73
  body:
75
74
  string: ""
76
75
  http_version:
77
- recorded_at: Wed, 28 Mar 2012 18:45:34 GMT
76
+ recorded_at: Thu, 29 Mar 2012 16:12:36 GMT
78
77
  - request:
79
78
  method: put
80
79
  uri: https://api.edgecast.com/v2/mcc/customers/CUSTOMER_ID/edge/load
81
80
  body:
82
81
  string: "{\"MediaPath\":\"\",\"MediaType\":8}"
83
82
  headers:
84
- Accept:
85
- - application/json
86
- Content-Type:
87
- - application/json
88
83
  Content-Length:
89
84
  - "30"
90
- Authorization:
91
- - TOKEN
92
85
  Accept-Encoding:
93
86
  - gzip, deflate
87
+ Authorization:
88
+ - TOKEN
89
+ Accept:
90
+ - application/json
91
+ Content-Type:
92
+ - application/json
94
93
  response:
95
94
  status:
96
95
  code: 400
97
96
  message: Bad Request
98
97
  headers:
99
- Server:
100
- - Microsoft-IIS/7.5
98
+ Content-Length:
99
+ - "63"
101
100
  Cache-Control:
102
101
  - private
103
- Date:
104
- - Wed, 28 Mar 2012 18:44:22 GMT
102
+ Server:
103
+ - Microsoft-IIS/7.5
105
104
  X-Aspnet-Version:
106
105
  - 4.0.30319
107
106
  X-Powered-By:
108
107
  - ASP.NET
109
108
  Content-Type:
110
109
  - application/json; charset=utf-8
111
- Content-Length:
112
- - "63"
110
+ Date:
111
+ - Thu, 29 Mar 2012 16:11:19 GMT
113
112
  body:
114
113
  string: "{\"Message\":\"MediaPath: Path is required for this media type. \"}"
115
114
  http_version:
116
- recorded_at: Wed, 28 Mar 2012 18:45:34 GMT
115
+ recorded_at: Thu, 29 Mar 2012 16:12:36 GMT
117
116
  - request:
118
117
  method: put
119
118
  uri: https://api.edgecast.com/v2/mcc/customers/CUSTOMER_ID/edge/load
120
119
  body:
121
120
  string: "{\"MediaPath\":\"http://www.amazon.com\",\"MediaType\":8}"
122
121
  headers:
123
- Accept:
124
- - application/json
125
- Content-Type:
126
- - application/json
127
122
  Content-Length:
128
123
  - "51"
129
- Authorization:
130
- - TOKEN
131
124
  Accept-Encoding:
132
125
  - gzip, deflate
126
+ Authorization:
127
+ - TOKEN
128
+ Accept:
129
+ - application/json
130
+ Content-Type:
131
+ - application/json
133
132
  response:
134
133
  status:
135
134
  code: 400
136
135
  message: Bad Request
137
136
  headers:
138
- Server:
139
- - Microsoft-IIS/7.5
137
+ Content-Length:
138
+ - "183"
140
139
  Cache-Control:
141
140
  - private
142
- Date:
143
- - Wed, 28 Mar 2012 18:44:22 GMT
141
+ Server:
142
+ - Microsoft-IIS/7.5
144
143
  X-Aspnet-Version:
145
144
  - 4.0.30319
146
145
  X-Powered-By:
147
146
  - ASP.NET
148
147
  Content-Type:
149
148
  - application/json; charset=utf-8
150
- Content-Length:
151
- - "183"
149
+ Date:
150
+ - Thu, 29 Mar 2012 16:11:19 GMT
152
151
  body:
153
152
  string: "{\"Message\":\"Invalid strPath parameter. Please double check the path to make sure it is valid. Also check that the media type id represents the correct platform for the path given.\"}"
154
153
  http_version:
155
- recorded_at: Wed, 28 Mar 2012 18:45:35 GMT
154
+ recorded_at: Thu, 29 Mar 2012 16:12:37 GMT
156
155
  - request:
157
156
  method: put
158
157
  uri: https://api.edgecast.com/v2/mcc/customers/CUSTOMER_ID/edge/purge
159
158
  body:
160
159
  string: "{\"MediaPath\":\"http://img.bleacherreport.net/img/slides/photos/002/037/135/137267039_crop_exact.jpg?w=650&h=440&q=85\",\"MediaType\":8}"
161
160
  headers:
162
- Accept:
163
- - application/json
164
- Content-Type:
165
- - application/json
166
161
  Content-Length:
167
162
  - "131"
168
- Authorization:
169
- - TOKEN
170
163
  Accept-Encoding:
171
164
  - gzip, deflate
165
+ Authorization:
166
+ - TOKEN
167
+ Accept:
168
+ - application/json
169
+ Content-Type:
170
+ - application/json
172
171
  response:
173
172
  status:
174
173
  code: 200
175
174
  message: OK
176
175
  headers:
177
- Server:
178
- - Microsoft-IIS/7.5
176
+ Content-Length:
177
+ - "0"
179
178
  Cache-Control:
180
179
  - private
181
- Date:
182
- - Wed, 28 Mar 2012 18:44:23 GMT
180
+ Server:
181
+ - Microsoft-IIS/7.5
183
182
  X-Aspnet-Version:
184
183
  - 4.0.30319
185
184
  X-Powered-By:
186
185
  - ASP.NET
187
- Content-Length:
188
- - "0"
186
+ Date:
187
+ - Thu, 29 Mar 2012 16:11:19 GMT
189
188
  body:
190
189
  string: ""
191
190
  http_version:
192
- recorded_at: Wed, 28 Mar 2012 18:45:36 GMT
191
+ recorded_at: Thu, 29 Mar 2012 16:12:37 GMT
193
192
  - request:
194
193
  method: put
195
194
  uri: https://api.edgecast.com/v2/mcc/customers/CUSTOMER_ID/edge/purge
196
195
  body:
197
196
  string: "{\"MediaPath\":\"http://img.bleacherreport.net/img/slides/photos/002/037/135/XXX_crop_exact.jpg?w=650&h=440&q=85\",\"MediaType\":8}"
198
197
  headers:
199
- Accept:
200
- - application/json
201
- Content-Type:
202
- - application/json
203
198
  Content-Length:
204
199
  - "125"
205
- Authorization:
206
- - TOKEN
207
200
  Accept-Encoding:
208
201
  - gzip, deflate
202
+ Authorization:
203
+ - TOKEN
204
+ Accept:
205
+ - application/json
206
+ Content-Type:
207
+ - application/json
209
208
  response:
210
209
  status:
211
210
  code: 200
212
211
  message: OK
213
212
  headers:
214
- Server:
215
- - Microsoft-IIS/7.5
213
+ Content-Length:
214
+ - "0"
216
215
  Cache-Control:
217
216
  - private
218
- Date:
219
- - Wed, 28 Mar 2012 18:44:23 GMT
217
+ Server:
218
+ - Microsoft-IIS/7.5
220
219
  X-Aspnet-Version:
221
220
  - 4.0.30319
222
221
  X-Powered-By:
223
222
  - ASP.NET
224
- Content-Length:
225
- - "0"
223
+ Date:
224
+ - Thu, 29 Mar 2012 16:11:20 GMT
226
225
  body:
227
226
  string: ""
228
227
  http_version:
229
- recorded_at: Wed, 28 Mar 2012 18:45:36 GMT
228
+ recorded_at: Thu, 29 Mar 2012 16:12:37 GMT
230
229
  - request:
231
230
  method: put
232
231
  uri: https://api.edgecast.com/v2/mcc/customers/CUSTOMER_ID/edge/purge
233
232
  body:
234
233
  string: "{\"MediaPath\":\"\",\"MediaType\":8}"
235
234
  headers:
236
- Accept:
237
- - application/json
238
- Content-Type:
239
- - application/json
240
235
  Content-Length:
241
236
  - "30"
242
- Authorization:
243
- - TOKEN
244
237
  Accept-Encoding:
245
238
  - gzip, deflate
239
+ Authorization:
240
+ - TOKEN
241
+ Accept:
242
+ - application/json
243
+ Content-Type:
244
+ - application/json
246
245
  response:
247
246
  status:
248
247
  code: 400
249
248
  message: Bad Request
250
249
  headers:
251
- Server:
252
- - Microsoft-IIS/7.5
250
+ Content-Length:
251
+ - "63"
253
252
  Cache-Control:
254
253
  - private
255
- Date:
256
- - Wed, 28 Mar 2012 18:44:24 GMT
254
+ Server:
255
+ - Microsoft-IIS/7.5
257
256
  X-Aspnet-Version:
258
257
  - 4.0.30319
259
258
  X-Powered-By:
260
259
  - ASP.NET
261
260
  Content-Type:
262
261
  - application/json; charset=utf-8
263
- Content-Length:
264
- - "63"
262
+ Date:
263
+ - Thu, 29 Mar 2012 16:11:20 GMT
265
264
  body:
266
265
  string: "{\"Message\":\"MediaPath: Path is required for this media type. \"}"
267
266
  http_version:
268
- recorded_at: Wed, 28 Mar 2012 18:45:36 GMT
267
+ recorded_at: Thu, 29 Mar 2012 16:12:38 GMT
269
268
  - request:
270
269
  method: put
271
270
  uri: https://api.edgecast.com/v2/mcc/customers/CUSTOMER_ID/edge/purge
272
271
  body:
273
272
  string: "{\"MediaPath\":\"http://www.amazon.com\",\"MediaType\":8}"
274
273
  headers:
275
- Accept:
276
- - application/json
277
- Content-Type:
278
- - application/json
279
274
  Content-Length:
280
275
  - "51"
281
- Authorization:
282
- - TOKEN
283
276
  Accept-Encoding:
284
277
  - gzip, deflate
278
+ Authorization:
279
+ - TOKEN
280
+ Accept:
281
+ - application/json
282
+ Content-Type:
283
+ - application/json
285
284
  response:
286
285
  status:
287
286
  code: 400
288
287
  message: Bad Request
289
288
  headers:
290
- Server:
291
- - Microsoft-IIS/7.5
289
+ Content-Length:
290
+ - "183"
292
291
  Cache-Control:
293
292
  - private
294
- Date:
295
- - Wed, 28 Mar 2012 18:44:24 GMT
293
+ Server:
294
+ - Microsoft-IIS/7.5
296
295
  X-Aspnet-Version:
297
296
  - 4.0.30319
298
297
  X-Powered-By:
299
298
  - ASP.NET
300
299
  Content-Type:
301
300
  - application/json; charset=utf-8
302
- Content-Length:
303
- - "183"
301
+ Date:
302
+ - Thu, 29 Mar 2012 16:11:20 GMT
304
303
  body:
305
304
  string: "{\"Message\":\"Invalid strPath parameter. Please double check the path to make sure it is valid. Also check that the media type id represents the correct platform for the path given.\"}"
306
305
  http_version:
307
- recorded_at: Wed, 28 Mar 2012 18:45:37 GMT
306
+ recorded_at: Thu, 29 Mar 2012 16:12:38 GMT
307
+ recorded_with: VCR 2.0.0
@@ -1,5 +1,4 @@
1
1
  ---
2
- recorded_with: VCR 2.0.0
3
2
  http_interactions:
4
3
  - request:
5
4
  method: get
@@ -7,137 +6,138 @@ http_interactions:
7
6
  body:
8
7
  string: ""
9
8
  headers:
10
- Accept:
11
- - application/json
12
- Authorization:
13
- - TOKEN
14
9
  Accept-Encoding:
15
10
  - gzip, deflate
11
+ Authorization:
12
+ - TOKEN
13
+ Accept:
14
+ - application/json
16
15
  response:
17
16
  status:
18
17
  code: 200
19
18
  message: OK
20
19
  headers:
21
- Server:
22
- - Microsoft-IIS/7.5
20
+ Content-Length:
21
+ - "133"
23
22
  Cache-Control:
24
23
  - private
25
- Date:
26
- - Wed, 28 Mar 2012 18:44:20 GMT
24
+ Server:
25
+ - Microsoft-IIS/7.5
27
26
  X-Aspnet-Version:
28
27
  - 4.0.30319
29
28
  X-Powered-By:
30
29
  - ASP.NET
31
30
  Content-Type:
32
31
  - application/json; charset=utf-8
33
- Content-Length:
34
- - "133"
32
+ Date:
33
+ - Thu, 29 Mar 2012 16:11:17 GMT
35
34
  body:
36
35
  string: "[{\"MediaTypeId\":8,\"Status\":1,\"ContentTypes\":[\"text\\/plain\",\"text\\/html\",\"text\\/css\",\"application\\/x-javascript\",\"text\\/javascript\"]}]"
37
36
  http_version:
38
- recorded_at: Wed, 28 Mar 2012 18:45:32 GMT
37
+ recorded_at: Thu, 29 Mar 2012 16:12:35 GMT
39
38
  - request:
40
39
  method: get
41
40
  uri: https://api.edgecast.com/v2/mcc/customers/XXXX/compression
42
41
  body:
43
42
  string: ""
44
43
  headers:
45
- Accept:
46
- - application/json
47
- Authorization:
48
- - invalid
49
44
  Accept-Encoding:
50
45
  - gzip, deflate
46
+ Authorization:
47
+ - invalid
48
+ Accept:
49
+ - application/json
51
50
  response:
52
51
  status:
53
52
  code: 403
54
53
  message: Forbidden
55
54
  headers:
56
- Server:
57
- - Microsoft-IIS/7.5
55
+ Content-Length:
56
+ - "26"
58
57
  Cache-Control:
59
58
  - private
60
- Date:
61
- - Wed, 28 Mar 2012 18:44:20 GMT
59
+ Server:
60
+ - Microsoft-IIS/7.5
62
61
  X-Aspnet-Version:
63
62
  - 4.0.30319
64
63
  X-Powered-By:
65
64
  - ASP.NET
66
65
  Content-Type:
67
66
  - application/json; charset=utf-8
68
- Content-Length:
69
- - "26"
67
+ Date:
68
+ - Thu, 29 Mar 2012 16:11:17 GMT
70
69
  body:
71
70
  string: "{\"Message\":\"Invalid User\"}"
72
71
  http_version:
73
- recorded_at: Wed, 28 Mar 2012 18:45:32 GMT
72
+ recorded_at: Thu, 29 Mar 2012 16:12:35 GMT
74
73
  - request:
75
74
  method: get
76
75
  uri: https://api.edgecast.com/v2/mcc/customers/XXXX/compression
77
76
  body:
78
77
  string: ""
79
78
  headers:
80
- Accept:
81
- - application/json
82
- Authorization:
83
- - valid
84
79
  Accept-Encoding:
85
80
  - gzip, deflate
81
+ Authorization:
82
+ - valid
83
+ Accept:
84
+ - application/json
86
85
  response:
87
86
  status:
88
87
  code: 403
89
88
  message: Forbidden
90
89
  headers:
91
- Server:
92
- - Microsoft-IIS/7.5
90
+ Content-Length:
91
+ - "26"
93
92
  Cache-Control:
94
93
  - private
95
- Date:
96
- - Wed, 28 Mar 2012 18:44:20 GMT
94
+ Server:
95
+ - Microsoft-IIS/7.5
97
96
  X-Aspnet-Version:
98
97
  - 4.0.30319
99
98
  X-Powered-By:
100
99
  - ASP.NET
101
100
  Content-Type:
102
101
  - application/json; charset=utf-8
103
- Content-Length:
104
- - "26"
102
+ Date:
103
+ - Thu, 29 Mar 2012 16:11:17 GMT
105
104
  body:
106
105
  string: "{\"Message\":\"Invalid User\"}"
107
106
  http_version:
108
- recorded_at: Wed, 28 Mar 2012 18:45:33 GMT
107
+ recorded_at: Thu, 29 Mar 2012 16:12:35 GMT
109
108
  - request:
110
109
  method: get
111
110
  uri: https://api.edgecast.com/v2/mcc/customers/XXXX/compression
112
111
  body:
113
112
  string: ""
114
113
  headers:
115
- Accept:
116
- - application/json
117
- Authorization:
118
- - invalid
119
114
  Accept-Encoding:
120
115
  - gzip, deflate
116
+ Authorization:
117
+ - invalid
118
+ Accept:
119
+ - application/json
121
120
  response:
122
121
  status:
123
122
  code: 403
124
123
  message: Forbidden
125
124
  headers:
126
- Server:
127
- - Microsoft-IIS/7.5
125
+ Content-Length:
126
+ - "26"
128
127
  Cache-Control:
129
128
  - private
130
- Date:
131
- - Wed, 28 Mar 2012 18:44:20 GMT
129
+ Server:
130
+ - Microsoft-IIS/7.5
132
131
  X-Aspnet-Version:
133
132
  - 4.0.30319
134
133
  X-Powered-By:
135
134
  - ASP.NET
136
135
  Content-Type:
137
136
  - application/json; charset=utf-8
138
- Content-Length:
139
- - "26"
137
+ Date:
138
+ - Thu, 29 Mar 2012 16:11:17 GMT
140
139
  body:
141
140
  string: "{\"Message\":\"Invalid User\"}"
142
141
  http_version:
143
- recorded_at: Wed, 28 Mar 2012 18:45:33 GMT
142
+ recorded_at: Thu, 29 Mar 2012 16:12:35 GMT
143
+ recorded_with: VCR 2.0.0
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reggie
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jimmy Huang
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-28 00:00:00 -07:00
18
+ date: 2012-03-29 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency