diff options
-rw-r--r-- | lib/rubygems/stub_specification.rb | 22 |
1 files changed, 10 insertions, 12 deletions
@@ -111,20 +111,18 @@ class Gem::StubSpecification < Gem::BasicSpecification saved_lineno = $. Gem.open_file loaded_from, OPEN_MODE do |file| - begin - file.readline # discard encoding line - stubline = file.readline.chomp - if stubline.start_with?(PREFIX) - extensions = if /\A#{PREFIX}/ =~ file.readline.chomp - $'.split "\0" - else - StubLine::NO_EXTENSIONS - end - - @data = StubLine.new stubline, extensions end - rescue EOFError end end ensure $. = saved_lineno |