hoe-git 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data.tar.gz.sig +0 -0
  2. data/CHANGELOG.rdoc +11 -0
  3. data/lib/hoe/git.rb +8 -3
  4. metadata +9 -10
  5. metadata.gz.sig +1 -3
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,14 @@
1
+ === 1.4.1 / 2011-10-04
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added git:tags.
6
+
7
+ * 2 bug fixes:
8
+
9
+ * Fixed name-rev to use --tags. Version diff?
10
+ * Newer versions of git are tacking on a "^0" to tag names for some stupid reason.
11
+
1
12
  === 1.4.0 / 2011-05-16
2
13
 
3
14
  * 2 minor enhancements:
@@ -20,7 +20,7 @@ class Hoe #:nodoc:
20
20
  module Git
21
21
 
22
22
  # Duh.
23
- VERSION = "1.4.0"
23
+ VERSION = "1.4.1"
24
24
 
25
25
  # What do you want at the front of your release tags?
26
26
  # [default: <tt>"v"</tt>]
@@ -109,6 +109,10 @@ class Hoe #:nodoc:
109
109
  git_tag_and_push tag
110
110
  end
111
111
 
112
+ task "git:tags" do
113
+ p git_tags
114
+ end
115
+
112
116
  task :release_sanity do
113
117
  unless `git status` =~ /^nothing to commit/
114
118
  abort "Won't release: Dirty index or untracked files present!"
@@ -133,7 +137,7 @@ class Hoe #:nodoc:
133
137
  end
134
138
  end
135
139
 
136
- def git_tags # FIX: order by date, not alpha!
140
+ def git_tags
137
141
  if git_svn?
138
142
  source = `git config svn-remote.svn.tags`.strip
139
143
 
@@ -149,8 +153,9 @@ class Hoe #:nodoc:
149
153
  else
150
154
  flags = "--date-order --simplify-by-decoration --pretty=format:%H"
151
155
  hashes = `git log #{flags}`.split(/\n/).reverse
152
- names = `git name-rev #{hashes.join " "}`.split(/\n/)
156
+ names = `git name-rev --tags #{hashes.join " "}`.split(/\n/)
153
157
  names = names.map { |s| s[/tags\/(v.+)/, 1] }.compact
158
+ names = names.map { |s| s.sub(/\^0$/, '') }
154
159
  names.select { |t| t =~ %r{^#{git_release_tag_prefix}} }
155
160
  end
156
161
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-git
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 0
10
- version: 1.4.0
9
+ - 1
10
+ version: 1.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Barnette
@@ -36,7 +36,7 @@ cert_chain:
36
36
  FBHgymkyj/AOSqKRIpXPhjC6
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2011-05-17 00:00:00 Z
39
+ date: 2011-10-04 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: hoe
@@ -60,14 +60,13 @@ dependencies:
60
60
  requirement: &id002 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
- - - ">="
63
+ - - ~>
64
64
  - !ruby/object:Gem::Version
65
- hash: 35
65
+ hash: 27
66
66
  segments:
67
67
  - 2
68
- - 9
69
- - 4
70
- version: 2.9.4
68
+ - 12
69
+ version: "2.12"
71
70
  type: :development
72
71
  version_requirements: *id002
73
72
  description: |-
@@ -121,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
121
120
  requirements: []
122
121
 
123
122
  rubyforge_project: hoe-git
124
- rubygems_version: 1.8.2
123
+ rubygems_version: 1.8.10
125
124
  signing_key:
126
125
  specification_version: 3
127
126
  summary: A set of Hoe plugins for tighter Git integration
metadata.gz.sig CHANGED
@@ -1,3 +1 @@
1
- ����'*P�*�xm8:P%�|� -��1�˥���Oc\ԯ����Q5�<o�"9({��;�zZ.�J*�� U�+�1Go�&����D���Ų=:���� w����ڪk���=󦧼�ܾL#���:#�D���Q�S&;��q�(�k
2
- 3���@���(�s$���5�so�m!&�l�3�!��6�X�(L��@HFVG�{���~��C�ư��5����� �u+#�k�_ٍ\�A
3
- ����%�u�q
1
+ x�����&�l�i�3)���x�.խNn��Nv�Z�v��%�"�/B�?^&���X��\��<�����`���[I�:��cZ�oI��7 :ec|݌sDz?zc�B�ib��&������hyύ�V~�]Qk:���$����Z�)�1}��ة�D���J��$���°�s1�ϊؐ}��Η���\�)��~��(�`dt��e&�m5��b#�K��#k_&gc���`>#5�ȑ_��E�?�f��Q��