findme 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/findme.rb +2 -1
- data/lib/findme/version.rb +1 -1
- data/test/test.rb +3 -1
- metadata +2 -2
data/lib/findme.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require 'findme/version'
|
1
2
|
module Findme
|
2
3
|
|
3
4
|
AVAHI_SERVICE_DIR = "/etc/avahi/services/"
|
@@ -142,7 +143,7 @@ module Findme
|
|
142
143
|
|
143
144
|
#register a new service to the folder
|
144
145
|
def self.register service_name, port, txt="", type = '_tcp', protocol="ipv4"
|
145
|
-
txt = ("findme_startup_time=#{Time.now.to_i.to_s}
|
146
|
+
txt = ("findme_startup_time=#{Time.now.to_i.to_s}#" + txt).strip
|
146
147
|
xml = '<?xml version="1.0" standalone=\'no\'?><!--*-nxml-*-->
|
147
148
|
<!DOCTYPE service-group SYSTEM "avahi-service.dtd">
|
148
149
|
|
data/lib/findme/version.rb
CHANGED
data/test/test.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: findme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-06-
|
12
|
+
date: 2013-06-28 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: find neighborhood host and services with avahi / avahi-daemon. run this
|
15
15
|
for the first time to allow normal user to register services `sudo chmod a+w /etc/avahi/services/`
|