yell 2.0.2 → 2.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7b70f8effdce842ad8a57fbd456a432025c71a1
4
- data.tar.gz: e78f0df9db28a717dbb4a0c6701c7eb1031f129a
3
+ metadata.gz: bfb4c65dce220571e518785fda5a602ab098cbd3
4
+ data.tar.gz: 5da3e3480b58eff595348886c48cdc009a06e261
5
5
  SHA512:
6
- metadata.gz: b6b2c1e0fad20327df5f186613535361503a3033d020a352475b436db09b8221c42cf55200d19220d03df73edec99b08b5e17b8d8020e36a4e6fbf0077fd23ad
7
- data.tar.gz: 46f8524bdd8506bf2a59adac72f755266a3020b61c55c53c0642523825973ff53eea374be6fdd20188ff1d526e4eeedf2f8a093ffda8076e7eceeb9bdce44468
6
+ metadata.gz: 9ad91352c0d8d5a0dd42407686cd2c5207bf8e60ffedd4bb24ed8187a91c590163b85ee75a964da2aa63a1f59a379afa2c769c8375e83dedf2fef7224b514203
7
+ data.tar.gz: 7de9c84cb808372aa7e0b0e0d5b86bb4cb19c4d92777c6872f1493b3a4ffd12aaf206be01e5b194121f2add5e70a8b64060e0d486a121316fc87cb14d71ae8d1
@@ -6,10 +6,9 @@ rvm:
6
6
  - 1.8.7
7
7
  - 1.9.3
8
8
  - 2.0.0
9
- - jruby-18mode
10
- - jruby-19mode
11
- - rbx-18mode
12
- - rbx-19mode
9
+ - 2.1.0
10
+ - jruby
11
+ - rbx
13
12
  - ree
14
13
 
15
14
  notifications:
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
- gem 'timecop'
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
 
@@ -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?
@@ -1,7 +1,7 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Yell #:nodoc:
4
- VERSION = "2.0.2"
4
+ VERSION = "2.0.3"
5
5
 
6
6
  end
7
7
 
@@ -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: (!defined?(ActiveSupport) || ActiveSupport::VERSION::MAJOR < 4) do
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.2
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-08 00:00:00.000000000 Z
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.0.6
103
+ rubygems_version: 2.2.1
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Yell - Your Extensible Logging Library