Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (34 sloc) 0.852 kb
require 'rubygems'
require 'rake/clean'
CLOBBER.include('doc', '.yardoc')
def gemspec
@gemspec ||= begin
file = File.expand_path("../money.gemspec", __FILE__)
eval(File.read(file), binding, file)
end
end
task :default => :spec
task :test => :spec
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new
require 'yard'
YARD::Rake::YardocTask.new do |t|
t.options << "--files" << "CHANGELOG.md,LICENSE"
end
require 'rubygems/package_task'
Gem::PackageTask.new(gemspec) do |pkg|
pkg.gem_spec = gemspec
end
task :gem => :gemspec
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
desc "Open an irb session preloaded with this library"
task :console do
sh "irb -rubygems -I lib -r money.rb"
end
Jump to Line
Something went wrong with that request. Please try again.