-
-
Notifications
You must be signed in to change notification settings - Fork 102
Conversation
53405e6
to
c1ef271
Compare
4131233
to
79fe672
Compare
/cc @rspec/owners this fixes the build issues with appveyor, feedback welcome |
l =~ %r{bundler/(source/)?rubygems} || | ||
# Ignore bundler + rubygems warning. | ||
l =~ %r{site_ruby/\d\.\d\.\d/rubygems} || | ||
l =~ %r{lib/bundler/rubygems} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the l =~ %r{bundler/(source/)?rubygems}
line will match anything this regex was match -- so do we really need it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure why the first regex doesn't work, but it doesn't :/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's an example of a string that matches this but not the first?
Sent from my iPhone
On May 25, 2016, at 6:02 PM, Jon Rowe [email protected] wrote:
In lib/rspec/support/spec/library_wide_checks.rb:
@@ -68,8 +68,13 @@ def load_all_files(files, preamble, postamble=nil)
run_ruby_with_current_load_path(command, *options)
end
Ignore bundler warning.
- stderr = stderr.split("\n").reject { |l| l =~ %r{bundler/source/rubygems} }.join("\n")
- stderr = stderr.split("\n").reject do |l|
# Ignore bundler warning.
l =~ %r{bundler/(source/)?rubygems} ||
# Ignore bundler + rubygems warning.
l =~ %r{site_ruby/\d.\d.\d/rubygems} ||
I'm not sure why the first regex doesn't work, but it doesn't :/l =~ %r{lib/bundler/rubygems}
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly or view it on GitHub
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lib/bundler/rubygems
I only added it because the regex wasn't catching that on windows
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rubular reports that that matches:
http://rubular.com/r/T5HRERvB54
Do regexes work differently when MRI is compiled on windows?
Anyhow, can you add a comment explaining why this extra regex is needed even though it looks like it shouldn't be?
79fe672
to
b8e5016
Compare
Updated. |
LGTM, merge when green. |
Currently windows builds get broken by a bundler warning