nogoth-pastejour 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +2 -2
- data/Rakefile +1 -1
- data/lib/pastejour/version.rb +1 -1
- data/lib/pastejour.rb +2 -3
- metadata +1 -1
data/README.rdoc
CHANGED
@@ -4,7 +4,7 @@ Broadcast standard out.
|
|
4
4
|
|
5
5
|
== Installation
|
6
6
|
|
7
|
-
sudo gem install
|
7
|
+
sudo gem install net-mdns
|
8
8
|
sudo gem install jbarnette-pastejour --source=http://gems.github.com
|
9
9
|
|
10
10
|
== Usage
|
@@ -52,4 +52,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
52
52
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
53
53
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
54
54
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
55
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
55
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
CHANGED
@@ -22,7 +22,7 @@ pastejour_gemspec = Gem::Specification.new do |s|
|
|
22
22
|
s.files = %w(README.rdoc Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
|
23
23
|
s.executables = %w(pastejour)
|
24
24
|
|
25
|
-
s.add_dependency "
|
25
|
+
s.add_dependency "net-mdns", ">= 0.4.0"
|
26
26
|
end
|
27
27
|
|
28
28
|
Rake::GemPackageTask.new(pastejour_gemspec) do |pkg|
|
data/lib/pastejour/version.rb
CHANGED
data/lib/pastejour.rb
CHANGED
@@ -60,10 +60,9 @@ module Pastejour
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def self.serve(name, multiple, contents)
|
63
|
-
|
64
|
-
tr['description'] = File.read("#{path}/.git/description") rescue "a git project"
|
63
|
+
description = File.read("#{path}/.git/description") rescue "a git project"
|
65
64
|
|
66
|
-
DNSSD.register(name, SERVICE, "local", PORT,
|
65
|
+
DNSSD.register(name, SERVICE, "local", PORT, {"description"=>description}) do |reply|
|
67
66
|
puts "Pasting #{name}..."
|
68
67
|
end
|
69
68
|
|