Rakefile in right_http_connection-1.2.3 vs Rakefile in right_http_connection-1.2.4
- old
+ new
@@ -10,14 +10,14 @@
require 'hoe'
include FileUtils
require File.join(File.dirname(__FILE__), 'lib', 'right_http_connection')
AUTHOR = 'RightScale' # can also be an array of Authors
-EMAIL = "support@rightscale.com"
+EMAIL = "rubygems@rightscale.com"
DESCRIPTION = "RightScale's robust HTTP/S connection module"
GEM_NAME = 'right_http_connection' # what ppl will type to install your gem
-RUBYFORGE_PROJECT = 'rightaws' # The unix name for your project
+RUBYFORGE_PROJECT = 'rightscale' # The unix name for your project
HOMEPATH = "http://#{RUBYFORGE_PROJECT}.rubyforge.org"
DOWNLOAD_PATH = "http://rubyforge.org/projects/#{RUBYFORGE_PROJECT}"
NAME = "right_http_connection"
REV = nil # UNCOMMENT IF REQUIRED: File.read(".svn/entries")[/committed-rev="(d+)"/, 1] rescue nil
@@ -27,13 +27,26 @@
"--opname", "index.html",
"--line-numbers",
"--main", "README",
"--inline-source"]
+# Suppress Hoe's self-inclusion as a dependency for our Gem. This also keeps
+# Rake & rubyforge out of the dependency list. Users must manually install
+# these gems to run tests, etc.
+# TRB 2/19/09: also do this for the extra_dev_deps array present in newer hoes.
+# Older versions of RubyGems will try to install developer-dependencies as
+# required runtime dependencies....
class Hoe
- def extra_deps
- @extra_deps.reject { |x| Array(x).first == 'hoe' }
- end
+ def extra_deps
+ @extra_deps.reject do |x|
+ Array(x).first == 'hoe'
+ end
+ end
+ def extra_dev_deps
+ @extra_dev_deps.reject do |x|
+ Array(x).first == 'hoe'
+ end
+ end
end
# Generate all the Rake tasks
# Run 'rake -T' to see list of generated tasks (from gem root directory)
hoe = Hoe.new(GEM_NAME, VERS) do |p|