1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Skip comment and empty lines in gems/bundled_gems file

This commit is contained in:
Nobuyoshi Nakada 2020-07-05 18:59:06 +09:00
parent 41168f69fb
commit 358f91bf6f
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6
5 changed files with 9 additions and 2 deletions

View file

@ -9,6 +9,7 @@ gem_dir = File.realpath('../../gems', __FILE__)
exit_code = 0
ruby = ENV['RUBY'] || RbConfig.ruby
File.foreach("#{gem_dir}/bundled_gems") do |line|
next if /^\s*(?:#|$)/ =~ line
gem = line.split.first
puts "\nTesting the #{gem} gem"