Sha256: 310f2c5d93cdc88ee79517caa5dc4d116faa9142b102a326113136ec2ebb2191
Contents?: true
Size: 1.85 KB
Versions: 3
Compression:
Stored size: 1.85 KB
Contents
require "rake" require "bundler" require "rake/testtask" require "rdoc/task" # Gemcutter/Jeweler configuration # ----------------------------------------------------------------------------- begin require "jeweler" Jeweler::Tasks.new do |gem| gem.name = "currency_select" gem.summary = "Currency Select plugin for Rails" gem.description = "Adds a currency_select helper to Ruby on Rails projects" gem.email = "tanordheim@gmail.com" gem.homepage = "http://github.com/tanordheim/currency_select" gem.authors = [ "Trond Arve Nordheim" ] gem.version = File.read('VERSION').chomp end Jeweler::GemcutterTasks.new rescue LoadError puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler" end # Test setup # ----------------------------------------------------------------------------- Rake::TestTask.new(:test) do |t| t.libs << "lib" << "test" t.ruby_opts << "-rubygems" t.pattern = "test/**/*_test.rb" t.verbose = true end # RDoc setup # ---------------------------------------------------------------------------- Rake::RDocTask.new do |rdoc| version = File.exists?("VERSION") ? File.read("VERSION") : "" rdoc.rdoc_dir = "rdoc" rdoc.title = "currency_select #{version}" rdoc.rdoc_files.include("README.rdoc") rdoc.rdoc_files.include("lib/**/*.rb") end # Rcov setup # ---------------------------------------------------------------------------- begin require "rcov/rcovtask" Rcov::RcovTask.new do |test| test.libs << "test" test.pattern = "test/**/*_test.rb" test.verbose = "true" end rescue LoadError task :rcov do abort "Rcov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov" end end # Task setups # ----------------------------------------------------------------------------- task :test => :check_dependencies task :default => :test
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
currency_select-0.1.5 | Rakefile |
currency_select-0.1.4 | Rakefile |
currency_select-0.1.3 | Rakefile |