Sha256: b45da849d7a34d5bbe2da08cfe67448d614be6a7a519a2bf59a1d187d16b3e22
Contents?: true
Size: 1.63 KB
Versions: 2
Compression:
Stored size: 1.63 KB
Contents
# encoding: utf-8 require 'rubygems' require 'rake' require 'rake/testtask' require 'rake/rdoctask' begin require 'jeweler' Jeweler::Tasks.new do |gem| gem.name = 'big_money' gem.summary = %q{BigDecimal backed amount of money in a particular currency.} gem.email = ['shane.hanna@gmail.com', 'mroch@cmu.edu'] gem.homepage = 'http://github.com/shanna/big_money' gem.authors = ['Shane Hanna', 'Marshall Roch'] gem.executables = [] # Only ever bundled development executables in bin/* end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler" end Rake::TestTask.new(:test) do |test| test.libs << 'lib' << 'test' test.pattern = 'test/**/test_*.rb' test.verbose = true end Rake::RDocTask.new do |rdoc| if File.exist?('VERSION.yml') config = YAML.load(File.read('VERSION.yml')) version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}" else version = "" end rdoc.rdoc_dir = 'rdoc' rdoc.title = "big_money #{version}" rdoc.rdoc_files.include('README*') rdoc.rdoc_files.include('lib/**/*.rb') end namespace :currency do desc 'Create ISO 4217 currency classes from wikipedia ISO 4217 table.' task :iso4217 do dirname = File.dirname(__FILE__) gen = File.join(dirname, 'rakelib', %w{iso4217.rb}) lib = File.expand_path(File.join(dirname, %w{lib big_money currency iso4217.rb})) require gen modules = BigMoney::Task::ISO4217.get File.open(lib, File::CREAT | File::TRUNC | File::WRONLY) do |f| f.write modules end end end task :default => :test
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
big_money-1.2.0 | Rakefile |
big_money-1.1.0 | Rakefile |