findme 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -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} " + txt).strip
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
 
@@ -1,3 +1,3 @@
1
1
  module Findme
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
@@ -1,7 +1,9 @@
1
- require './findme.rb'
1
+ require File.expand_path("../../lib/findme.rb", __FILE__)
2
2
  require 'pp'
3
3
 
4
4
  Findme.discover.each do |i|
5
5
 
6
6
  pp i.inspect
7
7
  end
8
+
9
+ pp Findme::VERSION
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.7
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-21 00:00:00.000000000 Z
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/`