yell 2.0.4 → 2.0.5
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 +5 -3
- data/Gemfile +4 -3
- data/LICENSE.txt +1 -1
- data/README.md +1 -1
- data/Rakefile +1 -3
- data/lib/yell.rb +1 -1
- data/lib/yell/event.rb +1 -2
- data/lib/yell/logger.rb +4 -2
- data/lib/yell/version.rb +1 -1
- data/spec/spec_helper.rb +5 -1
- data/yell.gemspec +17 -16
- metadata +8 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4ff22c92517f18817d0a13c8a2c81b0123925fa
|
4
|
+
data.tar.gz: 06512783ecf5ec68eb5a2b08f5fbd3ac5b9a1560
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0545a4db4c21ed38d5ff6dfbd44912c940a1c6c7557de1a94f3a32b74784dd9928bd672b68a62ce857cae39ff32eb9d62c522c382ffaa8b31cf339775a1621ac
|
7
|
+
data.tar.gz: 95b8fe1789110ea95b00599efb056026131fa038410c033f4f88be40d519dc4b96b1215d3e3b030103a0c62c03060b83ffcba7a06d85b12eafdc632ce0a0302e
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -6,10 +6,9 @@ gemspec
|
|
6
6
|
group :development, :test do
|
7
7
|
gem "rake"
|
8
8
|
|
9
|
-
gem 'rspec-core', '
|
10
|
-
gem 'rspec-expectations', '
|
9
|
+
gem 'rspec-core', '~> 2'
|
10
|
+
gem 'rspec-expectations', '~> 2'
|
11
11
|
gem "rr"
|
12
|
-
gem 'pry'
|
13
12
|
|
14
13
|
if RUBY_VERSION < "1.9"
|
15
14
|
gem 'timecop', '0.6.0'
|
@@ -17,6 +16,8 @@ group :development, :test do
|
|
17
16
|
else
|
18
17
|
gem 'timecop'
|
19
18
|
gem 'activesupport'
|
19
|
+
|
20
|
+
gem 'pry'
|
20
21
|
end
|
21
22
|
|
22
23
|
gem 'simplecov', :require => false, :platform => :ruby_20
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -215,5 +215,5 @@ You can find further examples and additional adapters in the [wiki](https://gith
|
|
215
215
|
or have a look into the examples folder.
|
216
216
|
|
217
217
|
|
218
|
-
Copyright © 2011-
|
218
|
+
Copyright © 2011-2014 Rudolf Schmidt, released under the MIT license
|
219
219
|
|
data/Rakefile
CHANGED
data/lib/yell.rb
CHANGED
data/lib/yell/event.rb
CHANGED
@@ -49,14 +49,13 @@ module Yell #:nodoc:
|
|
49
49
|
attr_reader :name
|
50
50
|
|
51
51
|
|
52
|
-
def initialize( logger, options, *messages
|
52
|
+
def initialize( logger, options, *messages)
|
53
53
|
@time = Time.now
|
54
54
|
@name = logger.name
|
55
55
|
|
56
56
|
extract!(options)
|
57
57
|
|
58
58
|
@messages = messages
|
59
|
-
@messages << block.call unless block.nil?
|
60
59
|
|
61
60
|
@caller = logger.trace.at?(level) ? caller[caller_index].to_s : ''
|
62
61
|
@file = nil
|
data/lib/yell/logger.rb
CHANGED
@@ -6,7 +6,7 @@ module Yell #:nodoc:
|
|
6
6
|
|
7
7
|
# The +Yell::Logger+ is your entrypoint. Anything onwards is derived from here.
|
8
8
|
#
|
9
|
-
# A +Yell::Logger+ instance holds all your adapters and sends the log events
|
9
|
+
# A +Yell::Logger+ instance holds all your adapters and sends the log events
|
10
10
|
# to them if applicable. There are multiple ways of how to create a new logger.
|
11
11
|
class Logger
|
12
12
|
include Yell::Helpers::Base
|
@@ -90,10 +90,12 @@ module Yell #:nodoc:
|
|
90
90
|
def add( options, *messages, &block )
|
91
91
|
return false unless level.at?(options)
|
92
92
|
|
93
|
+
messages = messages
|
94
|
+
messages << block.call unless block.nil?
|
93
95
|
messages = silencer.call(*messages)
|
94
96
|
return false if messages.empty?
|
95
97
|
|
96
|
-
event = Yell::Event.new(self, options, *messages
|
98
|
+
event = Yell::Event.new(self, options, *messages)
|
97
99
|
write(event)
|
98
100
|
end
|
99
101
|
|
data/lib/yell/version.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
data/yell.gemspec
CHANGED
@@ -1,22 +1,23 @@
|
|
1
|
-
#
|
2
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'yell/version'
|
3
5
|
|
4
|
-
Gem::Specification.new do |
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "yell"
|
8
|
+
spec.version = Yell::VERSION
|
9
|
+
spec.authors = ["Rudolf Schmidt"]
|
10
|
+
spec.license = 'MIT'
|
9
11
|
|
10
|
-
|
11
|
-
|
12
|
-
|
12
|
+
spec.homepage = "http://rudionrailspec.github.com/yell"
|
13
|
+
spec.summary = %q{Yell - Your Extensible Logging Library}
|
14
|
+
spec.description = %q{Yell - Your Extensible Logging Library. Define multiple adapters, various log level combinations or message formatting options like you've never done before}
|
13
15
|
|
14
|
-
|
16
|
+
spec.rubyforge_project = "yell"
|
15
17
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
s.require_paths = ["lib"]
|
18
|
+
spec.files = `git ls-files -z`.split("\x0")
|
19
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
|
+
spec.require_paths = ["lib"]
|
21
22
|
end
|
22
23
|
|
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.5
|
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-
|
11
|
+
date: 2014-10-14 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
|
@@ -17,8 +17,8 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- .gitignore
|
21
|
-
- .travis.yml
|
20
|
+
- ".gitignore"
|
21
|
+
- ".travis.yml"
|
22
22
|
- Gemfile
|
23
23
|
- LICENSE.txt
|
24
24
|
- README.md
|
@@ -81,7 +81,7 @@ files:
|
|
81
81
|
- spec/yell/silencer_spec.rb
|
82
82
|
- spec/yell_spec.rb
|
83
83
|
- yell.gemspec
|
84
|
-
homepage: http://
|
84
|
+
homepage: http://rudionrailspec.github.com/yell
|
85
85
|
licenses:
|
86
86
|
- MIT
|
87
87
|
metadata: {}
|
@@ -91,17 +91,17 @@ require_paths:
|
|
91
91
|
- lib
|
92
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- -
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
|
-
- -
|
99
|
+
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: '0'
|
102
102
|
requirements: []
|
103
103
|
rubyforge_project: yell
|
104
|
-
rubygems_version: 2.2.
|
104
|
+
rubygems_version: 2.2.2
|
105
105
|
signing_key:
|
106
106
|
specification_version: 4
|
107
107
|
summary: Yell - Your Extensible Logging Library
|
@@ -128,4 +128,3 @@ test_files:
|
|
128
128
|
- spec/yell/repository_spec.rb
|
129
129
|
- spec/yell/silencer_spec.rb
|
130
130
|
- spec/yell_spec.rb
|
131
|
-
has_rdoc:
|