evrone/quiet_assets

Name: quiet_assets

Owner: Evrone

Description: Mutes assets pipeline log messages.

Created: 2012-02-13 09:31:20.0

Updated: 2018-01-18 20:11:49.0

Pushed: 2018-01-18 20:19:34.0

Homepage: http://Evrone.com

Size: 55

Language: Ruby

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Quiet Assets

Continuous Integration status

Deprecation

As of sprockets-rails version 3.1.0, used in current versions of rails, this gem is deprecated.

The asset pipeline now supports a quiet option which suppresses output of asset requests:

nfig/environments/development.rb

ig.assets.quiet = true

Relevant PR: https://github.com/rails/sprockets-rails/pull/355

Info

Quiet Assets turns off the Rails asset pipeline log. This means that it suppresses messages in your development log such as:

Started GET "/assets/application.js" for 127.0.0.1 at 2015-01-28 13:35:34 +0300
Served asset /application.js - 304 Not Modified (8ms)

Support Ruby on Rails >= 3.1

Installation

It is recommended that this gem only be used for development. To install, add this line to development group in your Gemfile:

gem 'quiet_assets', group: :development

Then, from the command line, run:

$ bundle
Usage

Simply installing Quiet Assets will suppress the log messages automatically. However, if you wish to temporarily re-enable the logging of the asset pipeline messages, place the following in your config/application.rb file:

config.quiet_assets = false

If you need to supress output for other paths you can do so by specifying:

config.quiet_assets_paths << '/silent/'
License

Dual licensed under the MIT or GPL licenses:

Copyright © 2011-2015 Dmitry @KODerFunk Karpunun, Dmitry @route Vorotilin / Evrone.com


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.