From: Eric Hodel Date: 2009-04-25T03:55:33+09:00 Subject: Re: problem with rubygems and rake creating a new gem On Apr 24, 2009, at 06:33, Mario Ruiz wrote: > I've updated rubygems to the last version since it was necessary for > another library and now I cannot create the gem file for my framework. RubyGems 1.3.2 removed Gem::manage_gems: http://rubyforge.org/forum/forum.php?forum_id=3166 It had been deprecated and was giving warnings for some time now. Also, you should use Gem::PackageTask instead of Rake's GemPackage task. > What I have is a rakefile.rb: > [...] I've fixed it for you: require 'rubygems' require 'rubygems/packagetask' spec = Gem::Specification.new do |s| s.name = "BxWW" s.version = "1.3.0" s.author = "Mario Ruiz" s.email = "mario@mario.com" s.summary = "blabla blabla" s.description = "FIX" s.homepage = "FIX" s.files = FileList['src/**/*'].to_a s.require_path = "." end Gem::PackageTask.new(spec) do |pkg| pkg.need_tar = true end task :default => "build/#{spec.name}-#{spec.version}.gem" do puts "generated latest version" end