warrenseen-gemjour 1.0.0 → 1.0.1
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/lib/gemjour.rb +2 -3
- metadata +1 -1
data/lib/gemjour.rb
CHANGED
|
@@ -131,10 +131,9 @@ show <server>
|
|
|
131
131
|
def self.serve(name="", port=PORT)
|
|
132
132
|
name = ENV['USER'] if name.empty?
|
|
133
133
|
|
|
134
|
-
tr =
|
|
134
|
+
tr = Hash.new
|
|
135
135
|
tr['description'] = "#{name}'s gem server"
|
|
136
|
-
|
|
137
|
-
DNSSD.register(name, SERVICE, "local", port, tr.encode) do |reply|
|
|
136
|
+
DNSSD.register(name, SERVICE, "local", port, tr) do |reply|
|
|
138
137
|
puts "Serving gems under name '#{name}'..."
|
|
139
138
|
end
|
|
140
139
|
|