celluloid 0.17.4 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (171) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +300 -81
  3. data/CONDUCT.md +13 -0
  4. data/CONTRIBUTING.md +39 -0
  5. data/README.md +54 -155
  6. data/REFACTOR.md +1 -0
  7. data/architecture.md +120 -0
  8. data/examples/basic_usage.rb +1 -1
  9. data/examples/configurations.rb +78 -0
  10. data/examples/futures.rb +1 -1
  11. data/examples/ring.rb +5 -4
  12. data/examples/simple_pmap.rb +1 -1
  13. data/examples/stack.rb +2 -2
  14. data/examples/supervisors_and_registry.rb +82 -0
  15. data/examples/timers.rb +2 -2
  16. data/lib/celluloid/actor/system.rb +13 -29
  17. data/lib/celluloid/actor.rb +27 -17
  18. data/lib/celluloid/autostart.rb +6 -1
  19. data/lib/celluloid/call/async.rb +2 -0
  20. data/lib/celluloid/call/sync.rb +10 -3
  21. data/lib/celluloid/calls.rb +13 -12
  22. data/lib/celluloid/cell.rb +5 -9
  23. data/lib/celluloid/condition.rb +3 -3
  24. data/lib/celluloid/core_ext.rb +0 -2
  25. data/lib/celluloid/debug.rb +3 -0
  26. data/lib/celluloid/exceptions.rb +2 -2
  27. data/lib/celluloid/future.rb +8 -10
  28. data/lib/celluloid/group/pool.rb +1 -3
  29. data/lib/celluloid/group/spawner.rb +2 -6
  30. data/lib/celluloid/group.rb +12 -8
  31. data/lib/celluloid/internals/call_chain.rb +15 -0
  32. data/lib/celluloid/internals/cpu_counter.rb +62 -0
  33. data/lib/celluloid/internals/handlers.rb +42 -0
  34. data/lib/celluloid/internals/links.rb +38 -0
  35. data/lib/celluloid/internals/logger.rb +104 -0
  36. data/lib/celluloid/internals/method.rb +34 -0
  37. data/lib/celluloid/internals/properties.rb +32 -0
  38. data/lib/celluloid/internals/receivers.rb +64 -0
  39. data/lib/celluloid/internals/registry.rb +102 -0
  40. data/lib/celluloid/internals/responses.rb +46 -0
  41. data/lib/celluloid/internals/signals.rb +24 -0
  42. data/lib/celluloid/internals/stack/dump.rb +12 -0
  43. data/lib/celluloid/internals/stack/states.rb +72 -0
  44. data/lib/celluloid/internals/stack/summary.rb +12 -0
  45. data/lib/celluloid/internals/stack.rb +74 -0
  46. data/lib/celluloid/internals/task_set.rb +51 -0
  47. data/lib/celluloid/internals/thread_handle.rb +52 -0
  48. data/lib/celluloid/internals/uuid.rb +40 -0
  49. data/lib/celluloid/logging/incident.rb +21 -0
  50. data/lib/celluloid/logging/incident_logger.rb +147 -0
  51. data/lib/celluloid/logging/incident_reporter.rb +49 -0
  52. data/lib/celluloid/logging/log_event.rb +20 -0
  53. data/lib/celluloid/logging/ring_buffer.rb +64 -0
  54. data/lib/celluloid/mailbox/evented.rb +13 -5
  55. data/lib/celluloid/mailbox.rb +22 -9
  56. data/lib/celluloid/notifications.rb +95 -0
  57. data/lib/celluloid/pool.rb +6 -0
  58. data/lib/celluloid/probe.rb +81 -0
  59. data/lib/celluloid/proxy/abstract.rb +9 -9
  60. data/lib/celluloid/proxy/async.rb +1 -1
  61. data/lib/celluloid/proxy/block.rb +2 -2
  62. data/lib/celluloid/proxy/cell.rb +1 -1
  63. data/lib/celluloid/proxy/future.rb +2 -4
  64. data/lib/celluloid/proxy/sync.rb +1 -3
  65. data/lib/celluloid/rspec.rb +22 -33
  66. data/lib/celluloid/supervision/configuration/injections.rb +8 -0
  67. data/lib/celluloid/supervision/configuration/instance.rb +113 -0
  68. data/lib/celluloid/supervision/configuration.rb +169 -0
  69. data/lib/celluloid/supervision/constants.rb +123 -0
  70. data/lib/celluloid/supervision/container/behavior/pool.rb +71 -0
  71. data/lib/celluloid/supervision/container/behavior/tree.rb +23 -0
  72. data/lib/celluloid/supervision/container/behavior.rb +89 -0
  73. data/lib/celluloid/supervision/container/injections.rb +8 -0
  74. data/lib/celluloid/supervision/container/instance.rb +116 -0
  75. data/lib/celluloid/supervision/container/pool.rb +210 -0
  76. data/lib/celluloid/supervision/container.rb +144 -0
  77. data/lib/celluloid/supervision/service.rb +27 -0
  78. data/lib/celluloid/supervision/supervise.rb +34 -0
  79. data/lib/celluloid/supervision/validation.rb +40 -0
  80. data/lib/celluloid/supervision/version.rb +5 -0
  81. data/lib/celluloid/supervision.rb +17 -0
  82. data/lib/celluloid/system_events.rb +11 -6
  83. data/lib/celluloid/task/fibered.rb +6 -2
  84. data/lib/celluloid/task/threaded.rb +3 -3
  85. data/lib/celluloid/task.rb +25 -12
  86. data/lib/celluloid/test.rb +5 -2
  87. data/lib/celluloid/thread.rb +0 -2
  88. data/lib/celluloid/version.rb +1 -1
  89. data/lib/celluloid.rb +74 -64
  90. data/spec/celluloid/block_spec.rb +29 -32
  91. data/spec/celluloid/calls_spec.rb +5 -15
  92. data/spec/celluloid/future_spec.rb +7 -1
  93. data/spec/celluloid/internals/cpu_counter_spec.rb +129 -0
  94. data/spec/celluloid/internals/links_spec.rb +43 -0
  95. data/spec/celluloid/internals/properties_spec.rb +40 -0
  96. data/spec/celluloid/internals/registry_spec.rb +62 -0
  97. data/spec/celluloid/internals/stack/dump_spec.rb +4 -0
  98. data/spec/celluloid/internals/stack/summary_spec.rb +4 -0
  99. data/spec/celluloid/internals/thread_handle_spec.rb +60 -0
  100. data/spec/celluloid/internals/uuid_spec.rb +9 -0
  101. data/spec/celluloid/logging/ring_buffer_spec.rb +36 -0
  102. data/spec/celluloid/mailbox/evented_spec.rb +11 -22
  103. data/spec/celluloid/misc/leak_spec.rb +3 -4
  104. data/spec/celluloid/notifications_spec.rb +140 -0
  105. data/spec/celluloid/probe_spec.rb +102 -0
  106. data/spec/celluloid/proxy_spec.rb +30 -30
  107. data/spec/celluloid/supervision/behavior_spec.rb +74 -0
  108. data/spec/celluloid/supervision/configuration_spec.rb +181 -0
  109. data/spec/celluloid/supervision/container_spec.rb +72 -0
  110. data/spec/celluloid/supervision/instance_spec.rb +13 -0
  111. data/spec/celluloid/supervision/root_spec.rb +28 -0
  112. data/spec/celluloid/supervision/supervisor_spec.rb +93 -0
  113. data/spec/celluloid/task/fibered_spec.rb +1 -3
  114. data/spec/celluloid/task/threaded_spec.rb +1 -3
  115. data/spec/shared/actor_examples.rb +58 -33
  116. data/spec/shared/group_examples.rb +2 -2
  117. data/spec/shared/mailbox_examples.rb +1 -1
  118. data/spec/shared/stack_examples.rb +87 -0
  119. data/spec/shared/task_examples.rb +2 -3
  120. data/spec/spec_helper.rb +2 -4
  121. data/spec/support/configure_rspec.rb +2 -3
  122. data/spec/support/coverage.rb +2 -4
  123. data/spec/support/crash_checking.rb +2 -2
  124. data/spec/support/examples/actor_class.rb +3 -8
  125. data/spec/support/examples/call_class.rb +2 -2
  126. data/spec/support/examples/container_class.rb +35 -0
  127. data/spec/support/examples/evented_mailbox_class.rb +1 -2
  128. data/spec/support/examples/stack_classes.rb +58 -0
  129. data/spec/support/examples/stack_methods.rb +23 -0
  130. data/spec/support/examples/subordinate_class.rb +19 -0
  131. data/spec/support/logging.rb +3 -34
  132. data/spec/support/loose_threads.rb +3 -16
  133. data/spec/support/reset_class_variables.rb +5 -1
  134. data/spec/support/stubbing.rb +1 -1
  135. metadata +91 -289
  136. data/culture/CONDUCT.md +0 -28
  137. data/culture/Gemfile +0 -9
  138. data/culture/LICENSE.txt +0 -22
  139. data/culture/README.md +0 -22
  140. data/culture/Rakefile +0 -5
  141. data/culture/SYNC.md +0 -70
  142. data/culture/celluloid-culture.gemspec +0 -18
  143. data/culture/gems/README.md +0 -39
  144. data/culture/gems/dependencies.yml +0 -85
  145. data/culture/gems/loader.rb +0 -101
  146. data/culture/rubocop/README.md +0 -38
  147. data/culture/rubocop/lint.yml +0 -8
  148. data/culture/rubocop/metrics.yml +0 -15
  149. data/culture/rubocop/perf.yml +0 -0
  150. data/culture/rubocop/rubocop.yml +0 -5
  151. data/culture/rubocop/style.yml +0 -57
  152. data/culture/spec/gems_spec.rb +0 -2
  153. data/culture/spec/spec_helper.rb +0 -0
  154. data/culture/spec/sync_spec.rb +0 -2
  155. data/culture/sync.rb +0 -56
  156. data/culture/tasks/rspec.rake +0 -5
  157. data/culture/tasks/rubocop.rake +0 -2
  158. data/lib/celluloid/actor/manager.rb +0 -7
  159. data/lib/celluloid/backported.rb +0 -2
  160. data/lib/celluloid/current.rb +0 -2
  161. data/lib/celluloid/deprecate.rb +0 -21
  162. data/lib/celluloid/fiber.rb +0 -32
  163. data/lib/celluloid/managed.rb +0 -3
  164. data/lib/celluloid/notices.rb +0 -15
  165. data/spec/deprecate/actor_system_spec.rb +0 -72
  166. data/spec/deprecate/block_spec.rb +0 -52
  167. data/spec/deprecate/calls_spec.rb +0 -39
  168. data/spec/deprecate/evented_mailbox_spec.rb +0 -34
  169. data/spec/deprecate/future_spec.rb +0 -32
  170. data/spec/deprecate/internal_pool_spec.rb +0 -4
  171. data/spec/support/env.rb +0 -21
