Permalink
Browse files

Hide magic comment when printing RubyGems release notes

  • Loading branch information...
1 parent efd323a commit 70ecda27858490bee3aba32bd239affe7b8d59ce @drbrain drbrain committed Aug 3, 2011
Showing with 3 additions and 4 deletions.
  1. +0 −1 Manifest.txt
  2. +3 −3 lib/rubygems/commands/setup_command.rb
View
@@ -196,5 +196,4 @@ test/rubygems/test_gem_validator.rb
test/rubygems/test_gem_version.rb
test/rubygems/test_gem_version_option.rb
test/rubygems/test_kernel.rb
-test/rubygems/test_require.rb
util/CL2notes
@@ -134,9 +134,9 @@ def execute
release_notes = File.join Dir.pwd, 'History.txt'
- release_notes = if File.exist? release_notes
-
- history = File.read(release_notes)[3..-1]
+ release_notes = if File.exist? release_notes then
+ history = File.read release_notes
+ history = history.sub(/^# coding:.*?^=/m, '')
text = history.split(HISTORY_HEADER)
text.shift # correct an off-by-one generated by split

0 comments on commit 70ecda2

Please sign in to comment.