tra 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/tra.rb +5 -3
  3. data/tra.gemspec +1 -1
  4. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12350315bcfa8dc01152aa678632723a527d5e80
4
- data.tar.gz: 6ee3aad4b5f4dd27eb1743d6b15d55d7e489f22d
3
+ metadata.gz: 4a84b53b34c31d8bb637f5ee409bf0d3aaec9d25
4
+ data.tar.gz: c38aa19122fec744ec828a5ce3c64b4ad3a7545d
5
5
  SHA512:
6
- metadata.gz: f9d807432a2f1e5de0f4a84ab4c609eef282cb4d70e0e96a32a6f70c2c78a6133d932624c1437a13cccc394e840f75d569e137fa51c8169a11e832f83d0f1597
7
- data.tar.gz: 648c210b376d7089aeefec8f0d5d4034f2aa9de7d9fba7d3293188fdc6921a8d25da23f5ac5bd6cf390fa5960f81e670cb385f376f542a2b9c4e9a9aac40711f
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
- ENUMERATOR = Enumerator.new do |y|
15
- loop { y << QUEUE.pop }
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] => :ENUMERATOR
21
+ delegate [:next, :take] => :enumerator
20
22
 
21
23
  def run
22
24
  Mailbox.receive
data/tra.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |g|
2
2
  g.name = 'tra'
3
3
  g.files = `git ls-files`.split($/)
4
- g.version = '0.0.1'
4
+ g.version = '0.0.2'
5
5
  g.summary = 'Erlang-style messaging for Ruby processes'
6
6
  g.authors = ['Anatoly Chernow']
7
7
  end
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.1
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: 2016-11-01 00:00:00.000000000 Z
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.5.1
44
+ rubygems_version: 2.6.8
45
45
  signing_key:
46
46
  specification_version: 4
47
47
  summary: Erlang-style messaging for Ruby processes