quiet_assets not quiet assets with thin 2.0.0.pre version in rails 3.2.13
ruby -v ruby 1.9.3p194
rails 3.2.13 thin 2.0.0.pre quiet_assets 1.0.2
I start rails with command bundle exec thin -p 3000, and all assets request log still output in console.
Hi @qichunren Does it work for you with 1.5 thin and problem only with 2.0?
Yes
Similar issue here, on ruby 2 but with the standard rails server.
@darioshanghai as you can see from travis-ci it works for 2.0 so I need additional info, please open a new issue.
@qichunren since this issue for thin version pre it's in a low priority so go ahead to fix it or I'll take a look when I find time.
Same issue here:
ruby 2.0.0p195
Rails 3.2.1
unicorn v4.6.2
quiet_assets (1.0.2)
+1
+1
+1 using unicorn ignored quiet_assets
Not quiet for me either -- did a bin/spring stop to rule that out -- I am using Pow as my server, rails 4.0.2, ruby 2.1.0
EDIT: nevermind it works, after i posted i realized that spring has nothing to do with pow and i am supposed to restart with touch tmp/restart.txt -- thanks for keeping this gem up to scratch!
Note working for me either with ruby 1.9.3p327, rails 3.2.12, and WEBrick.
EDIT: Just tried using thin with same ruby and rails versions and still seeing assets output in the logs.
In order to remove the "GET ... {.js,.png,.css}" logs, I made this patch:
if !ENV['DISABLE_ASSET_FILTERING'] && (Rails.env.development? || Rails.env.test?)
module Rack
class CommonLogger
FILTER_REGEXPS = [/\.css/, /\.js/, /\.png/, /\.jpg/, /\.gif/, /.ico/]
def call_with_silencer(env)
if FILTER_REGEXPS.any? { |re| re.match env['PATH_INFO'] }
@app.call env
else
call_without_silencer(env)
end
end
alias_method_chain :call, :silencer
end
end
end
I can issue a PR if you'd like.
No working here either:
ruby 2.0.0-p576
rails 4.0.11