specjour 0.1.1 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -95,7 +95,7 @@ module Specjour
95
95
 
96
96
  def set_up_manager(manager, uri)
97
97
  manager.project_name = project_name
98
- manager.dispatcher_uri = URI::Generic.build :scheme => "specjour", :host => printer.host, :port => printer.port
98
+ manager.dispatcher_uri = URI::Generic.build :scheme => "specjour", :host => printer.hostname, :port => printer.port
99
99
  end
100
100
 
101
101
  def sync_managers
@@ -9,7 +9,7 @@ module Specjour
9
9
  def initialize
10
10
  super(
11
11
  port = RANDOM_PORT,
12
- host = hostname,
12
+ host = "0.0.0.0",
13
13
  max_connections = 100,
14
14
  stdlog = $stderr,
15
15
  audit = true,
@@ -28,6 +28,10 @@ module Specjour
28
28
  report.add(summary)
29
29
  end
30
30
 
31
+ def hostname
32
+ @hostname ||= Socket.gethostname
33
+ end
34
+
31
35
  protected
32
36
 
33
37
  def disconnecting(client_port)
@@ -37,10 +41,6 @@ module Specjour
37
41
  end
38
42
  end
39
43
 
40
- def hostname
41
- @hostname ||= Socket.gethostname
42
- end
43
-
44
44
  def log(msg)
45
45
  #noop
46
46
  end
data/lib/specjour.rb CHANGED
@@ -18,5 +18,5 @@ module Specjour
18
18
  autoload :RsyncDaemon, 'specjour/rsync_daemon'
19
19
  autoload :Worker, 'specjour/worker'
20
20
 
21
- VERSION = "0.1.1".freeze
21
+ VERSION = "0.1.2".freeze
22
22
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 2
9
+ version: 0.1.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sandro Turriate