rails-clean-logs 1.0 → 1.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ ## v1.1
2
+
3
+ * Supports windows
4
+
5
+
1
6
  ## v1.0
2
7
 
3
8
  * Initial release
@@ -5,7 +5,8 @@ module RailsCleanLogs
5
5
  class DisableAssetsLogger
6
6
  def initialize(app)
7
7
  @app = app
8
- Rails.application.assets.logger = Logger.new('/dev/null')
8
+ Rails.application.assets.logger =
9
+ Logger.new(RUBY_PLATFORM.downcase =~ /mswin(?!ce)|mingw|cygwin|bccwin/ ? 'NUL' : '/dev/null')
9
10
  end
10
11
 
11
12
  def call(env)
@@ -1,3 +1,3 @@
1
1
  module RailsCleanLogs
2
- VERSION = "1.0"
2
+ VERSION = "1.1"
3
3
  end
@@ -6,7 +6,7 @@ Gem::Specification.new do |gem|
6
6
  gem.email = ["luke.clemente@gmail.com"]
7
7
  gem.description = %q{Cleans up rails logs by removing assets.}
8
8
  gem.summary = %q{Rails log cleaner}
9
- gem.homepage = ""
9
+ gem.homepage = "https://github.com/lucas-clemente/rails-clean-logs"
10
10
 
11
11
  gem.files = `git ls-files`.split($\)
12
12
  gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-clean-logs
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.0'
4
+ version: '1.1'
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-07-02 00:00:00.000000000 Z
12
+ date: 2012-10-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Cleans up rails logs by removing assets.
15
15
  email:
@@ -27,7 +27,7 @@ files:
27
27
  - lib/rails-clean-logs.rb
28
28
  - lib/rails-clean-logs/version.rb
29
29
  - rails-clean-logs.gemspec
30
- homepage: ''
30
+ homepage: https://github.com/lucas-clemente/rails-clean-logs
31
31
  licenses: []
32
32
  post_install_message:
33
33
  rdoc_options: []