I know this is stupid, but I'm posting this anyway.
I've attached a patch that creates the Windows stubs with just the
deprecation message, since:
1) Was broken (call "script_name" without path/to/script don't work on windows).
2) Need launch ruby to just show the warning.
The alternative just print it, and exit.
As I said, it's stupid, but will make the deprecation be shown really.
--
Luis Lavena
Multimedia systems
-
Leaders are made, they are not born. They are made by hard effort,
which is the price which all of us must pay to achieve any goal that
is worthwhile.
Vince Lombardi
Index: setup.rb
===================================================================
--- setup.rb (revision 1461)
+++ setup.rb (working copy)
@@ -115,18 +115,20 @@
old_bin_path = File.join bin_dir, old_bin_file
next unless File.exist? old_bin_path
+ deprecation_message = "`#{old_bin_file}` has been deprecated. Use `#{new_name}` instead."
+
File.open old_bin_path, 'w' do |fp|
fp.write <<-EOF
#!#{Gem.ruby}
-abort "`#{old_bin_file}` has been deprecated. Use `#{new_name}` instead."
+abort "#{deprecation_message}"
EOF
end
next unless Gem.win_platform?
File.open "#{old_bin_path}.cmd", 'w' do |fp|
- fp.puts %{@"#{ruby_cmd}" "#{old_bin_file}"}
+ fp.puts [EMAIL PROTECTED]
end
end
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers