Sha256: 7149adf3307ade7167592eb4d0f05d1832517621e45cb7f2dab345ba13c9f57c

Contents?: true

Size: 1.17 KB

Versions: 13

Compression:

Stored size: 1.17 KB

Contents

require 'rubygems'
require 'hoe'
require './lib/spec/rails/version'

class Hoe
  def extra_deps
    @extra_deps.reject! { |x| Array(x).first == 'hoe' }
    @extra_deps
  end
end

Hoe.new('rspec-rails', Spec::Rails::VERSION::STRING) do |p|
  p.summary = Spec::Rails::VERSION::SUMMARY
  p.url = 'http://rspec.info/'
  p.description = "Behaviour Driven Development for Ruby on Rails."
  p.rubyforge_name = 'rspec'
  p.developer('RSpec Development Team', 'rspec-devel@rubyforge.org')
end

['audit','test','test_deps','default','publish_docs','post_blog', 'release'].each do |task|
  Rake.application.instance_variable_get('@tasks').delete(task)
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

Version data entries

13 entries across 13 versions & 3 rubygems

Version Path
jcnetdev-rspec-rails-1.1.5 Rakefile
jnstq-acts_as_sms-0.1.0 test/vendor/plugins/rspec-rails/Rakefile
jnstq-acts_as_sms-0.1.1 test/vendor/plugins/rspec-rails/Rakefile
jnstq-acts_as_sms-0.1.3 test/vendor/plugins/rspec-rails/Rakefile
jnstq-acts_as_sms-0.1.4 test/vendor/plugins/rspec-rails/Rakefile
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/Rakefile
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/plugins/rspec_on_rails/Rakefile
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/plugins/rspec_on_rails/Rakefile
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/Rakefile
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/Rakefile
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/plugins/rspec_on_rails/Rakefile
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/plugins/rspec_on_rails/Rakefile
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/plugins/rspec_on_rails/Rakefile