metadata CHANGED
@@ -1,314 +1,58 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: celluloid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.4
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
8
8
  - Donovan Keme
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-12-20 00:00:00.000000000 Z
12
+ date: 2020-12-06 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: bundler
16
- requirement: !ruby/object:Gem::Requirement
17
- requirements:
18
- - - ">="
19
- - !ruby/object:Gem::Version
20
- version: '0'
21
- type: :development
22
- prerelease: false
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- version: '0'
28
- - !ruby/object:Gem::Dependency
29
- name: nenv
30
- requirement: !ruby/object:Gem::Requirement
31
- requirements:
32
- - - ">="
33
- - !ruby/object:Gem::Version
34
- version: '0'
35
- type: :development
36
- prerelease: false
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ">="
40
- - !ruby/object:Gem::Version
41
- version: '0'
42
- - !ruby/object:Gem::Dependency
43
- name: dotenv
44
- requirement: !ruby/object:Gem::Requirement
45
- requirements:
46
- - - ">="
47
- - !ruby/object:Gem::Version
48
- version: '0'
49
- type: :development
50
- prerelease: false
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ">="
54
- - !ruby/object:Gem::Version
55
- version: '0'
56
- - !ruby/object:Gem::Dependency
57
- name: benchmark_suite
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - ">="
61
- - !ruby/object:Gem::Version
62
- version: '0'
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - ">="
68
- - !ruby/object:Gem::Version
69
- version: '0'
70
- - !ruby/object:Gem::Dependency
71
- name: rubocop
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ">="
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: '0'
84
- - !ruby/object:Gem::Dependency
85
- name: transpec
86
- requirement: !ruby/object:Gem::Requirement
87
- requirements:
88
- - - ">="
89
- - !ruby/object:Gem::Version
90
- version: '0'
91
- type: :development
92
- prerelease: false
93
- version_requirements: !ruby/object:Gem::Requirement
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- version: '0'
98
- - !ruby/object:Gem::Dependency
99
- name: pry
100
- requirement: !ruby/object:Gem::Requirement
101
- requirements:
102
- - - ">="
103
- - !ruby/object:Gem::Version
104
- version: '0'
105
- type: :development
106
- prerelease: false
107
- version_requirements: !ruby/object:Gem::Requirement
108
- requirements:
109
- - - ">="
110
- - !ruby/object:Gem::Version
111
- version: '0'
112
- - !ruby/object:Gem::Dependency
113
- name: rake
114
- requirement: !ruby/object:Gem::Requirement
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- version: '0'
119
- type: :development
120
- prerelease: false
121
- version_requirements: !ruby/object:Gem::Requirement
122
- requirements:
123
- - - ">="
124
- - !ruby/object:Gem::Version
125
- version: '0'
126
- - !ruby/object:Gem::Dependency
127
- name: rspec
128
- requirement: !ruby/object:Gem::Requirement
129
- requirements:
130
- - - ">="
131
- - !ruby/object:Gem::Version
132
- version: '0'
133
- type: :development
134
- prerelease: false
135
- version_requirements: !ruby/object:Gem::Requirement
136
- requirements:
137
- - - ">="
138
- - !ruby/object:Gem::Version
139
- version: '0'
140
- - !ruby/object:Gem::Dependency
141
- name: guard-rspec
142
- requirement: !ruby/object:Gem::Requirement
143
- requirements:
144
- - - ">="
145
- - !ruby/object:Gem::Version
146
- version: '0'
147
- type: :development
148
- prerelease: false
149
- version_requirements: !ruby/object:Gem::Requirement
150
- requirements:
151
- - - ">="
152
- - !ruby/object:Gem::Version
153
- version: '0'
154
- - !ruby/object:Gem::Dependency
155
- name: rspec-retry
156
- requirement: !ruby/object:Gem::Requirement
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- version: '0'
161
- type: :development
162
- prerelease: false
163
- version_requirements: !ruby/object:Gem::Requirement
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- version: '0'
168
- - !ruby/object:Gem::Dependency
169
- name: coveralls
170
- requirement: !ruby/object:Gem::Requirement
171
- requirements:
172
- - - ">="
173
- - !ruby/object:Gem::Version
174
- version: '0'
175
- type: :development
176
- prerelease: false
177
- version_requirements: !ruby/object:Gem::Requirement
178
- requirements:
179
- - - ">="
180
- - !ruby/object:Gem::Version
181
- version: '0'
182
- - !ruby/object:Gem::Dependency
183
- name: celluloid-essentials
184
- requirement: !ruby/object:Gem::Requirement
185
- requirements:
186
- - - ">="
187
- - !ruby/object:Gem::Version
188
- version: '0'
189
- type: :runtime
190
- prerelease: false
191
- version_requirements: !ruby/object:Gem::Requirement
192
- requirements:
193
- - - ">="
194
- - !ruby/object:Gem::Version
195
- version: '0'
196
- - !ruby/object:Gem::Dependency
197
- name: celluloid-supervision
198
- requirement: !ruby/object:Gem::Requirement
199
- requirements:
200
- - - ">="
201
- - !ruby/object:Gem::Version
202
- version: '0'
203
- type: :runtime
204
- prerelease: false
205
- version_requirements: !ruby/object:Gem::Requirement
206
- requirements:
207
- - - ">="
208
- - !ruby/object:Gem::Version
209
- version: '0'
210
- - !ruby/object:Gem::Dependency
211
- name: celluloid-pool
212
- requirement: !ruby/object:Gem::Requirement
213
- requirements:
214
- - - ">="
215
- - !ruby/object:Gem::Version
216
- version: '0'
217
- type: :runtime
218
- prerelease: false
219
- version_requirements: !ruby/object:Gem::Requirement
220
- requirements:
221
- - - ">="
222
- - !ruby/object:Gem::Version
223
- version: '0'
224
- - !ruby/object:Gem::Dependency
225
- name: celluloid-fsm
226
- requirement: !ruby/object:Gem::Requirement
227
- requirements:
228
- - - ">="
229
- - !ruby/object:Gem::Version
230
- version: '0'
231
- type: :runtime
232
- prerelease: false
233
- version_requirements: !ruby/object:Gem::Requirement
234
- requirements:
235
- - - ">="
236
- - !ruby/object:Gem::Version
237
- version: '0'
238
- - !ruby/object:Gem::Dependency
239
- name: celluloid-extras
240
- requirement: !ruby/object:Gem::Requirement
241
- requirements:
242
- - - ">="
243
- - !ruby/object:Gem::Version
244
- version: '0'
245
- type: :runtime
246
- prerelease: false
247
- version_requirements: !ruby/object:Gem::Requirement
248
- requirements:
249
- - - ">="
250
- - !ruby/object:Gem::Version
251
- version: '0'
252
14
  - !ruby/object:Gem::Dependency
253
15
  name: timers
254
16
  requirement: !ruby/object:Gem::Requirement
255
17
  requirements:
256
- - - ">="
18
+ - - "~>"
257
19
  - !ruby/object:Gem::Version
258
- version: 4.1.1
20
+ version: '4'
259
21
  type: :runtime
260
22
  prerelease: false
261
23
  version_requirements: !ruby/object:Gem::Requirement
262
24
  requirements:
263
- - - ">="
25
+ - - "~>"
264
26
  - !ruby/object:Gem::Version
265
- version: 4.1.1
27
+ version: '4'
266
28
  description: Celluloid enables people to build concurrent programs out of concurrent
267
29
  objects just as easily as they build sequential programs out of sequential objects
268
30
  email:
269
- - tony.arcieri@gmail.com
31
+ - bascule@gmail.com
270
32
  - code@extremist.digital
271
33
  executables: []
272
34
  extensions: []
273
35
  extra_rdoc_files: []
274
36
  files:
275
37
  - CHANGES.md
38
+ - CONDUCT.md
39
+ - CONTRIBUTING.md
276
40
  - LICENSE.txt
277
41
  - README.md
278
- - culture/CONDUCT.md
279
- - culture/Gemfile
280
- - culture/LICENSE.txt
281
- - culture/README.md
282
- - culture/Rakefile
283
- - culture/SYNC.md
284
- - culture/celluloid-culture.gemspec
285
- - culture/gems/README.md
286
- - culture/gems/dependencies.yml
287
- - culture/gems/loader.rb
288
- - culture/rubocop/README.md
289
- - culture/rubocop/lint.yml
290
- - culture/rubocop/metrics.yml
291
- - culture/rubocop/perf.yml
292
- - culture/rubocop/rubocop.yml
293
- - culture/rubocop/style.yml
294
- - culture/spec/gems_spec.rb
295
- - culture/spec/spec_helper.rb
296
- - culture/spec/sync_spec.rb
297
- - culture/sync.rb
298
- - culture/tasks/rspec.rake
299
- - culture/tasks/rubocop.rake
42
+ - REFACTOR.md
43
+ - architecture.md
300
44
  - examples/basic_usage.rb
