yell 2.0.2 → 2.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +3 -4
- data/Gemfile +8 -3
- data/README.md +3 -0
- data/lib/yell/adapters/datefile.rb +1 -1
- data/lib/yell/logger.rb +2 -2
- data/lib/yell/version.rb +1 -1
- data/spec/compatibility/activesupport_logger_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bfb4c65dce220571e518785fda5a602ab098cbd3
|
4
|
+
data.tar.gz: 5da3e3480b58eff595348886c48cdc009a06e261
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ad91352c0d8d5a0dd42407686cd2c5207bf8e60ffedd4bb24ed8187a91c590163b85ee75a964da2aa63a1f59a379afa2c769c8375e83dedf2fef7224b514203
|
7
|
+
data.tar.gz: 7de9c84cb808372aa7e0b0e0d5b86bb4cb19c4d92777c6872f1493b3a4ffd12aaf206be01e5b194121f2add5e70a8b64060e0d486a121316fc87cb14d71ae8d1
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -10,11 +10,16 @@ group :development, :test do
|
|
10
10
|
gem 'rspec-expectations'
|
11
11
|
gem "rr"
|
12
12
|
gem 'pry'
|
13
|
-
|
13
|
+
|
14
|
+
if RUBY_VERSION < "1.9"
|
15
|
+
gem 'timecop', '0.6.0'
|
16
|
+
gem 'activesupport', '~> 3'
|
17
|
+
else
|
18
|
+
gem 'timecop'
|
19
|
+
gem 'activesupport'
|
20
|
+
end
|
14
21
|
|
15
22
|
gem 'simplecov', :require => false, :platform => :ruby_20
|
16
23
|
gem 'coveralls', :require => false, :platform => :ruby_20
|
17
|
-
|
18
|
-
gem 'activesupport', '~> 4'
|
19
24
|
end
|
20
25
|
|
data/README.md
CHANGED
@@ -189,6 +189,8 @@ logger.debug 'Started GET "/assets/logo.png" for 127.0.0.1 at 2013-06-20 10:18:3
|
|
189
189
|
logger.debug 'Served asset /logo.png - 304 Not Modified (0ms)'
|
190
190
|
```
|
191
191
|
|
192
|
+
### Alter log messages with modifiers
|
193
|
+
|
192
194
|
|
193
195
|
## Further Readings
|
194
196
|
|
@@ -202,6 +204,7 @@ logger.debug 'Served asset /logo.png - 304 Not Modified (0ms)'
|
|
202
204
|
### Additional Adapters
|
203
205
|
[Syslog](https://github.com/rudionrails/yell/wiki/additional-adapters-syslog)
|
204
206
|
[Graylog2 (GELF)](https://github.com/rudionrails/yell/wiki/additional-adapters-gelf)
|
207
|
+
[Fluentd](https://github.com/red5studios/yell-adapters-fluentd)
|
205
208
|
|
206
209
|
|
207
210
|
### Development
|
@@ -140,7 +140,7 @@ module Yell #:nodoc:
|
|
140
140
|
# do nothing, because symlink is already correct
|
141
141
|
return if ::File.symlink?(@original_filename) && ::File.readlink(@original_filename) == @filename
|
142
142
|
|
143
|
-
::File.unlink(@original_filename) if ::File.exist?(@original_filename)
|
143
|
+
::File.unlink(@original_filename) if ::File.exist?(@original_filename) || ::File.symlink?(@original_filename)
|
144
144
|
::File.symlink(@filename, @original_filename)
|
145
145
|
end
|
146
146
|
|
data/lib/yell/logger.rb
CHANGED
@@ -59,10 +59,10 @@ module Yell #:nodoc:
|
|
59
59
|
self.trace = Yell.__fetch__(@options, :trace, :default => :error)
|
60
60
|
|
61
61
|
# silencer
|
62
|
-
self.silence(*Yell.__fetch__(@options, :silence))
|
62
|
+
self.silence(*Yell.__fetch__(@options, :silence, :default => []))
|
63
63
|
|
64
64
|
# adapters may be passed in the options
|
65
|
-
extract!(*Yell.__fetch__(@options, :adapters))
|
65
|
+
extract!(*Yell.__fetch__(@options, :adapters, :default => []))
|
66
66
|
|
67
67
|
# extract adapter
|
68
68
|
self.adapter(args.pop) if args.any?
|
data/lib/yell/version.rb
CHANGED
@@ -10,7 +10,7 @@ end
|
|
10
10
|
#
|
11
11
|
# We simulate the case when Rails 4 starts up its server
|
12
12
|
# and wants to append the log output.
|
13
|
-
describe "Compatibility to ActiveSupport::Logger", pending
|
13
|
+
describe "Compatibility to ActiveSupport::Logger", :pending => (!defined?(ActiveSupport) || ActiveSupport::VERSION::MAJOR < 4) do
|
14
14
|
|
15
15
|
let!(:yell) { Yell.new($stdout, :format => "%m") }
|
16
16
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yell
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rudolf Schmidt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01
|
11
|
+
date: 2014-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Yell - Your Extensible Logging Library. Define multiple adapters, various
|
14
14
|
log level combinations or message formatting options like you've never done before
|
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
100
100
|
version: '0'
|
101
101
|
requirements: []
|
102
102
|
rubyforge_project: yell
|
103
|
-
rubygems_version: 2.
|
103
|
+
rubygems_version: 2.2.1
|
104
104
|
signing_key:
|
105
105
|
specification_version: 4
|
106
106
|
summary: Yell - Your Extensible Logging Library
|