our-eel-hacks 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/our-eel-hacks/autoscaler.rb +199 -0
- data/lib/our-eel-hacks/defer/event-machine.rb +12 -0
- data/lib/our-eel-hacks/middleware.rb +15 -0
- data/lib/our-eel-hacks/rack.rb +29 -0
- data/lib/our-eel-hacks/sidekiq.rb +23 -0
- data/spec/autoscaler.rb +187 -0
- data/spec/rack.rb +42 -0
- data/spec_help/cassettes/OurEelHacks_Autoscaler.yml +395 -0
- data/spec_help/cassettes/OurEelHacks_Rack.yml +640 -0
- data/spec_help/file-sandbox.rb +164 -0
- data/spec_help/gem_test_suite.rb +17 -0
- data/spec_help/spec_helper.rb +23 -0
- metadata +93 -0
@@ -0,0 +1,395 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: https://:FakeApiKey@api.heroku.com/apps/sbmp
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
accept:
|
11
|
+
- ! '*/*; q=0.5, application/xml'
|
12
|
+
accept-encoding:
|
13
|
+
- gzip, deflate
|
14
|
+
x-heroku-api-version:
|
15
|
+
- '2'
|
16
|
+
user-agent:
|
17
|
+
- heroku-gem/2.25.0
|
18
|
+
x-ruby-version:
|
19
|
+
- 1.9.3
|
20
|
+
x-ruby-platform:
|
21
|
+
- i686-linux
|
22
|
+
authorization:
|
23
|
+
- Basic OjYzMWJiYjJhYWI1NjhkOTNmMTk3Mzc1MDY5NjM0N2Y3ZjlmZWE4ZjY=
|
24
|
+
response:
|
25
|
+
status:
|
26
|
+
code: 200
|
27
|
+
message: OK
|
28
|
+
headers:
|
29
|
+
server:
|
30
|
+
- nginx
|
31
|
+
date:
|
32
|
+
- Fri, 04 May 2012 23:49:24 GMT
|
33
|
+
content-type:
|
34
|
+
- application/xml; charset=utf-8
|
35
|
+
connection:
|
36
|
+
- keep-alive
|
37
|
+
status:
|
38
|
+
- 200 OK
|
39
|
+
etag:
|
40
|
+
- ! '"e32026fbb1ab6519a01cf80025f08660"'
|
41
|
+
x-runtime:
|
42
|
+
- '227'
|
43
|
+
content-length:
|
44
|
+
- '871'
|
45
|
+
cache-control:
|
46
|
+
- private, max-age=0, must-revalidate
|
47
|
+
strict-transport-security:
|
48
|
+
- max-age=500
|
49
|
+
body:
|
50
|
+
encoding: US-ASCII
|
51
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<app>\n <created-at
|
52
|
+
type=\"datetime\">2012-02-26T21:42:49-08:00</created-at>\n <dynos type=\"integer\">0</dynos>\n
|
53
|
+
\ <name>sbmp</name>\n <repo-size type=\"integer\">220864512</repo-size>\n
|
54
|
+
\ <requested-stack nil=\"true\"></requested-stack>\n <slug-size type=\"integer\">85061632</slug-size>\n
|
55
|
+
\ <stack>cedar</stack>\n <workers type=\"integer\">0</workers>\n <create-status
|
56
|
+
type=\"symbol\">complete</create-status>\n <repo-migrate-status type=\"symbol\">complete</repo-migrate-status>\n
|
57
|
+
\ <buildpack-provided-description>Ruby/Rails</buildpack-provided-description>\n
|
58
|
+
\ <id>app3049118@heroku.com</id>\n <domain_name>sbmp.herokuapp.com</domain_name>\n
|
59
|
+
\ <owner>aws@salesbump.com</owner>\n <web_url>http://sbmp.herokuapp.com/</web_url>\n
|
60
|
+
\ <git_url>git@heroku.com:sbmp.git</git_url>\n <database_size></database_size>\n
|
61
|
+
\ <stateless-codex>true</stateless-codex>\n</app>\n"
|
62
|
+
http_version: '1.1'
|
63
|
+
recorded_at: Fri, 04 May 2012 23:47:21 GMT
|
64
|
+
- request:
|
65
|
+
method: get
|
66
|
+
uri: https://:FakeApiKey@api.heroku.com/apps/sbmp/collaborators
|
67
|
+
body:
|
68
|
+
encoding: US-ASCII
|
69
|
+
string: ''
|
70
|
+
headers:
|
71
|
+
accept:
|
72
|
+
- ! '*/*; q=0.5, application/xml'
|
73
|
+
accept-encoding:
|
74
|
+
- gzip, deflate
|
75
|
+
x-heroku-api-version:
|
76
|
+
- '2'
|
77
|
+
user-agent:
|
78
|
+
- heroku-gem/2.25.0
|
79
|
+
x-ruby-version:
|
80
|
+
- 1.9.3
|
81
|
+
x-ruby-platform:
|
82
|
+
- i686-linux
|
83
|
+
authorization:
|
84
|
+
- Basic OjYzMWJiYjJhYWI1NjhkOTNmMTk3Mzc1MDY5NjM0N2Y3ZjlmZWE4ZjY=
|
85
|
+
response:
|
86
|
+
status:
|
87
|
+
code: 200
|
88
|
+
message: OK
|
89
|
+
headers:
|
90
|
+
server:
|
91
|
+
- nginx
|
92
|
+
date:
|
93
|
+
- Fri, 04 May 2012 23:49:24 GMT
|
94
|
+
content-type:
|
95
|
+
- application/xml; charset=utf-8
|
96
|
+
connection:
|
97
|
+
- keep-alive
|
98
|
+
status:
|
99
|
+
- 200 OK
|
100
|
+
etag:
|
101
|
+
- ! '"89032632d1ae99be4cc6bc10767a1adc"'
|
102
|
+
x-runtime:
|
103
|
+
- '73'
|
104
|
+
content-length:
|
105
|
+
- '270'
|
106
|
+
cache-control:
|
107
|
+
- private, max-age=0, must-revalidate
|
108
|
+
strict-transport-security:
|
109
|
+
- max-age=500
|
110
|
+
body:
|
111
|
+
encoding: US-ASCII
|
112
|
+
string: ! "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<collaborators>\n <collaborator>\n
|
113
|
+
\ <email>aws@salesbump.com</email>\n <access>edit</access>\n </collaborator>\n
|
114
|
+
\ <collaborator>\n <email>judson@lrdesign.com</email>\n <access>edit</access>\n
|
115
|
+
\ </collaborator>\n</collaborators>\n"
|
116
|
+
http_version: '1.1'
|
117
|
+
recorded_at: Fri, 04 May 2012 23:47:22 GMT
|
118
|
+
- request:
|
119
|
+
method: get
|
120
|
+
uri: https://:FakeApiKey@api.heroku.com/apps/sbmp/addons
|
121
|
+
body:
|
122
|
+
encoding: US-ASCII
|
123
|
+
string: ''
|
124
|
+
headers:
|
125
|
+
accept:
|
126
|
+
- application/json
|
127
|
+
accept-encoding:
|
128
|
+
- gzip, deflate
|
129
|
+
x-heroku-api-version:
|
130
|
+
- '2'
|
131
|
+
user-agent:
|
132
|
+
- heroku-gem/2.25.0
|
133
|
+
x-ruby-version:
|
134
|
+
- 1.9.3
|
135
|
+
x-ruby-platform:
|
136
|
+
- i686-linux
|
137
|
+
authorization:
|
138
|
+
- Basic OjYzMWJiYjJhYWI1NjhkOTNmMTk3Mzc1MDY5NjM0N2Y3ZjlmZWE4ZjY=
|
139
|
+
response:
|
140
|
+
status:
|
141
|
+
code: 200
|
142
|
+
message: OK
|
143
|
+
headers:
|
144
|
+
server:
|
145
|
+
- nginx
|
146
|
+
date:
|
147
|
+
- Fri, 04 May 2012 23:49:25 GMT
|
148
|
+
content-type:
|
149
|
+
- application/json; charset=utf-8
|
150
|
+
connection:
|
151
|
+
- keep-alive
|
152
|
+
status:
|
153
|
+
- 200 OK
|
154
|
+
etag:
|
155
|
+
- ! '"3af6412d378895e01d969c520cc169c5"'
|
156
|
+
x-runtime:
|
157
|
+
- '45'
|
158
|
+
content-length:
|
159
|
+
- '818'
|
160
|
+
cache-control:
|
161
|
+
- private, max-age=0, must-revalidate
|
162
|
+
strict-transport-security:
|
163
|
+
- max-age=500
|
164
|
+
body:
|
165
|
+
encoding: US-ASCII
|
166
|
+
string: ! '[{"beta":false,"attachable":false,"configured":"mysql2://sbmpdev:sbmpdev2244@dev.c2wvnyihe8jq.us-east-1.rds.amazonaws.com/sbmp","url":"http://devcenter.heroku.com/articles/amazon_rds","state":"public","name":"amazon_rds","description":"Amazon
|
167
|
+
RDS","price":{"cents":0,"unit":"month"}},{"beta":false,"attachable":false,"configured":true,"url":null,"state":"public","name":"redistogo:medium","description":"Redis
|
168
|
+
To Go Medium","price":{"cents":11000,"unit":"month"}},{"beta":false,"attachable":false,"configured":true,"url":null,"state":"public","name":"sendgrid:starter","description":"SendGrid
|
169
|
+
Starter","price":{"cents":0,"unit":"month"}},{"beta":false,"attachable":false,"configured":true,"url":null,"state":"public","name":"shared-database:5mb","description":"Shared
|
170
|
+
Database 5MB","price":{"cents":0,"unit":"month"}}]'
|
171
|
+
http_version: '1.1'
|
172
|
+
recorded_at: Fri, 04 May 2012 23:47:22 GMT
|
173
|
+
- request:
|
174
|
+
method: get
|
175
|
+
uri: https://:FakeApiKey@api.heroku.com/apps/sbmp/ps
|
176
|
+
body:
|
177
|
+
encoding: US-ASCII
|
178
|
+
string: ''
|
179
|
+
headers:
|
180
|
+
accept:
|
181
|
+
- application/json
|
182
|
+
accept-encoding:
|
183
|
+
- gzip, deflate
|
184
|
+
x-heroku-api-version:
|
185
|
+
- '2'
|
186
|
+
user-agent:
|
187
|
+
- heroku-gem/2.25.0
|
188
|
+
x-ruby-version:
|
189
|
+
- 1.9.3
|
190
|
+
x-ruby-platform:
|
191
|
+
- i686-linux
|
192
|
+
authorization:
|
193
|
+
- Basic OjYzMWJiYjJhYWI1NjhkOTNmMTk3Mzc1MDY5NjM0N2Y3ZjlmZWE4ZjY=
|
194
|
+
response:
|
195
|
+
status:
|
196
|
+
code: 200
|
197
|
+
message: !binary |-
|
198
|
+
T0s=
|
199
|
+
headers:
|
200
|
+
!binary "c2VydmVy":
|
201
|
+
- !binary |-
|
202
|
+
bmdpbng=
|
203
|
+
!binary "ZGF0ZQ==":
|
204
|
+
- !binary |-
|
205
|
+
RnJpLCAwNCBNYXkgMjAxMiAyMzo0OToyNiBHTVQ=
|
206
|
+
!binary "Y29udGVudC10eXBl":
|
207
|
+
- !binary |-
|
208
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
209
|
+
!binary "dHJhbnNmZXItZW5jb2Rpbmc=":
|
210
|
+
- !binary |-
|
211
|
+
Y2h1bmtlZA==
|
212
|
+
!binary "Y29ubmVjdGlvbg==":
|
213
|
+
- !binary |-
|
214
|
+
a2VlcC1hbGl2ZQ==
|
215
|
+
!binary "c3RhdHVz":
|
216
|
+
- !binary |-
|
217
|
+
MjAwIE9L
|
218
|
+
!binary "ZXRhZw==":
|
219
|
+
- !binary |-
|
220
|
+
IjNlNzc1OWE1ZDJmZWIyMWRjYzViZDc2NTQ3YjEyMmJkIg==
|
221
|
+
!binary "eC1ydW50aW1l":
|
222
|
+
- !binary |-
|
223
|
+
OTQ=
|
224
|
+
!binary "Y2FjaGUtY29udHJvbA==":
|
225
|
+
- !binary |-
|
226
|
+
cHJpdmF0ZSwgbWF4LWFnZT0wLCBtdXN0LXJldmFsaWRhdGU=
|
227
|
+
!binary "c3RyaWN0LXRyYW5zcG9ydC1zZWN1cml0eQ==":
|
228
|
+
- !binary |-
|
229
|
+
bWF4LWFnZT01MDA=
|
230
|
+
!binary "Y29udGVudC1lbmNvZGluZw==":
|
231
|
+
- !binary |-
|
232
|
+
Z3ppcA==
|
233
|
+
body:
|
234
|
+
encoding: ASCII-8BIT
|
235
|
+
string: !binary |-
|
236
|
+
H4sIAAAAAAAAA9yU0U7DIBSGX4UQLzsHpS20L+FivDOmYe2pa0YpAp1O47sL
|
237
|
+
JsarmS5bemG4Oj/wn8OXc3j8wE5Nz7jCedeJhohaApQ4wdKYWssBwo7bDiYo
|
238
|
+
k+nbEGWsJJzkIijNOAxSR3E76VYBgjdokJW9csiBPYBFftdrtDLoZnN3/xBt
|
239
|
+
G9+POtyYoqWxYwPOhfAVtrc0KBZ0C++HcXL1ZBWu9KRUgkFJ4yAkopSIIsH+
|
240
|
+
aGJhGxcdvZfNLm52UjmIpuD9sXZeevhOhLrRIrYLZ3+1EHgrtetjOdDW0gc5
|
241
|
+
JTRdk3xNMkRZlWUVK9EqPJbgz+R8TllKilyQ63NK53HKluOU0Us45SIsfpKT
|
242
|
+
61vY9y9o1SAq/kIz2j3YeV1EOV+KDquIuJjO6Wk7k86s3qFcLEiHX0CnFFSI
|
243
|
+
orj+jLF/9RcVeUlyxq82Y7PoUF4u2EXFD52nLwAAAP//AwAciwvl0wYAAA==
|
244
|
+
http_version: !binary |-
|
245
|
+
MS4x
|
246
|
+
recorded_at: Fri, 04 May 2012 23:47:23 GMT
|
247
|
+
- request:
|
248
|
+
method: get
|
249
|
+
uri: https://:FakeApiKey@api.heroku.com/apps/sbmp/ps
|
250
|
+
body:
|
251
|
+
encoding: US-ASCII
|
252
|
+
string: ''
|
253
|
+
headers:
|
254
|
+
accept:
|
255
|
+
- application/json
|
256
|
+
accept-encoding:
|
257
|
+
- gzip, deflate
|
258
|
+
x-heroku-api-version:
|
259
|
+
- '2'
|
260
|
+
user-agent:
|
261
|
+
- heroku-gem/2.25.0
|
262
|
+
x-ruby-version:
|
263
|
+
- 1.9.3
|
264
|
+
x-ruby-platform:
|
265
|
+
- i686-linux
|
266
|
+
authorization:
|
267
|
+
- Basic OjYzMWJiYjJhYWI1NjhkOTNmMTk3Mzc1MDY5NjM0N2Y3ZjlmZWE4ZjY=
|
268
|
+
response:
|
269
|
+
status:
|
270
|
+
code: 200
|
271
|
+
message: !binary |-
|
272
|
+
T0s=
|
273
|
+
headers:
|
274
|
+
!binary "c2VydmVy":
|
275
|
+
- !binary |-
|
276
|
+
bmdpbng=
|
277
|
+
!binary "ZGF0ZQ==":
|
278
|
+
- !binary |-
|
279
|
+
U2F0LCAwNSBNYXkgMjAxMiAwMDoyNjozOSBHTVQ=
|
280
|
+
!binary "Y29udGVudC10eXBl":
|
281
|
+
- !binary |-
|
282
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
283
|
+
!binary "dHJhbnNmZXItZW5jb2Rpbmc=":
|
284
|
+
- !binary |-
|
285
|
+
Y2h1bmtlZA==
|
286
|
+
!binary "Y29ubmVjdGlvbg==":
|
287
|
+
- !binary |-
|
288
|
+
a2VlcC1hbGl2ZQ==
|
289
|
+
!binary "c3RhdHVz":
|
290
|
+
- !binary |-
|
291
|
+
MjAwIE9L
|
292
|
+
!binary "ZXRhZw==":
|
293
|
+
- !binary |-
|
294
|
+
IjIyOTA5YzI5YzhjMzUxODNlZTY5YjgzNjdlNjIyYTgxIg==
|
295
|
+
!binary "eC1ydW50aW1l":
|
296
|
+
- !binary |-
|
297
|
+
MzE5
|
298
|
+
!binary "Y2FjaGUtY29udHJvbA==":
|
299
|
+
- !binary |-
|
300
|
+
cHJpdmF0ZSwgbWF4LWFnZT0wLCBtdXN0LXJldmFsaWRhdGU=
|
301
|
+
!binary "c3RyaWN0LXRyYW5zcG9ydC1zZWN1cml0eQ==":
|
302
|
+
- !binary |-
|
303
|
+
bWF4LWFnZT01MDA=
|
304
|
+
!binary "Y29udGVudC1lbmNvZGluZw==":
|
305
|
+
- !binary |-
|
306
|
+
Z3ppcA==
|
307
|
+
body:
|
308
|
+
encoding: ASCII-8BIT
|
309
|
+
string: !binary |-
|
310
|
+
H4sIAAAAAAAAA9yU0U7DIBSGX4UQLzsHhba0L+FivDOmYe2pa0YpAp1O47sL
|
311
|
+
JsarmS5bemG4Oj/wn8OXc3j8wE5Nz7jCWdeJhohaApQ4wdKYWssBwo7bDiYo
|
312
|
+
k+nbEHFWkoJkIijNOAxSR3E76VYBgjdokJW9csiBPYBFftdrtDLoZnN3/xBt
|
313
|
+
G9+POtyYoqWxYwPOhfAVtrc0KBZ0C++HcXL1ZBWu9KRUgkFJ4yAkooylJMH+
|
314
|
+
aGJhGxcdvZfNLm52UjmIpuD9sXZeevhOhLrRIrYLZ3+1EHgrtetjOdDW0gc5
|
315
|
+
JTRdk2xNOKKs4rxiJVqFxxL8mZzPiackzwS5Pqd0FicqluPE6SWcMhFWcZKT
|
316
|
+
61vY9y9o1SAq/kIz2j3YeV3EKV2KDquIuJjO6Wk7k86s3lmWTnEBnVJQIfL8
|
317
|
+
+jPG/tVflGclyVhxtRmbRYfTdMEuyn/oPH0BAAD//wMAvvFamtMGAAA=
|
318
|
+
http_version: !binary |-
|
319
|
+
MS4x
|
320
|
+
recorded_at: Sat, 05 May 2012 00:24:35 GMT
|
321
|
+
- request:
|
322
|
+
method: get
|
323
|
+
uri: https://:FakeApiKey@api.heroku.com/apps/sbmp/ps
|
324
|
+
body:
|
325
|
+
encoding: US-ASCII
|
326
|
+
string: ''
|
327
|
+
headers:
|
328
|
+
accept:
|
329
|
+
- application/json
|
330
|
+
accept-encoding:
|
331
|
+
- gzip, deflate
|
332
|
+
x-heroku-api-version:
|
333
|
+
- '2'
|
334
|
+
user-agent:
|
335
|
+
- heroku-gem/2.25.0
|
336
|
+
x-ruby-version:
|
337
|
+
- 1.9.3
|
338
|
+
x-ruby-platform:
|
339
|
+
- i686-linux
|
340
|
+
authorization:
|
341
|
+
- Basic OjYzMWJiYjJhYWI1NjhkOTNmMTk3Mzc1MDY5NjM0N2Y3ZjlmZWE4ZjY=
|
342
|
+
response:
|
343
|
+
status:
|
344
|
+
code: 200
|
345
|
+
message: !binary |-
|
346
|
+
T0s=
|
347
|
+
headers:
|
348
|
+
!binary "c2VydmVy":
|
349
|
+
- !binary |-
|
350
|
+
bmdpbng=
|
351
|
+
!binary "ZGF0ZQ==":
|
352
|
+
- !binary |-
|
353
|
+
U2F0LCAwNSBNYXkgMjAxMiAwMDo1NDo0OCBHTVQ=
|
354
|
+
!binary "Y29udGVudC10eXBl":
|
355
|
+
- !binary |-
|
356
|
+
YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
|
357
|
+
!binary "dHJhbnNmZXItZW5jb2Rpbmc=":
|
358
|
+
- !binary |-
|
359
|
+
Y2h1bmtlZA==
|
360
|
+
!binary "Y29ubmVjdGlvbg==":
|
361
|
+
- !binary |-
|
362
|
+
a2VlcC1hbGl2ZQ==
|
363
|
+
!binary "c3RhdHVz":
|
364
|
+
- !binary |-
|
365
|
+
MjAwIE9L
|
366
|
+
!binary "ZXRhZw==":
|
367
|
+
- !binary |-
|
368
|
+
IjViM2E5NWUyNjY2ZmVjYWEwYTUwZGQyNTExMTAxZTJiIg==
|
369
|
+
!binary "eC1ydW50aW1l":
|
370
|
+
- !binary |-
|
371
|
+
MTAz
|
372
|
+
!binary "Y2FjaGUtY29udHJvbA==":
|
373
|
+
- !binary |-
|
374
|
+
cHJpdmF0ZSwgbWF4LWFnZT0wLCBtdXN0LXJldmFsaWRhdGU=
|
375
|
+
!binary "c3RyaWN0LXRyYW5zcG9ydC1zZWN1cml0eQ==":
|
376
|
+
- !binary |-
|
377
|
+
bWF4LWFnZT01MDA=
|
378
|
+
!binary "Y29udGVudC1lbmNvZGluZw==":
|
379
|
+
- !binary |-
|
380
|
+
Z3ppcA==
|
381
|
+
body:
|
382
|
+
encoding: ASCII-8BIT
|
383
|
+
string: !binary |-
|
384
|
+
H4sIAAAAAAAAA9yUUU+DMBDHv0rT+MjcFSgUvoSL8c0Y0sHhyEqpbZlO43e3
|
385
|
+
mBifZli28GD6dP+2/7v+ctfHD+rU+ExLyttW1CAqiVjQiEpjKi17DDtu25ug
|
386
|
+
jKZrQpQmBeTARVDqoe+lnsTtqBuFBN+wJlZ2yhGH9oCW+F2nycqQm83d/cNk
|
387
|
+
W/tu0OHGOFkaO9ToXAhfcXvLgmJRN/h+GEZXjVbRUo9KRRSVNA5DIsYBioj6
|
388
|
+
o5kK27jJ0XtZ76bNViqHkyl6f6yclx6/E5F2sCTdhbO/Wgi8ldp1UznYVNIH
|
389
|
+
OQYWr4GvISUsKdO0TAqyCo8F+hmdzymNIeMCrs8pnscpX45Tyi7hxEVY+UlO
|
390
|
+
rmtw372QVU2Y+AvNYPdo53URA1iKTlKCuJjO6Wk7k86s3lmWTn4BnUIwIbLs
|
391
|
+
+jOW/Ku/KOMF8CS/2ozNosOALdhF2Q+dpy8AAAD//wMAdKO+7NMGAAA=
|
392
|
+
http_version: !binary |-
|
393
|
+
MS4x
|
394
|
+
recorded_at: Sat, 05 May 2012 00:52:44 GMT
|
395
|
+
recorded_with: VCR 2.1.1
|