aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/commands/setup_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/commands/setup_command.rb')
-rw-r--r--lib/rubygems/commands/setup_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb
index 97880bc45c..52a3b88fe3 100644
--- a/lib/rubygems/commands/setup_command.rb
+++ b/lib/rubygems/commands/setup_command.rb
@@ -124,7 +124,7 @@ By default, this RubyGems will install gem as:
open release_notes do |io|
text = io.gets '==='
text << io.gets('===')
- text[0...-3]
+ text[0...-3].sub(/^# coding:.*?^=/m, '')
end
else
"Oh-no! Unable to find release notes!"