45
+ - examples/configurations.rb
301
46
  - examples/futures.rb
302
47
  - examples/ring.rb
303
48
  - examples/simple_pmap.rb
304
49
  - examples/stack.rb
50
+ - examples/supervisors_and_registry.rb
305
51
  - examples/timers.rb
306
52
  - lib/celluloid.rb
307
53
  - lib/celluloid/actor.rb
308
- - lib/celluloid/actor/manager.rb
309
54
  - lib/celluloid/actor/system.rb
310
55
  - lib/celluloid/autostart.rb
311
- - lib/celluloid/backported.rb
312
56
  - lib/celluloid/call/async.rb
313
57
  - lib/celluloid/call/block.rb
314
58
  - lib/celluloid/call/sync.rb
@@ -316,20 +60,41 @@ files:
316
60
  - lib/celluloid/cell.rb
317
61
  - lib/celluloid/condition.rb
318
62
  - lib/celluloid/core_ext.rb
319
- - lib/celluloid/current.rb
320
63
  - lib/celluloid/debug.rb
321
- - lib/celluloid/deprecate.rb
322
64
  - lib/celluloid/exceptions.rb
323
- - lib/celluloid/fiber.rb
324
65
  - lib/celluloid/future.rb
325
66
  - lib/celluloid/group.rb
