celluloid 0.0.3 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  # Monkeypatch Thread to allow lazy access to its Celluloid::Mailbox
2
2
  class Thread
3
3
  def mailbox
4
- @mailbox ||= Celluloid::Mailbox.new
4
+ self[:mailbox] ||= Celluloid::Mailbox.new
5
5
  end
6
6
  end
@@ -0,0 +1,255 @@
1
+ !RBIX
2
+ 3578385345186687227
3
+ 18
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 29
13
+ 99
14
+ 7
15
+ 0
16
+ 1
17
+ 65
18
+ 49
19
+ 1
20
+ 3
21
+ 13
22
+ 99
23
+ 12
24
+ 7
25
+ 2
26
+ 12
27
+ 7
28
+ 3
29
+ 12
30
+ 65
31
+ 12
32
+ 49
33
+ 4
34
+ 4
35
+ 15
36
+ 49
37
+ 2
38
+ 0
39
+ 15
40
+ 2
41
+ 11
42
+ I
43
+ 6
44
+ I
45
+ 0
46
+ I
47
+ 0
48
+ I
49
+ 0
50
+ I
51
+ 0
52
+ n
53
+ p
54
+ 5
55
+ x
56
+ 6
57
+ Thread
58
+ x
59
+ 10
60
+ open_class
61
+ x
62
+ 14
63
+ __class_init__
64
+ M
65
+ 1
66
+ n
67
+ n
68
+ x
69
+ 6
70
+ Thread
71
+ i
72
+ 16
73
+ 5
74
+ 66
75
+ 99
76
+ 7
77
+ 0
78
+ 7
79
+ 1
80
+ 65
81
+ 67
82
+ 49
83
+ 2
84
+ 0
85
+ 49
86
+ 3
87
+ 4
88
+ 11
89
+ I
90
+ 5
91
+ I
92
+ 0
93
+ I
94
+ 0
95
+ I
96
+ 0
97
+ I
98
+ 0
99
+ n
100
+ p
101
+ 4
102
+ x
103
+ 7
104
+ mailbox
105
+ M
106
+ 1
107
+ n
108
+ n
109
+ x
110
+ 7
111
+ mailbox
112
+ i
113
+ 52
114
+ 5
115
+ 7
116
+ 0
117
+ 14
118
+ 2
119
+ 49
120
+ 1
121
+ 1
122
+ 13
123
+ 10
124
+ 47
125
+ 15
126
+ 45
127
+ 2
128
+ 3
129
+ 43
130
+ 4
131
+ 13
132
+ 71
133
+ 5
134
+ 47
135
+ 9
136
+ 35
137
+ 47
138
+ 49
139
+ 6
140
+ 0
141
+ 13
142
+ 47
143
+ 49
144
+ 7
145
+ 0
146
+ 15
147
+ 8
148
+ 38
149
+ 49
150
+ 5
151
+ 0
152
+ 13
153
+ 18
154
+ 3
155
+ 49
156
+ 8
157
+ 2
158
+ 15
159
+ 8
160
+ 51
161
+ 18
162
+ 2
163
+ 16
164
+ 2
165
+ 11
166
+ I
167
+ 4
168
+ I
169
+ 0
170
+ I
171
+ 0
172
+ I
173
+ 0
174
+ I
175
+ 0
176
+ n
177
+ p
178
+ 9
179
+ x
180
+ 7
181
+ mailbox
182
+ x
183
+ 2
184
+ []
185
+ x
186
+ 9
187
+ Celluloid
188
+ n
189
+ x
190
+ 7
191
+ Mailbox
192
+ x
193
+ 3
194
+ new
195
+ x
196
+ 8
197
+ allocate
198
+ x
199
+ 10
200
+ initialize
201
+ x
202
+ 3
203
+ []=
204
+ p
205
+ 5
206
+ I
207
+ -1
208
+ I
209
+ 3
210
+ I
211
+ 0
212
+ I
213
+ 4
214
+ I
215
+ 34
216
+ x
217
+ 51
218
+ /Users/tony/src/celluloid/lib/celluloid/core_ext.rb
219
+ p
220
+ 0
221
+ x
222
+ 17
223
+ method_visibility
224
+ x
225
+ 15
226
+ add_defn_method
227
+ p
228
+ 3
229
+ I
230
+ 2
231
+ I
232
+ 3
233
+ I
234
+ 10
235
+ x
236
+ 51
237
+ /Users/tony/src/celluloid/lib/celluloid/core_ext.rb
238
+ p
239
+ 0
240
+ x
241
+ 13
242
+ attach_method
243
+ p
244
+ 3
245
+ I
246
+ 0
247
+ I
248
+ 2
249
+ I
250
+ 1d
251
+ x
252
+ 51
253
+ /Users/tony/src/celluloid/lib/celluloid/core_ext.rb
254
+ p
255
+ 0
@@ -6,7 +6,7 @@ module Celluloid
6
6
  class ExitEvent < SystemEvent
