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 CHANGED
@@ -1,3 +1,5 @@
1
+ v0.0.3. Documentation improvements and other minor changes.
2
+
1
3
  v0.0.2. First gem release.
2
4
 
3
5
  v0.0.1. Initial release.
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
- # garbage_files is an HTTP server available on port 3000
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: http://github.com/jqr/easyjour/tree/master
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/#{project_name}/version"
5
+ require "lib/easyjour/version"
9
6
 
10
7
  require 'echoe'
11
- Echoe.new project_name, Easyjour::Version do |p|
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://#{project_name}.rubyforge.org"
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
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{easyjour}
5
- s.version = "0.0.2"
5
+ s.version = "0.0.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Elijah Miller"]
data/examples/httpjour.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'rubygems'
3
- require File.join(File.dirname(__FILE__), '..', 'lib', 'easyjour')
3
+ require 'easyjour'
4
4
 
5
5
  class HTTPjour
6
6
  def self.serve
@@ -1,3 +1,3 @@
1
1
  module Easyjour
2
- Version = '0.0.2'
2
+ Version = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easyjour
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elijah Miller