326
67
  - lib/celluloid/group/pool.rb
327
68
  - lib/celluloid/group/spawner.rb
69
+ - lib/celluloid/internals/call_chain.rb
70
+ - lib/celluloid/internals/cpu_counter.rb
71
+ - lib/celluloid/internals/handlers.rb
72
+ - lib/celluloid/internals/links.rb
73
+ - lib/celluloid/internals/logger.rb
74
+ - lib/celluloid/internals/method.rb
75
+ - lib/celluloid/internals/properties.rb
76
+ - lib/celluloid/internals/receivers.rb
77
+ - lib/celluloid/internals/registry.rb
78
+ - lib/celluloid/internals/responses.rb
79
+ - lib/celluloid/internals/signals.rb
80
+ - lib/celluloid/internals/stack.rb
81
+ - lib/celluloid/internals/stack/dump.rb
82
+ - lib/celluloid/internals/stack/states.rb
83
+ - lib/celluloid/internals/stack/summary.rb
84
+ - lib/celluloid/internals/task_set.rb
85
+ - lib/celluloid/internals/thread_handle.rb
86
+ - lib/celluloid/internals/uuid.rb
328
87
  - lib/celluloid/logging.rb
88
+ - lib/celluloid/logging/incident.rb
89
+ - lib/celluloid/logging/incident_logger.rb
90
+ - lib/celluloid/logging/incident_reporter.rb
91
+ - lib/celluloid/logging/log_event.rb
92
+ - lib/celluloid/logging/ring_buffer.rb
329
93
  - lib/celluloid/mailbox.rb
