Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (15 sloc) 436 Bytes
require "bundler"
Bundler.setup
require 'rake/testtask'
desc 'Test the library.'
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'test/**/*_test.rb'
t.verbose = true
end
gemspec = eval(File.read("iptc.gemspec"))
task :build => "#{gemspec.full_name}.gem"
file "#{gemspec.full_name}.gem" => gemspec.files + ["iptc.gemspec"] do
system "gem build iptc.gemspec"
system "gem install iptc-#{IPTC::VERSION}.gem"
end