Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 56 lines (48 sloc) 1.485 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
require "date"
require "fileutils"
require "rubygems"
require "rake/gempackagetask"
require "spec/rake/spectask"
require "./lib/dejour/version.rb"

dejour_gemspec = Gem::Specification.new do |s|
  s.name = "dejour"
  s.version = Dejour::VERSION
  s.platform = Gem::Platform::RUBY
  s.has_rdoc = true
  s.extra_rdoc_files = ["README.rdoc"]
  s.summary = "Find awesome stuff"
  s.description = s.summary
  s.authors = ["Aaron Patterson"]
  s.email = "aaronp@rubyforge.org"
  s.homepage = "http://github.com/aaronp/dejour"
  s.require_path = "lib"
  s.autorequire = "dejour"
  s.files = %w(README.rdoc Rakefile) + Dir.glob("{bin,lib,spec}/**/*")
  s.executables = %w(dejour)
  s.add_dependency "dnssd", ">= 0.6.0"
  s.add_dependency "meow"
end

Rake::GemPackageTask.new(dejour_gemspec) do |pkg|
  pkg.gem_spec = dejour_gemspec
end

namespace :gem do
  namespace :spec do
    desc "Update dejour.gemspec"
    task :generate do
      File.open("dejour.gemspec", "w") do |f|
        f.puts(dejour_gemspec.to_ruby)
      end
    end
  end
end

task :install => :package do
  sh %{sudo gem install --local pkg/dejour-#{Dejour::VERSION}}
end

desc "Run all specs"
Spec::Rake::SpecTask.new do |t|
  t.spec_files = FileList["spec/**/*_spec.rb"]
  t.spec_opts = ["--options", "spec/spec.opts"]
end

task :default => :spec

desc "Remove all generated artifacts"
task :clean => :clobber_package
Something went wrong with that request. Please try again.