330
94
  - lib/celluloid/mailbox/evented.rb
331
- - lib/celluloid/managed.rb
332
- - lib/celluloid/notices.rb
95
+ - lib/celluloid/notifications.rb
96
+ - lib/celluloid/pool.rb
97
+ - lib/celluloid/probe.rb
333
98
  - lib/celluloid/proxies.rb
334
99
  - lib/celluloid/proxy/abstract.rb
335
100
  - lib/celluloid/proxy/actor.rb
@@ -339,6 +104,22 @@ files:
339
104
  - lib/celluloid/proxy/future.rb
340
105
  - lib/celluloid/proxy/sync.rb
341
106
  - lib/celluloid/rspec.rb
107
+ - lib/celluloid/supervision.rb
108
+ - lib/celluloid/supervision/configuration.rb
109
+ - lib/celluloid/supervision/configuration/injections.rb
110
+ - lib/celluloid/supervision/configuration/instance.rb
111
+ - lib/celluloid/supervision/constants.rb
112
+ - lib/celluloid/supervision/container.rb
113
+ - lib/celluloid/supervision/container/behavior.rb
114
+ - lib/celluloid/supervision/container/behavior/pool.rb
115
+ - lib/celluloid/supervision/container/behavior/tree.rb
116
+ - lib/celluloid/supervision/container/injections.rb
117
+ - lib/celluloid/supervision/container/instance.rb
118
+ - lib/celluloid/supervision/container/pool.rb
119
+ - lib/celluloid/supervision/service.rb
120
+ - lib/celluloid/supervision/supervise.rb
121
+ - lib/celluloid/supervision/validation.rb
122
+ - lib/celluloid/supervision/version.rb
342
123
  - lib/celluloid/system_events.rb
343
124
  - lib/celluloid/task.rb
344
125
  - lib/celluloid/task/fibered.rb
@@ -356,32 +137,47 @@ files:
356
137
  - spec/celluloid/group/elastic_spec.rb
357
138
  - spec/celluloid/group/pool_spec.rb
358
139
  - spec/celluloid/group/spawner_spec.rb
140
+ - spec/celluloid/internals/cpu_counter_spec.rb
141
+ - spec/celluloid/internals/links_spec.rb
142
+ - spec/celluloid/internals/properties_spec.rb
143
+ - spec/celluloid/internals/registry_spec.rb
144
+ - spec/celluloid/internals/stack/dump_spec.rb
145
+ - spec/celluloid/internals/stack/summary_spec.rb
146
+ - spec/celluloid/internals/thread_handle_spec.rb
147
+ - spec/celluloid/internals/uuid_spec.rb
148
+ - spec/celluloid/logging/ring_buffer_spec.rb
359
149
  - spec/celluloid/mailbox/evented_spec.rb
360
150
  - spec/celluloid/mailbox_spec.rb
361
151
  - spec/celluloid/misc/leak_spec.rb
152
+ - spec/celluloid/notifications_spec.rb
153
+ - spec/celluloid/probe_spec.rb
362
154
  - spec/celluloid/proxy_spec.rb
155
+ - spec/celluloid/supervision/behavior_spec.rb
156
+ - spec/celluloid/supervision/configuration_spec.rb
157
+ - spec/celluloid/supervision/container_spec.rb
158
+ - spec/celluloid/supervision/instance_spec.rb
159
+ - spec/celluloid/supervision/root_spec.rb
160
+ - spec/celluloid/supervision/supervisor_spec.rb
363
161
  - spec/celluloid/task/fibered_spec.rb
364
162
  - spec/celluloid/task/threaded_spec.rb
365
163
  - spec/celluloid/timer_spec.rb
366
- - spec/deprecate/actor_system_spec.rb
367
- - spec/deprecate/block_spec.rb
368
- - spec/deprecate/calls_spec.rb
369
- - spec/deprecate/evented_mailbox_spec.rb
370
- - spec/deprecate/future_spec.rb
371
- - spec/deprecate/internal_pool_spec.rb
372
164
  - spec/shared/actor_examples.rb
373
165
  - spec/shared/group_examples.rb
374
166
  - spec/shared/mailbox_examples.rb
167
+ - spec/shared/stack_examples.rb
375
168
  - spec/shared/task_examples.rb
376
169
  - spec/spec_helper.rb
377
170
  - spec/support/configure_rspec.rb
378
171
  - spec/support/coverage.rb
379
172
  - spec/support/crash_checking.rb
380
173
  - spec/support/debugging.rb
381
- - spec/support/env.rb
382
174
  - spec/support/examples/actor_class.rb
