hoe 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,9 @@
1
+ === 3.0.2 / 2012-04-03
2
+
3
+ * 1 bug fix:
4
+
5
+ * Generate urls list properly in #announcement if you use k/v form
6
+
1
7
  === 3.0.1 / 2012-03-26
2
8
 
3
9
  * 1 minor enhancement:
data/lib/hoe.rb CHANGED
@@ -91,7 +91,7 @@ class Hoe
91
91
  include Rake::DSL if defined?(Rake::DSL)
92
92
 
93
93
  # duh
94
- VERSION = '3.0.1'
94
+ VERSION = '3.0.2'
95
95
 
96
96
  @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
97
97
  :publish, :gemcutter, :signing, :test]
@@ -252,9 +252,19 @@ module Hoe::Publish
252
252
  subject = "#{name} #{version} Released"
253
253
  title = "#{name} version #{version} has been released!"
254
254
  body = "#{description}\n\nChanges:\n\n#{changes}".rdoc_to_markdown
255
- urls = urls.map { |s| "* <#{s.strip.rdoc_to_markdown}>" }.join("\n")
256
255
 
257
- return subject, title, body, urls
256
+ urls =
257
+ case self.urls
258
+ when Hash then
259
+ self.urls.map { |k,v| "* #{k}: <#{v.strip.rdoc_to_markdown}>" }
260
+ when Array then
261
+ self.urls.map { |s| "* <#{s.strip.rdoc_to_markdown}>" }
262
+ else
263
+ raise "unknown urls format: #{urls.inspect}"
264
+ end
265
+
266
+
267
+ return subject, title, body, urls.join("\n")
258
268
  end
259
269
  end
260
270
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 1
10
- version: 3.0.1
9
+ - 2
10
+ version: 3.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Davis
@@ -36,7 +36,7 @@ cert_chain:
36
36
  FBHgymkyj/AOSqKRIpXPhjC6
37
37
  -----END CERTIFICATE-----
38
38
 
39
- date: 2012-03-27 00:00:00 Z
39
+ date: 2012-04-04 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  requirements: []
177
177
 
178
178
  rubyforge_project: seattlerb
179
- rubygems_version: 1.8.17
179
+ rubygems_version: 1.8.12
180
180
  signing_key:
181
181
  specification_version: 3
182
182
  summary: Hoe is a rake/rubygems helper for project Rakefiles
metadata.gz.sig CHANGED
Binary file