distributed_demo 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/server.rb +1 -1
  2. metadata +3 -2
data/lib/server.rb CHANGED
@@ -15,7 +15,7 @@ module Dist
15
15
 
16
16
  def initialize(port)
17
17
  @server = TCPServer.new(port)
18
- @roles = Dir[File.join(File.dirname(__FILE__), 'roles', '*')].map { |p| p.split('/').last }.inject({}) { |o,f| o[f] = Set.new; o }
18
+ @roles = Dir[File.join(File.dirname(__FILE__), '..', 'roles', '*')].map { |p| p.split('/').last }.inject({}) { |o,f| o[f] = Set.new; o }
19
19
  end
20
20
 
21
21
  attr_reader :roles
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 0
8
- - 6
9
- version: 1.0.6
8
+ - 7
9
+ version: 1.0.7
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tyler McMullen
@@ -95,6 +95,7 @@ rdoc_options: []
95
95
 
96
96
  require_paths:
97
97
  - lib
98
+ - .
98
99
  required_ruby_version: !ruby/object:Gem::Requirement
99
100
  requirements:
100
101
  - - ">="