diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-24 15:29:20 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-09-24 15:29:20 -0700 |
commit | 6549b3c8ed13c1c5bf9d5772d3f02c0557e01e01 (patch) | |
tree | 1d99c362da20c40e1d915f5df57a290e35f0db9c /Rakefile | |
parent | 116054cca13118873b838d5325d49ffa128af286 (diff) | |
download | rails-6549b3c8ed13c1c5bf9d5772d3f02c0557e01e01.tar.gz rails-6549b3c8ed13c1c5bf9d5772d3f02c0557e01e01.tar.bz2 rails-6549b3c8ed13c1c5bf9d5772d3f02c0557e01e01.zip |
removing tasks that hoe will provide
Diffstat (limited to 'Rakefile')
-rw-r--r-- | Rakefile | 54 |
1 files changed, 0 insertions, 54 deletions
@@ -1,31 +1,11 @@ require "rubygems" -def gemspec - @gemspec ||= begin - gemspec_file = File.expand_path('../arel.gemspec', __FILE__) - gemspec = eval(File.read(gemspec_file), binding, gemspec_file) - end -end - begin require "spec/rake/spectask" rescue LoadError desc "Run specs" task(:spec) { $stderr.puts '`gem install rspec` to run specs' } else - desc "Run specs using RCov (uses mysql database adapter)" - Spec::Rake::SpecTask.new(:coverage) do |t| - t.spec_files = - ["spec/connections/mysql_connection.rb"] + - FileList['spec/**/*_spec.rb'] - - t.rcov = true - t.rcov_opts << '--exclude' << "spec,gems" - t.rcov_opts << '--text-summary' - t.rcov_opts << '--sort' << 'coverage' << '--sort-reverse' - t.rcov_opts << '--only-uncovered' - end - namespace :spec do %w[mysql sqlite3 postgresql oracle].each do |adapter| task "set_env_for_#{adapter}" do @@ -50,37 +30,3 @@ else desc "Default task is to run specs" task :default => :spec end - -desc "Build pkg/#{gemspec.full_name}.gem" -task :build => "gemspec:validate" do - sh %{gem build arel.gemspec} - FileUtils.mkdir_p "pkg" - FileUtils.mv gemspec.file_name, "pkg" -end - -desc "Install the latest built gem" -task :install => :build do - sh "gem install --local pkg/#{gemspec.file_name}" -end - -namespace :release do - task :tag do - release_tag = "v#{gemspec.version}" - sh "git tag -a #{release_tag} -m 'Tagging #{release_tag}'" - sh "git push origin #{release_tag}" - end - - task :gem => :build do - sh "gem push pkg/#{gemspec.file_name}" - end -end - -desc "Release the current branch to GitHub and Gemcutter" -task :release => %w(release:tag release:gem) - -namespace :gemspec do - desc 'Validate the gemspec' - task :validate do - gemspec.validate - end -end |