Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

41 lines (34 sloc) 0.79 kB
require 'rubygems'
require 'rake'
def gemspec
@gemspec ||= begin
file = File.expand_path("../eu_central_bank.gemspec", __FILE__)
eval(File.read(file), binding, file)
end
end
begin
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
rescue LoadError
task(:spec){abort "`gem install rspec` to run specs"}
end
task :default => :spec
require 'rdoc/task'
Rake::RDocTask.new
begin
require 'rubygems/package_task'
Gem::PackageTask.new(gemspec) do |pkg|
pkg.gem_spec = gemspec
end
task :gem => :gemspec
rescue LoadError
task(:gem){abort "`gem install rake` to package gems"}
end
desc "Install the gem locally"
task :install => :gem do
sh "gem install pkg/#{gemspec.full_name}.gem"
end
desc "Validate the gemspec"
task :gemspec do
gemspec.validate
end
Jump to Line
Something went wrong with that request. Please try again.