quiet_assets 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -11,7 +11,7 @@ Support Ruby on Rails ~> 3.1
11
11
 
12
12
  Add this line to your application's Gemfile:
13
13
 
14
- gem 'quiet_assets'
14
+ gem 'quiet_assets', :group => :development
15
15
 
16
16
  And then execute:
17
17
 
@@ -21,7 +21,7 @@ And then execute:
21
21
 
22
22
  Nothing to do, but if you want to temporarily turn on back assets' log just write:
23
23
 
24
- config.quite_assets = true
24
+ config.quiet_assets = false
25
25
 
26
26
  ## License
27
27
 
@@ -30,4 +30,4 @@ Dual licensed under the MIT and GPL licenses:
30
30
  + http://www.opensource.org/licenses/mit-license.php
31
31
  + http://www.gnu.org/licenses/gpl.html
32
32
 
33
- Copyright © 2011-2012 Dmitry [KODerFunk](https://github.com/KODerFunk) Karpunun, Dmitry [route](https://github.com/route) Vorotilin / [Evrone.com](http://evrone.com)
33
+ Copyright © 2011-2012 Dmitry [@KODerFunk](https://github.com/KODerFunk) Karpunun, Dmitry [@route](https://github.com/route) Vorotilin / [Evrone.com](http://evrone.com)
@@ -8,7 +8,7 @@ module QuietAssets
8
8
  initializer "quiet_assets", :after => "sprockets.environment" do |app|
9
9
  if app.config.quiet_assets == true
10
10
  # Parse PATH_INFO by assets prefix
11
- ASSETS_PREFIX = app.config.assets.prefix.split("/").join("/") + "/"
11
+ ASSETS_PREFIX = "/#{app.config.assets.prefix[/\A\/?(.*?)\/?\z/, 1]}/"
12
12
  app.config.assets.logger = false
13
13
 
14
14
  # Just create an alias for call in middleware
@@ -16,7 +16,7 @@ module QuietAssets
16
16
  def call_with_quiet_assets(env)
17
17
  old_logger_level, level = Rails.logger.level, Logger::ERROR
18
18
  # Increase log level because of messages that have a low level should not be displayed
19
- Rails.logger.level = level if env['PATH_INFO'].index(ASSETS_PREFIX) == 0
19
+ Rails.logger.level = level if env['PATH_INFO'].start_with?(ASSETS_PREFIX)
20
20
  call_without_quiet_assets(env)
21
21
  ensure
22
22
  # Return back
@@ -1,3 +1,3 @@
1
1
  module QuietAssets
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -6,11 +6,11 @@ Gem::Specification.new do |gem|
6
6
  gem.authors = ["Dmitry Karpunin", "Dmitry Vorotilin"]
7
7
  gem.email = ["koderfunk@gmail.com", "d.vorotilin@gmail.com"]
8
8
  gem.homepage = "http://github.com/evrone/quiet_assets"
9
- gem.description = "Quiet assets turn off rails assests log."
10
- gem.summary = "Turn off rails assests log."
9
+ gem.description = "Quiet assets turn off rails assets log."
10
+ gem.summary = "Turn off rails assets log."
11
11
 
12
12
  gem.files = `git ls-files`.split("\n")
13
13
  gem.require_paths = ["lib"]
14
14
 
15
- gem.add_dependency "rails", "~> 3.1"
15
+ gem.add_dependency "railties", "~> 3.1"
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quiet_assets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,11 +10,11 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-03-22 00:00:00.000000000 Z
13
+ date: 2012-04-29 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: rails
17
- requirement: &16627800 !ruby/object:Gem::Requirement
16
+ name: railties
17
+ requirement: &70102008180960 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,8 +22,8 @@ dependencies:
22
22
  version: '3.1'
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *16627800
26
- description: Quiet assets turn off rails assests log.
25
+ version_requirements: *70102008180960
26
+ description: Quiet assets turn off rails assets log.
27
27
  email:
28
28
  - koderfunk@gmail.com
29
29
  - d.vorotilin@gmail.com
@@ -59,8 +59,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  requirements: []
61
61
  rubyforge_project:
62
- rubygems_version: 1.8.10
62
+ rubygems_version: 1.8.15
63
63
  signing_key:
64
64
  specification_version: 3
65
- summary: Turn off rails assests log.
65
+ summary: Turn off rails assets log.
66
66
  test_files: []