specjour 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/specjour/dispatcher.rb +1 -1
- data/lib/specjour/printer.rb +5 -5
- data/lib/specjour.rb +1 -1
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/lib/specjour/dispatcher.rb
CHANGED
@@ -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.
|
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
|
data/lib/specjour/printer.rb
CHANGED
@@ -9,7 +9,7 @@ module Specjour
|
|
9
9
|
def initialize
|
10
10
|
super(
|
11
11
|
port = RANDOM_PORT,
|
12
|
-
host =
|
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