Permalink
Browse files

Fix warning about gem packaging

  • Loading branch information...
1 parent a1c1b11 commit 085ae89ce4e709db8d2d14e603cdcbf5b65bab3a @webmat committed Dec 6, 2011
Showing with 7 additions and 2 deletions.
  1. +1 −0 Gemfile
  2. +4 −0 Gemfile.lock
  3. +2 −2 tasks/gem.rake
View
@@ -3,6 +3,7 @@ source :rubygems
gem 'rainbow'
group :development do
gem 'rake'
+ gem 'rdoc'
gem 'test-unit'
gem 'shoulda'
gem 'mocha', :require => false # Must be loaded only after ActiveSupport::TestCase is defined
View
@@ -1,11 +1,14 @@
GEM
remote: http://rubygems.org/
specs:
+ json (1.6.1)
metaclass (0.0.1)
mocha (0.10.0)
metaclass (~> 0.0.1)
rainbow (1.1.3)
rake (0.9.2.2)
+ rdoc (3.11)
+ json (~> 1.4)
shoulda (2.11.3)
test-unit (2.4.2)
@@ -16,5 +19,6 @@ DEPENDENCIES
mocha
rainbow
rake
+ rdoc
shoulda
test-unit
View
@@ -1,6 +1,6 @@
require 'yaml'
-require 'rake/gempackagetask'
+require 'rubygems/package_task'
spec = Gem::Specification.new do |s|
s.name = GitRemoteBranch::NAME.dup
@@ -30,7 +30,7 @@ end
#Creates clobber_package, gem, package and repackage tasks
#Note on clobber_package: fortunately, this will clobber the CODE package
-Rake::GemPackageTask.new(spec) do |p|
+Gem::PackageTask.new(spec) do |p|
p.gem_spec = spec
end

0 comments on commit 085ae89

Please sign in to comment.