hoe 3.0.0 → 3.0.1

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.
data.tar.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,15 @@
1
+ === 3.0.1 / 2012-03-26
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Uniqify hoe plugins in sow Rakefile template. (evanphx)
6
+
7
+ * 3 bug fixes:
8
+
9
+ * Fixed have_gem? checks in the install_plugins task to match the install_gem calls.
10
+ * Fixed homepage handling when bullet list used in readme. (evanphx)
11
+ * Removed deprecated use of #url in publish plugin
12
+
1
13
  === 3.0.0 / 2012-03-20
2
14
 
3
15
  * 3 major enhancements:
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.0'
94
+ VERSION = '3.0.1'
95
95
 
96
96
  @@plugins = [:clean, :debug, :deps, :flay, :flog, :newb, :package,
97
97
  :publish, :gemcutter, :signing, :test]
@@ -497,7 +497,7 @@ class Hoe
497
497
  when Hash then
498
498
  urls["home"] || urls.values.first
499
499
  when Array then
500
- urls
500
+ urls.first
501
501
  else
502
502
  raise "unknown urls format: #{urls.inspect}"
503
503
  end
data/lib/hoe/deps.rb CHANGED
@@ -184,9 +184,9 @@ module Hoe::Deps
184
184
  plugins.each do |name|
185
185
  dash_name = name.to_s.gsub '_', '-'
186
186
 
187
- next if have_gem?(name) or
188
- have_gem?("hoe-#{name}") or
189
- have_gem?("hoe-#{dash_name}")
187
+ next if have_gem?("hoe-#{name}") or
188
+ have_gem?(name) or
189
+ have_gem?(dash_name)
190
190
 
191
191
  install_gem("hoe-#{name}", version, false) or
192
192
  install_gem(name, version, false) or
data/lib/hoe/publish.rb CHANGED
@@ -252,7 +252,7 @@ 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 = Array(url).map { |s| "* <#{s.strip.rdoc_to_markdown}>" }.join("\n")
255
+ urls = urls.map { |s| "* <#{s.strip.rdoc_to_markdown}>" }.join("\n")
256
256
 
257
257
  return subject, title, body, urls
258
258
  end
@@ -6,7 +6,7 @@ require 'hoe'
6
6
  <%=
7
7
  found = Gem.find_files("hoe/*.rb").map { |f| File.basename(f, ".rb").to_sym }
8
8
  extra = found - Hoe.plugins - [:rake]
9
- extra.map { |name| "# Hoe.plugin #{name.inspect}" }.sort.join("\n")
9
+ extra.map { |name| "# Hoe.plugin #{name.inspect}" }.sort.uniq.join("\n")
10
10
  %>
11
11
 
12
12
  Hoe.spec '<%= project %>' do
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: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 0
10
- version: 3.0.0
9
+ - 1
10
+ version: 3.0.1
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-20 00:00:00 Z
39
+ date: 2012-03-27 00:00:00 Z
40
40
  dependencies:
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
metadata.gz.sig CHANGED
Binary file