Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't upload to rubygems.org, fix the :pre task, run specs before che…

…ckin.
  • Loading branch information...
commit 0639d12371800c9d18430d8c8a31d5f34780e3c4 1 parent ed3a49a
@ged authored
Showing with 9 additions and 2 deletions.
  1. +1 −0  Rakefile
  2. +8 −2 lib/hoe/deveiate.rb
View
1  Rakefile
@@ -9,6 +9,7 @@ Hoe.plugin :yard
Hoe.plugin :signing
Hoe.plugin :deveiate
+Hoe.plugins.delete :gemcutter
Hoe.plugins.delete :rubyforge
hoespec = Hoe.spec 'hoe-deveiate' do
View
10 lib/hoe/deveiate.rb
@@ -25,6 +25,8 @@ module Hoe::Deveiate
### Set up defaults
def initialize_deveiate
+ $hoespec = self
+
self.hg_sign_tags = true
@email_to = []
@@ -36,6 +38,8 @@ def initialize_deveiate
@email_config = config['email']
@email_to = Array( @email_config['to'] )
end
+
+ $stderr.puts "Done initializing hoe-deveiate"
end
@@ -49,6 +53,8 @@ def initialize_deveiate
### Add tasks
def define_deveiate_tasks
+ task 'hg:precheckin' => [:spec] if File.directory?( 'spec' )
+
# Rebuild the ChangeLog immediately before release
task :prerelease => 'ChangeLog'
@@ -57,10 +63,10 @@ def define_deveiate_tasks
task :pre do
rev = get_numeric_rev()
trace "Current rev is: %p" % [ rev ]
- hoespec.spec.version.version << "pre#{rev}"
+ $hoespec.spec.version.version << "pre#{rev}"
Rake::Task[:gem].clear
- Gem::PackageTask.new( hoespec.spec ) do |pkg|
+ Gem::PackageTask.new( $hoespec.spec ) do |pkg|
pkg.need_zip = true
pkg.need_tar = true
end
Please sign in to comment.
Something went wrong with that request. Please try again.