aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/gems/rspec-rails-1.3.3/Rakefile
blob: 554706ce22bb14a4f4aec7d5d2cb567eaa473bd5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- ruby -*-
gem 'hoe', '>=2.0.0'
require 'hoe'

$:.unshift(File.expand_path(File.join(File.dirname(__FILE__),"..","rspec","lib")))
$:.unshift(File.expand_path(File.join(File.dirname(__FILE__),"lib")))

require 'spec/rails/version'
require 'spec/rake/spectask'
require 'cucumber/rake/task'

Hoe.spec 'rspec-rails' do
  self.version = Spec::Rails::VERSION::STRING
  self.summary = Spec::Rails::VERSION::SUMMARY
  self.description = "Behaviour Driven Development for Ruby on Rails."
  self.rubyforge_name = 'rspec'
  self.developer 'RSpec Development Team', 'rspec-devel@rubyforge.org'
  self.extra_deps = [["rspec","1.3.1"],["rack",">=1.0.0"]]
  self.extra_dev_deps = [["cucumber",">= 0.3.99"]]
  self.remote_rdoc_dir = "rspec-rails/#{Spec::Rails::VERSION::STRING}"
  self.history_file = 'History.rdoc'
  self.readme_file  = 'README.rdoc'
  self.post_install_message = <<-POST_INSTALL_MESSAGE
#{'*'*50}

  Thank you for installing rspec-rails-#{Spec::Rails::VERSION::STRING}
  
  If you are upgrading, do this in each of your rails apps
  that you want to upgrade:

    $ ruby script/generate rspec

  Please be sure to read History.rdoc and Upgrade.rdoc
  for useful information about this release.

#{'*'*50}
POST_INSTALL_MESSAGE
end

['audit','test','test_deps','default','post_blog', 'release'].each do |task|
  Rake.application.instance_variable_get('@tasks').delete(task)
end

task :post_blog do
  # no-op
end

task :release => [:clean, :package] do |t|
  version = ENV["VERSION"] or abort "Must supply VERSION=x.y.z"
  abort "Versions don't match #{version} vs #{Spec::Rails::VERSION::STRING}" unless version == Spec::Rails::VERSION::STRING
  pkg = "pkg/rspec-rails-#{version}"

  rubyforge = RubyForge.new.configure
  puts "Logging in to rubyforge ..."
  rubyforge.login

  puts "Releasing rspec-rails version #{version} ..."
  ["#{pkg}.gem", "#{pkg}.tgz"].each do |file|
    rubyforge.add_file('rspec', 'rspec', Spec::Rails::VERSION::STRING, file)
  end
end

Cucumber::Rake::Task.new

task :default => [:features]

namespace :update do
  desc "update the manifest"
  task :manifest do
    system %q[touch Manifest.txt; rake check_manifest | grep -v "(in " | patch]
  end
end