7
7
  attr_reader :actor, :reason
8
8
 
9
- def initialize(actor, reason)
9
+ def initialize(actor, reason = nil)
10
10
  @actor, @reason = actor, reason
11
11
  super reason.to_s
12
12
  end
@@ -0,0 +1,357 @@
1
+ !RBIX
2
+ 3578385345186687227
3
+ 18
4
+ M
5
+ 1
6
+ n
7
+ n
8
+ x
9
+ 10
10
+ __script__
11
+ i
12
+ 28
13
+ 99
14
+ 7
15
+ 0
16
+ 65
17
+ 49
18
+ 1
19
+ 2
20
+ 13
21
+ 99
22
+ 12
23
+ 7
24
+ 2
25
+ 12
26
+ 7
27
+ 3
28
+ 12
29
+ 65
30
+ 12
31
+ 49
32
+ 4
33
+ 4
34
+ 15
35
+ 49
36
+ 2
37
+ 0
38
+ 15
39
+ 2
40
+ 11
41
+ I
42
+ 6
43
+ I
44
+ 0
45
+ I
46
+ 0
47
+ I
48
+ 0
49
+ I
50
+ 0
51
+ n
52
+ p
53
+ 5
54
+ x
55
+ 9
56
+ Celluloid
57
+ x
58
+ 11
59
+ open_module
60
+ x
61
+ 15
62
+ __module_init__
63
+ M
64
+ 1
65
+ n
66
+ n
67
+ x
68
+ 9
69
+ Celluloid
70
+ i
71
+ 44
72
+ 5
73
+ 66
74
+ 99
75
+ 7
76
+ 0
77
+ 45
78
+ 1
79
+ 2
80
+ 65
81
+ 49
82
+ 3
83
+ 3
84
+ 15
85
+ 1
86
+ 15
87
+ 99
88
+ 7
89
+ 4
90
+ 45
91
+ 0
92
+ 5
93
+ 65
94
+ 49
95
+ 3
96
+ 3
97
+ 13
98
+ 99
99
+ 12
100
+ 7
101
+ 6
102
+ 12
103
+ 7
104
+ 7
105
+ 12
106
+ 65
107
+ 12
108
+ 49
109
+ 8
110
+ 4
111
+ 15
112
+ 49
113
+ 6
114
+ 0
115
+ 11
116
+ I
117
+ 6
118
+ I
119
+ 0
120
+ I
121
+ 0
122
+ I
123
+ 0
124
+ I
125
+ 0
126
+ n
127
+ p
128
+ 9
129
+ x
130
+ 11
131
+ SystemEvent
132
+ x
133
+ 9
134
+ Exception
135
+ n
136
+ x
137
+ 10
138
+ open_class
139
+ x
140
+ 9
141
+ ExitEvent
142
+ n
143
+ x
144
+ 14
145
+ __class_init__
146
+ M
147
+ 1
148
+ n
149
+ n
150
+ x
151
+ 9
152
+ ExitEvent
153
+ i
154
+ 26
155
+ 5
156
+ 66
157
+ 5
158
+ 7
159
+ 0
160
+ 7
161
+ 1
162
+ 47
163
+ 49
164
+ 2
165
+ 2
166
+ 15
167
+ 99
168
+ 7
169
+ 3
170
+ 7
171
+ 4
172
+ 65
173
+ 67
174
+ 49
175
+ 5
176
+ 0
177
+ 49
178
+ 6
179
+ 4
180
+ 11
181
+ I
182
+ 5
183
+ I
184
+ 0
185
+ I
186
+ 0
187
+ I
188
+ 0
189
+ I
190
+ 0
191
+ n
192
+ p
193
+ 7
194
+ x
195
+ 5
196
+ actor
197
+ x
198
+ 6
199
+ reason
200
+ x
201
+ 11
202
+ attr_reader
203
+ x
204
+ 10
205
+ initialize
206
+ M
207
+ 1
208
+ n
209
+ n
210
+ x
211
+ 10
212
+ initialize
213
+ i
214
+ 32
215
+ 23
216
+ 1
217
+ 10
218
+ 8
219
+ 1
220
+ 19
221
+ 1
222
+ 15
223
+ 20
224
+ 0
225
+ 20
226
+ 1
227
+ 17
228
+ 2
229
+ 38
230
+ 0
231
+ 15
232
+ 38
233
+ 1
234
+ 15
235
+ 2
236
+ 15
237
+ 20
238
+ 1
239
+ 49
240
+ 2
241
+ 0
242
+ 54
243
+ 52
244
+ 3
245
+ 1
246
+ 11
247
+ I
248
+ 4
249
+ I
250
+ 2
251
+ I
252
+ 1
253
+ I
254
+ 0
255
+ I
256
+ 2
257
+ n
258
+ p
259
+ 4
260
+ x
261
+ 6
262
+ @actor
263
+ x
264
+ 7
265
+ @reason
266
+ x
267
+ 4
268
+ to_s
269
+ x
270
+ 10
271
+ initialize
272
+ p
273
+ 7
274
+ I
275
+ -1
276
+ I
277
+ 9
278
+ I
279
+ 8
280
+ I
281
+ a
282
+ I
283
+ 16
284
+ I
285
+ b
286
+ I
287
+ 20
288
+ x
289
+ 49
290
+ /Users/tony/src/celluloid/lib/celluloid/events.rb
291
+ p
292
+ 2
293
+ x
294
+ 5
295
+ actor
296
+ x
297
+ 6
298
+ reason
299
+ x
300
+ 17
301
+ method_visibility
302
+ x
303
+ 15
304
+ add_defn_method
305
+ p
306
+ 5
307
+ I
308
+ 2
309
+ I
310
+ 7
311
+ I
312
+ c
313
+ I
314
+ 9
315
+ I
316
+ 1a
317
+ x
318
+ 49
319
+ /Users/tony/src/celluloid/lib/celluloid/events.rb
320
+ p
321
+ 0
322
+ x
323
+ 13
324
+ attach_method
325
+ p
326
+ 5
327
+ I
328
+ 2
329
+ I
330
+ 3
331
+ I
332
+ f
333
+ I
334
+ 6
335
+ I
336
+ 2c
337
+ x
338
+ 49
339
+ /Users/tony/src/celluloid/lib/celluloid/events.rb
340
+ p
341
+ 0
342
+ x
343
+ 13
344
+ attach_method
345
+ p
346
+ 3
347
+ I
348
+ 0
349
+ I
350
+ 1
351
+ I
352
+ 1c
353
+ x
354
+ 49
355
+ /Users/tony/src/celluloid/lib/celluloid/events.rb
356
+ p
357
+ 0