lib/pessimize/gem.rb in pessimize-0.2.0 vs lib/pessimize/gem.rb in pessimize-0.3.0
- old
+ new
@@ -47,10 +47,10 @@
def parse_version
token_before_version = original_tokens.index { |t| t[1] == :on_comma }
if token_before_version
remaining_tokens = original_tokens[(token_before_version + 1)..-1]
- while [:on_sp, :on_tstring_beg].include? remaining_tokens.first[1]
+ while [:on_sp, :on_tstring_beg, :on_ignored_nl].include? remaining_tokens.first[1]
remaining_tokens.shift
token_before_version += 1
end
if remaining_tokens.first[1] == :on_tstring_content
self.version_index = token_before_version + 1