nogoth-pastejour 1.0.3 → 1.0.4

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/README.rdoc CHANGED
@@ -4,7 +4,7 @@ Broadcast standard out.
4
4
 
5
5
  == Installation
6
6
 
7
- sudo gem install dnssd
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 "dnssd", ">= 0.6.0"
25
+ s.add_dependency "net-mdns", ">= 0.4.0"
26
26
  end
27
27
 
28
28
  Rake::GemPackageTask.new(pastejour_gemspec) do |pkg|
@@ -1,3 +1,3 @@
1
1
  module Pastejour
2
- VERSION = "1.0.3".freeze
2
+ VERSION = "1.0.4".freeze
3
3
  end
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
- tr = DNSSD::TextRecord.new
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, tr.encode) do |reply|
65
+ DNSSD.register(name, SERVICE, "local", PORT, {"description"=>description}) do |reply|
67
66
  puts "Pasting #{name}..."
68
67
  end
69
68
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nogoth-pastejour
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Barnette