383
175
  - spec/support/examples/call_class.rb
176
+ - spec/support/examples/container_class.rb
384
177
  - spec/support/examples/evented_mailbox_class.rb
178
+ - spec/support/examples/stack_classes.rb
179
+ - spec/support/examples/stack_methods.rb
180
+ - spec/support/examples/subordinate_class.rb
385
181
  - spec/support/includer.rb
386
182
  - spec/support/logging.rb
387
183
  - spec/support/loose_threads.rb
@@ -391,8 +187,15 @@ files:
391
187
  homepage: https://github.com/celluloid/celluloid
392
188
  licenses:
393
189
  - MIT
394
- metadata: {}
395
- post_install_message:
190
+ metadata:
191
+ bug_tracker_uri: https://github.com/celluloid/celluloid/issues
192
+ changelog_uri: https://github.com/celluloid/celluloid/blob/master/CHANGES.md
193
+ documentation_uri: https://www.rubydoc.info/gems/celluloid
194
+ homepage_uri: https://celluloid.io/
195
+ mailing_list_uri: http://groups.google.com/group/celluloid-ruby
196
+ source_code_uri: https://github.com/celluloid/celluloid
197
+ wiki_uri: https://github.com/celluloid/celluloid/wiki
198
+ post_install_message:
396
199
  rdoc_options: []
397
200
  require_paths:
398
201
  - lib
@@ -400,16 +203,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
400
203
  requirements:
401
204
  - - ">="
402
205
  - !ruby/object:Gem::Version
403
- version: 1.9.3
206
+ version: 2.2.6
404
207
  required_rubygems_version: !ruby/object:Gem::Requirement
405
208
  requirements:
406
209
  - - ">="
407
210
  - !ruby/object:Gem::Version
408
- version: 1.3.6
211
+ version: 2.0.0
409
212
  requirements: []
410
- rubyforge_project:
411
- rubygems_version: 2.7.4
412
- signing_key:
213
+ rubygems_version: 3.1.2
214
+ signing_key:
413
215
  specification_version: 4
414
216
  summary: Actor-based concurrent object framework for Ruby
415
217
  test_files: []
