[Rake-devel] gempackagetask.rb small patch
Masao Mutoh
mutoh at highway.ne.jp
Sun Sep 4 02:27:38 EDT 2005
Hi,
I noticed Rake::GemPackageTask failes when
Gem::Platform was set to the value such as
Gem::Platform::CURRENT, WIN32.
Here is the smallest Rakefile to reproduce this problem.
----
require 'rubygems'
require 'rake'
require 'rake/packagetask'
require 'rake/gempackagetask'
spec = Gem::Specification.new do |s|
s.name = 'sample'
s.version = "1.0.0"
s.summary = 'sample'
s.platform = Gem::Platform::CURRENT
end
Rake::GemPackageTask.new(spec) do |p|
p.gem_spec = spec
p.need_tar_gz = false
p.need_zip = false
end
----
The result ws:
----
rake package
(in /home/mutoh/sample)
Successfully built RubyGem
Name: sample
Version: 1.0.0
File: sample-1.0.0-i686-linux.gem
mv sample-1.0.0.gem pkg/sample-1.0.0.gem
rake aborted!
No such file or directory - sample-1.0.0.gem
----
Attached patch fixes this problem.
HTH.
--
.:% Masao Mutoh<mutoh at highway.ne.jp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: rake.patch
Type: application/octet-stream
Size: 430 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rake-devel/attachments/20050904/8bf33e3e/rake.obj
More information about the Rake-devel
mailing list