forked from evanphx/gemjour
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathRakefile
47 lines (40 loc) · 1.26 KB
/
Rakefile
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
require "date"
require "fileutils"
require "rubygems"
require "rake/gempackagetask"
require "./lib/gemjour/version.rb"
gemjour_gemspec = Gem::Specification.new do |s|
s.name = "gemjour"
s.version = Gemjour::VERSION
s.platform = Gem::Platform::RUBY
s.has_rdoc = true
s.extra_rdoc_files = ["README.rdoc"]
s.summary = "Advertise, list, and install gems over Bonjour."
s.description = s.summary
s.authors = ["Evan Phoenix"]
s.email = "[email protected]"
s.homepage = "http://github.com/evanphx/gemjour"
s.require_path = "lib"
s.autorequire = "gemjour"
s.files = %w(README.rdoc Rakefile) + Dir.glob("{bin,lib}/**/*")
s.executables = %w(gemjour)
s.add_dependency "net-mdns", ">= 0.4.0"
end
Rake::GemPackageTask.new(gemjour_gemspec) do |pkg|
pkg.gem_spec = gemjour_gemspec
end
namespace :gem do
namespace :spec do
desc "Update gemjour.gemspec"
task :generate do
File.open("gemjour.gemspec", "w") do |f|
f.puts(gemjour_gemspec.to_ruby)
end
end
end
end
task :install => :package do
sh %{sudo gem install pkg/gemjour-#{Gemjour::VERSION}}
end
desc "Remove all generated artifacts"
task :clean => :clobber_package