data/culture/CONDUCT.md DELETED
@@ -1,28 +0,0 @@
1
- # Contributor Code of Conduct
2
-
3
- As contributors and maintainers of this project, we pledge to respect all
4
- people who contribute through reporting issues, posting feature requests,
5
- updating documentation, submitting pull requests or patches, and other
6
- activities.
7
-
8
- We are committed to making participation in this project a harassment-free
9
- experience for everyone, regardless of level of experience, gender, gender
10
- identity and expression, sexual orientation, disability, personal appearance,
11
- body size, race, age, or religion.
12
-
13
- Examples of unacceptable behavior by participants include the use of sexual
14
- language or imagery, derogatory comments or personal attacks, trolling, public
15
- or private harassment, insults, or other unprofessional conduct.
16
-
17
- Project maintainers have the right and responsibility to remove, edit, or
18
- reject comments, commits, code, wiki edits, issues, and other contributions
19
- that are not aligned to this Code of Conduct. Project maintainers who do not
20
- follow the Code of Conduct may be removed from the project team.
21
-
22
- Instances of abusive, harassing, or otherwise unacceptable behavior may be
23
- reported by opening an issue or contacting one or more of the project
24
- maintainers.
25
-
26
- This Code of Conduct is adapted from the [Contributor Covenant](http
27
- :contributor-covenant.org), version 1.0.0, available at [http://contributor-
28
- covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
data/culture/Gemfile DELETED
@@ -1,9 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- group :development, :test do
4
- gem "rubocop"
5
- gem "rspec"
6
- gem "rake"
7
- end
8
-
9
- gemspec
data/culture/LICENSE.txt DELETED
@@ -1,22 +0,0 @@
1
- Copyright (c) 2012 Tony Arcieri, Donovan Keme
2
-
3
- MIT License
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining
6
- a copy of this software and associated documentation files (the
7
- "Software"), to deal in the Software without restriction, including
8
- without limitation the rights to use, copy, modify, merge, publish,
9
- distribute, sublicense, and/or sell copies of the Software, and to
10
- permit persons to whom the Software is furnished to do so, subject to
11
- the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be
14
- included in all copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/culture/README.md DELETED
@@ -1,22 +0,0 @@
1
- Celluloid::Culture
2
- ==================
3
- [![Build Status](https://travis-ci.org/celluloid/culture.svg)](https://travis-ci.org/celluloid/culture)
4
-
5
- ### Please see...
6
- * Important [issues for discussion](/celluloid/culture/issues).
7
- * Information about [Celluloid::Sync](SYNC.md).
8
- * Information about [RuboCop](rubocop/README.md).
9
-
10
-
11
- ## Integration
12
- To add `celluloid/culture` and its many splendors to a gem, install it as a sub-module of the gem repository. Once you fully integrate [`Celluloid::Sync`](SYNC.md), the sub-module will be automatically refreshed.
13
-
14
- ##### Add celluloid/culture as GIT submodule:
15
- ```sh
16
- git submodule add http://github.com/celluloid/culture.git
17
- ```
18
-
19
- Make sure `http://` is used and no other method of inclusion. CI needs it to be `http://`
20
-
21
- ### Then what?
22
- Once you've done that, read up on [Celluloid::Sync](SYNC.md) and [RuboCop](rubocop/README.md).
data/culture/Rakefile DELETED
@@ -1,5 +0,0 @@
1
- require "bundler/gem_tasks"
2
-
3
- Dir["tasks/**/*.rake"].each { |task| load task }
4
-
5
- task default: "rubocop"
data/culture/SYNC.md DELETED
@@ -1,70 +0,0 @@
1
- # Celluloid::Sync
2
-
3
- The `celluloid/culture` sub-module needs to be updated in ever repository which uses it, and integrations between all the gems in Celluloid's core suite began to need greater efficiency in handling many gems at once. This lead to the birth of `Celluloid::Sync` and its automation of several otherwise tedious tasks.
4
-
5
-
6
- ## When all is said and done...
7
-
8
- Running `bundle` or `rspec` will trigger `Celluloid::Sync` automatically, without slowing you down.
9
-
10
- ---
11
-
12
- ## So what does it do?
13
-
14
- **1. It adds the gem you're in to the `$LOADPATH`.**
15
-
16
- **2. It tries to find the `VERSION` constant for the current gem and load it.**
17
-
18
- This allows easy inclusion of `VERSION` in gemspec, without individually including the required file first.
19
-
20
- **3. It updates the `celluloid/culture` sub-module.**
21
-
22
- Whenever `bundle` is run, the `culture/` directory is synchronized with the repository before it's used any further.
23
-
24
- **4. It keeps `Gemfile` and `gemspec` requirements up to date.**
25
-
26
- Avoid circular dependency errors, but still have the power to use locally sourced repositories.
27
-
28
- ---
29
-
30
- ## How is it installed in `Gemfile` and `gemspec` then?
31
-
32
- Add the line above to the top of both files, before everything else:
33
-
34
-
35
- ```ruby
36
- require File.expand_path("../culture/sync", __FILE__)
37
- ```
38
-
39
-
40
- #### Finishing off `gemspec` ...
41
-
42
- You only have one other line to add, other than line above ... right before the closing `end` in the file:
43
-
44
- ```ruby
45
- require File.expand_path("../culture/sync", __FILE__)
46
- Gem::Specification.new do |gem|
47
- # ...
48
- # ...
49
- # Keep in mind, the VERSION constant of this gem ought to be loaded.
50
- # ...
51
- # ...
52
- Celluloid::Sync.gems(gem)
53
- end
54
-
55
- ```
56
-
57
- #### Finishing off `Gemfile` ...
58
-
59
- Same as in `gemspec` you have only two bits to add. The second line we're adding goes at the very end, or at least after `gemspec` is called:
60
-
61
- ```ruby
62
- require File.expand_path("../culture/sync", __FILE__)
63
-
64
- # ...
65
- # below any calls to `gemspec`
66
- # below any other gems
67
- # ...
68
-
69
- Celluloid::Sync.gems(self)
70
- ```
@@ -1,18 +0,0 @@
1
- # coding: utf-8
2
-
3
- Gem::Specification.new do |spec|
4
- spec.name = "celluloid-culture"
5
- spec.version = "0.2"
6
- spec.authors = ["Tony Arcieri", "Donovan Keme"]
7
- spec.email = ["bascule@gmail.com", "code@extremist.digital"]
8
-
9
- spec.summary = "The culture of Celluloid, in RubyGem form!"
10
- spec.description = "In which we try to codify Celluloid's life philosophy as Ruby"
11
- spec.homepage = "https://github.com/celluloid/culture"
12
-
13
- spec.files = Dir["README.md", "CHANGES.md", "LICENSE.txt", "lib/**/*", "spec/**/*"]
14
- spec.require_path = "lib"
15
-
16
- spec.add_development_dependency "bundler", "~> 1.9"
17
- spec.add_development_dependency "rake", "~> 10.0"
18
- end