hoe-hg 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/CHANGELOG.rdoc +2 -0
  2. data/Rakefile +1 -0
  3. data/lib/hoe/hg.rb +6 -5
  4. metadata +1 -1
@@ -1,2 +1,4 @@
1
1
  === 1.0.0 / 2010-01-15
2
2
  * A quick and dirty port from hoe-git
3
+ === 1.0.3 / 2010-01-15
4
+ * various changes to make things actually work
data/Rakefile CHANGED
@@ -8,6 +8,7 @@ require "hoe/hg"
8
8
  ENV['VERSION']=Hoe::Hg::VERSION
9
9
  Hoe.plugin :doofus, :hg
10
10
 
11
+
11
12
  Hoe.spec "hoe-hg" do
12
13
  developer "McClain Looney", "m@loonsoft.com"
13
14
 
@@ -19,7 +19,7 @@ class Hoe #:nodoc:
19
19
 
20
20
  module Hg
21
21
 
22
- VERSION = "1.0.0"
22
+ VERSION = "1.0.3"
23
23
 
24
24
  attr_accessor :hg_release_tag_prefix
25
25
  attr_accessor :hg_repo, :hg_release_branch
@@ -27,6 +27,7 @@ class Hoe #:nodoc:
27
27
  def initialize_hg #:nodoc:
28
28
  self.hg_release_tag_prefix = "r"
29
29
  self.hg_release_branch = "default"
30
+ self.hg_repo = ""#use whatever is configured in hgrc
30
31
  end
31
32
 
32
33
  def define_hg_tasks #:nodoc:
@@ -45,7 +46,7 @@ class Hoe #:nodoc:
45
46
  desc "Create and push a TAG (default #{hg_release_tag_prefix}#{version})."
46
47
 
47
48
  task "hg:tag" do
48
- tag = ENV["TAG"]
49
+ puts "tagging and pushing #{hg_release_branch} to '#{hg_repo}' or whatever you have configured in .hg/hgrc."
49
50
  tag ||= "#{hg_release_tag_prefix}#{ENV["VERSION"] || version}"
50
51
 
51
52
  hg_tag_and_push tag
@@ -61,9 +62,9 @@ class Hoe #:nodoc:
61
62
  task :release => "hg:tag"
62
63
  end
63
64
 
64
- def hg_tag_and_push branch
65
- sh "hg tag -m 'tagging #{tag} for release'"
66
- sh "hg push #{hg_repo} -r #{tag}"
65
+ def hg_tag_and_push tag
66
+ sh "hg tag -m 'tagging #{tag} for release' #{tag}"
67
+ sh "hg push #{hg_repo} -r #{hg_release_branch}"
67
68
  end
68
69
 
69
70
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-hg
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - McClain Looney