Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (36 sloc) 1.451 kb
($:.unshift File.expand_path(File.join( File.dirname(__FILE__), 'lib' ))).uniq!
require 'launchdr'
# =======================
# = Gem packaging tasks =
# =======================
begin
require 'echoe'
task :package => :'package:package'
task :install => :'package:install'
task :manifest => :'package:manifest'
task :clobber => :'package:clobber'
namespace :package do
Echoe.new('launchdr', LaunchDr::Version) do |g|
g.author = ['elliottcable']
g.email = ['launchdr@elliottcable.com']
g.summary = "One stop shop for launchd property list creation. The doctor is *in*!"
g.url = 'http://github.com/elliottcable/launchdr'
g.dependencies = ['plist', 'facets', 'uuid']
g.development_dependencies = ['echoe >= 3.0.2']
g.manifest_name = '.manifest' # I don't want this showing up <,<
g.retain_gemspec = true # perfect for GitHub
g.rakefile_name = 'Rakefile.rb' # It's a Ruby file, why not have .rb?
g.ignore_pattern = /^\.git\/|\.gemspec/
end
desc 'tests packaged files to ensure they are all present'
task :verify => :package do
# An error message will be displayed if files are missing
if system %(ruby -e "require 'rubygems'; require 'pkg/launchdr-#{LaunchDr::Version}/lib/launchdr'")
puts "\nThe library files are present"
end
end
end
rescue LoadError
desc 'You need the `echoe` gem to package LaunchDr'
task :package
end
Jump to Line
Something went wrong with that request. Please try again.