easyjour 0.0.2 → 0.0.3
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/CHANGELOG +2 -0
- data/README +18 -14
- data/Rakefile +3 -7
- data/easyjour.gemspec +1 -1
- data/examples/httpjour.rb +1 -1
- data/lib/easyjour/version.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -1,34 +1,38 @@
|
|
1
|
-
Easyjour
|
2
|
-
|
1
|
+
= Easyjour
|
2
|
+
|
3
3
|
|
4
4
|
Super simple access to service announcing and discovery using Bonjour aka DNSSD.
|
5
5
|
|
6
6
|
|
7
|
-
Examples
|
8
|
-
|
7
|
+
== Examples
|
8
|
+
|
9
|
+
Announce an HTTP server called garbage_files that's available on port 3000.
|
9
10
|
|
10
|
-
|
11
|
-
Easyjour.serve("garbage_files", 'http', 3000)
|
11
|
+
service = Easyjour.serve("garbage_files", 'http', 3000)
|
12
12
|
|
13
|
+
Search for HTTP servers and print them out as they reply.
|
13
14
|
|
14
|
-
# Continously find HTTP servers and print the url
|
15
15
|
search = Easyjour::Search.new('http') do |result|
|
16
16
|
puts "http://#{result.target}:#{result.port}/"
|
17
17
|
end
|
18
|
+
|
19
|
+
print "Press enter to cancel the search: "
|
20
|
+
gets
|
21
|
+
search.stop
|
18
22
|
|
23
|
+
Do a blocking search for 5 seconds looking for git services.
|
19
24
|
|
20
|
-
# Find the Git servers that respond in 5 seconds or less
|
21
25
|
results = Easyjour.synchronous_search(5, 'git')
|
22
26
|
results.each do |result|
|
23
27
|
puts "git://#{result.target}:#{result.port}"
|
24
28
|
end
|
25
29
|
|
26
30
|
|
27
|
-
Install
|
28
|
-
|
31
|
+
== Install
|
32
|
+
|
33
|
+
gem install easyjour
|
34
|
+
|
29
35
|
|
30
|
-
gem sources -a http://gems.github.com
|
31
|
-
sudo gem install jqr-easyjour
|
32
36
|
|
33
|
-
Homepage
|
34
|
-
Copyright (c) 2008 Elijah Miller <elijah.miller@gmail.com>, released under the MIT license.
|
37
|
+
Homepage:: http://github.com/jqr/easyjour/tree/master
|
38
|
+
License:: Copyright (c) 2008 Elijah Miller <mailto:elijah.miller@gmail.com>, released under the MIT license.
|
data/Rakefile
CHANGED
@@ -1,21 +1,17 @@
|
|
1
|
-
project_name = 'easyjour'
|
2
|
-
website_path = "jqr@rubyforge.org:/var/www/gforge-projects/#{project_name}"
|
3
|
-
|
4
1
|
require 'rake'
|
5
2
|
require 'rake/testtask'
|
6
3
|
require 'rake/rdoctask'
|
7
4
|
require 'spec/rake/spectask'
|
8
|
-
require "lib
|
5
|
+
require "lib/easyjour/version"
|
9
6
|
|
10
7
|
require 'echoe'
|
11
|
-
Echoe.new
|
8
|
+
Echoe.new 'easyjour', Easyjour::Version do |p|
|
12
9
|
p.description = "Super simple access to service announcing and discovery using Bonjour aka DNSSD."
|
13
|
-
p.url = "http
|
10
|
+
p.url = "http://easyjour.rubyforge.org"
|
14
11
|
p.author = "Elijah Miller"
|
15
12
|
p.email = "elijah.miller@gmail.com"
|
16
13
|
# p.extra_deps = [['net-mdns', '>= 0.4']]
|
17
14
|
p.need_tar_gz = false
|
18
|
-
p.docs_host = website_path
|
19
15
|
end
|
20
16
|
|
21
17
|
|
data/easyjour.gemspec
CHANGED
data/examples/httpjour.rb
CHANGED
data/lib/easyjour/version.rb
CHANGED