F. Senault
8/25/2008 10:56:00 AM
Le 24 août 2008 à 21:17, James Britt a écrit :
> I'm trying to unpack a gem into a particular directory, but cannot get
> the --target option to work.
Looks like a bug.
Try this :
# diff -u rubygems/commands/unpack_command.rb.orig rubygems/commands/unpack_command.rb
--- rubygems/commands/unpack_command.rb.orig Mon Aug 25 12:53:50 2008
+++ rubygems/commands/unpack_command.rb Mon Aug 25 12:53:20 2008
@@ -12,7 +12,7 @@
:version => Gem::Requirement.default,
:target => Dir.pwd
- add_option('--target', 'target directory for unpacking') do |value, options|
+ add_option('--target=DIR', 'target directory for unpacking') do |value, options|
options[:target] = value
end
And...
> gem unpack BlueCloth --target=./tmp
Unpacked gem: '/home/fred/tmp/BlueCloth-1.0.0'
Fred
--
You better make your face up In your favorite disguise
With your button-down lips And your roller blind eyes
With your empty smile And your hungry heart
(Pink Floyd, Run Like Hell)