tribe 0.6.0 → 0.6.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f3bf6bd1aba1fc0bc7778e35002942f86a23160e
4
- data.tar.gz: c8b4d5c3c3e28f2d3b0598f257a6769ee7e8708b
3
+ metadata.gz: f9abc5cc35384044da534b226cd17e0366dfa4f5
4
+ data.tar.gz: ba406bee8ead723972a90f8693487a8abb641517
5
5
  SHA512:
6
- metadata.gz: 83ac8698abdc2012668474d87009d14156a0a8ef82c17553475f47284a427390bedba8c32f91260da9a14075e28602dfa2e07fe967edbf3963e85748d6b2e50a
7
- data.tar.gz: 269e3611a89686367ed6f012af21eb0fd5ba49a0d9e722b2cd01ecd7025f74158d02484a10d951eebde217ab8e36f8b8731979221fcd8fe25382ed0aca65875c
6
+ metadata.gz: ffc2e47d2ad02dca648aeaada4466668122328c92f5100150dbe6870e3d8df84fcd67c6d8d483e2d3dab27834d9fcafc4ee9fa3c2f555c05d41f491064b78cd4
7
+ data.tar.gz: 0609663a8f9ca5c7ee107ee57512385bd3064a53fa050427090bfb0ff55120694a83f327ee04f531a4e0e0461509dfcff3533d9ccecca98fdf505605003f2dc5
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.2
1
+ jruby-1.7.20
data/Gemfile CHANGED
@@ -4,4 +4,4 @@ gem 'coveralls', :require => false
4
4
 
5
5
  gemspec
6
6
 
7
- gem 'workers', :git => 'https://github.com/chadrem/workers.git'
7
+ gem 'workers', :git => 'https://github.com/chadrem/workers.git'
data/lib/tribe/actable.rb CHANGED
@@ -21,11 +21,12 @@ module Tribe
21
21
  @_actable.pool = @_actable.dedicated ? Workers::Pool.new(:size => 1) : (options[:pool] || Workers.pool)
22
22
  @_actable.mailbox = Tribe::Mailbox.new(@_actable.pool)
23
23
  @_actable.registry = options[:registry] || Tribe.registry
24
- @_actable.scheduler = options[:scheduler]
24
+ @_actable.scheduler = options[:scheduler] || Workers.scheduler
25
25
  @_actable.name = options[:name]
26
26
  @_actable.parent = options[:parent]
27
27
  @_actable.children = Tribe::SafeSet.new
28
28
  @_actable.supervisees = Tribe::SafeSet.new
29
+ @_actable.timers = Tribe::SafeSet.new
29
30
 
30
31
  @_actable.registry.register(self)
31
32
 
@@ -307,10 +308,6 @@ module Tribe
307
308
  private
308
309
 
309
310
  def timer!(delay, command, data = nil)
310
- # Lazy instantiation for performance.
311
- @_actable.scheduler ||= Workers.scheduler
312
- @_actable.timers ||= Tribe::SafeSet.new
313
-
314
311
  timer = Workers::Timer.new(delay, :scheduler => @_actable.scheduler) do
315
312
  @_actable.timers.delete(timer)
316
313
  direct_message!(command, data)
@@ -322,10 +319,6 @@ module Tribe
322
319
  end
323
320
 
324
321
  def periodic_timer!(delay, command, data = nil)
325
- # Lazy instantiation for performance.
326
- @_actable.scheduler ||= Workers.scheduler
327
- @_actable.timers ||= Tribe::SafeSet.new
328
-
329
322
  timer = Workers::PeriodicTimer.new(delay, :scheduler => @_actable.scheduler) do
330
323
  direct_message!(command, data)
331
324
  unless alive?
data/lib/tribe/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Tribe
2
- VERSION = '0.6.0'
2
+ VERSION = '0.6.1'
3
3
  end
metadata CHANGED
@@ -1,81 +1,81 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tribe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chad Remesch
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 2015-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: workers
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ~>
18
17
  - !ruby/object:Gem::Version
19
18
  version: '0.4'
20
- type: :runtime
19
+ name: workers
21
20
  prerelease: false
21
+ type: :runtime
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0.4'
27
27
  - !ruby/object:Gem::Dependency
28
- name: bundler
29
28
  requirement: !ruby/object:Gem::Requirement
30
29
  requirements:
31
- - - "~>"
30
+ - - ~>
32
31
  - !ruby/object:Gem::Version
33
32
  version: '1.10'
34
- type: :development
33
+ name: bundler
35
34
  prerelease: false
35
+ type: :development
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.10'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rake
43
42
  requirement: !ruby/object:Gem::Requirement
44
43
  requirements:
45
- - - "~>"
44
+ - - ~>
46
45
  - !ruby/object:Gem::Version
47
46
  version: '10.0'
48
- type: :development
47
+ name: rake
49
48
  prerelease: false
49
+ type: :development
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  - !ruby/object:Gem::Dependency
56
- name: minitest
57
56
  requirement: !ruby/object:Gem::Requirement
58
57
  requirements:
59
- - - ">="
58
+ - - '>='
60
59
  - !ruby/object:Gem::Version
61
60
  version: '0'
62
- type: :development
61
+ name: minitest
63
62
  prerelease: false
63
+ type: :development
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
- description:
69
+ description:
70
70
  email:
71
71
  - chad@remesch.com
72
72
  executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - ".gitignore"
77
- - ".ruby-version"
78
- - ".travis.yml"
76
+ - .gitignore
77
+ - .ruby-version
78
+ - .travis.yml
79
79
  - Gemfile
80
80
  - Gemfile.lock
81
81
  - LICENSE
@@ -103,24 +103,24 @@ homepage: https://github.com/chadrem/tribe
103
103
  licenses:
104
104
  - MIT
105
105
  metadata: {}
106
- post_install_message:
106
+ post_install_message:
107
107
  rdoc_options: []
108
108
  require_paths:
109
109
  - lib
110
110
  required_ruby_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
- - - ">="
112
+ - - '>='
113
113
  - !ruby/object:Gem::Version
114
114
  version: '0'
115
115
  required_rubygems_version: !ruby/object:Gem::Requirement
116
116
  requirements:
117
- - - ">="
117
+ - - '>='
118
118
  - !ruby/object:Gem::Version
119
119
  version: '0'
120
120
  requirements: []
121
- rubyforge_project:
122
- rubygems_version: 2.4.5
123
- signing_key:
121
+ rubyforge_project:
122
+ rubygems_version: 2.4.6
123
+ signing_key:
124
124
  specification_version: 4
125
125
  summary: Actors based concurrency library for Ruby.
126
126
  test_files: []