tra 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tra.rb +5 -3
- data/tra.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4a84b53b34c31d8bb637f5ee409bf0d3aaec9d25
|
4
|
+
data.tar.gz: c38aa19122fec744ec828a5ce3c64b4ad3a7545d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4180e1fdb9f22d1248f93a4185e61d058df415e6b20edb1614566528d450fea658081cff936e0b3c926afd5d8b77f81390725d2918cbf05b515a43371dc92d55
|
7
|
+
data.tar.gz: 258cfcac05bfecc92dd59a79da29514f61853a3658c194ee6772ce9c6e911ce4e72f71cd8a8d34f1847bc6659e16208511d612fc6d32962eea9e3249a172aa7c
|
data/lib/tra.rb
CHANGED
@@ -11,12 +11,14 @@ module Tra
|
|
11
11
|
FILE = -> pid { "#{DIRECTORY}/#{pid}" }
|
12
12
|
|
13
13
|
class << self
|
14
|
-
|
15
|
-
|
14
|
+
def enumerator
|
15
|
+
@enumerator ||= Enumerator.new do |y|
|
16
|
+
loop { y << QUEUE.pop }
|
17
|
+
end
|
16
18
|
end
|
17
19
|
|
18
20
|
extend Forwardable
|
19
|
-
delegate [:next, :take] => :
|
21
|
+
delegate [:next, :take] => :enumerator
|
20
22
|
|
21
23
|
def run
|
22
24
|
Mailbox.receive
|
data/tra.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anatoly Chernow
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -41,7 +41,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
41
41
|
version: '0'
|
42
42
|
requirements: []
|
43
43
|
rubyforge_project:
|
44
|
-
rubygems_version: 2.
|
44
|
+
rubygems_version: 2.6.8
|
45
45
|
signing_key:
|
46
46
|
specification_version: 4
|
47
47
|
summary: Erlang-style messaging for Ruby processes
|