-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Make puma log silence completely #2011
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ namespace :generate do | |
|
||
# Rails 4 cannot use a `rails` binstub generated by Bundler | ||
sh "rm -f #{bindir}/rails" | ||
sh "bundle exec rails new ./tmp/example_app --no-rc --skip-javascript --skip-sprockets --skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb" | ||
sh "bundle exec rails new ./tmp/example_app --no-rc --skip-javascript --skip-git --skip-test-unit --skip-listen --skip-bundle --template=example_app_generator/generate_app.rb" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you explain why you changed this? This has a cost. It seems that sprockets adds sass gem. On Ruby 1.9.3 it adds deprecation warning and breaks the CI
I revert this line and test on Ruby 1.9.3 without issue. I didn't test on all rails version. But maybe it doesn't need to be committed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep I'd like this reverted too |
||
|
||
in_example_app do | ||
sh "./travis_retry_bundle_install.sh 2>&1" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,6 +46,10 @@ def app | |
end | ||
|
||
included do |other| | ||
ActiveSupport.on_load(:action_dispatch_system_test_case) do | ||
ActionDispatch::SystemTesting::Server.silence_puma = true | ||
end | ||
|
||
begin | ||
require 'capybara' | ||
require 'action_dispatch/system_test_case' | ||
|
@@ -71,7 +75,7 @@ def app | |
|
||
attr_reader :driver | ||
|
||
if ActionDispatch::SystemTesting::Server.respond_to?(:silence_puma=) | ||
if ::Rails.version.to_f == 5.1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you explain why? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The first implementation is lack of considering of compatibility. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It was literally checking the method exists, then using it, can you explain the "lack of compatibility" I'm afraid I don't understand how "not calling the method if it doesn't exist" changes anything... Also note this need to work on 5.2 and beyond, so this check seems incorrect. |
||
ActionDispatch::SystemTesting::Server.silence_puma = true | ||
end | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.