lograge-tagged 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -3
- data/CHANGELOG.md +6 -0
- data/LICENSE.txt +1 -1
- data/lib/lograge_tagged.rb +4 -1
- data/lib/lograge_tagged/version.rb +1 -1
- data/lograge-tagged.gemspec +3 -2
- metadata +16 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76a10137a21bc714c0093bdd0399305f6cb879ec
|
4
|
+
data.tar.gz: c37e0922e65aabac2de882b3dff892448ef2fbd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5167c2b26ec33ee6c299894f932322430dd36a470fb3a073abb16b060c7ad225eadf07bd175b657449e467ab9a86b824f448ba5831137edd07e59a1dbc7abc4b
|
7
|
+
data.tar.gz: 2d7aaf6ac69daa102c1ca6efa99cc7033d13a1fcfae7380f74999e31b3ac693fd30bbcea7f03d608fd48b6e7987546c3063389b065de2dcba6feb135e0a239c3
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/LICENSE.txt
CHANGED
data/lib/lograge_tagged.rb
CHANGED
@@ -3,8 +3,11 @@ require 'lograge_tagged/version'
|
|
3
3
|
|
4
4
|
module LogrageTagged
|
5
5
|
class TaggedKeyValueFormatter < Lograge::Formatters::KeyValue
|
6
|
+
def initialize(tag = "request.app")
|
7
|
+
@tag = tag
|
8
|
+
end
|
6
9
|
def call(data)
|
7
|
-
"[
|
10
|
+
"[#{@tag}] #{super}"
|
8
11
|
end
|
9
12
|
end
|
10
13
|
|
data/lograge-tagged.gemspec
CHANGED
@@ -10,13 +10,14 @@ Gem::Specification.new do |gem|
|
|
10
10
|
gem.email = ["weppos@weppos.net"]
|
11
11
|
gem.summary = %q{A tagged LogSubscriber for Lograge}
|
12
12
|
gem.description = %q{A tagged LogSubscriber for Lograge.}
|
13
|
-
gem.homepage = "https://github.com/
|
13
|
+
gem.homepage = "https://github.com/dnsimple/lograge-tagged"
|
14
|
+
gem.license = "MIT"
|
14
15
|
|
15
16
|
gem.files = `git ls-files`.split($/)
|
16
17
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
18
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
19
|
gem.require_paths = ["lib"]
|
19
20
|
|
20
|
-
gem.add_runtime_dependency "lograge", "
|
21
|
+
gem.add_runtime_dependency "lograge", ">= 0.2.2"
|
21
22
|
gem.add_development_dependency "rspec"
|
22
23
|
end
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lograge-tagged
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simone Carletti
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lograge
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.2.2
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.2.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: A tagged LogSubscriber for Lograge.
|
@@ -45,10 +45,10 @@ executables: []
|
|
45
45
|
extensions: []
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
|
-
- .gitignore
|
49
|
-
- .rspec
|
50
|
-
- .ruby-gemset
|
51
|
-
- .travis.yml
|
48
|
+
- ".gitignore"
|
49
|
+
- ".rspec"
|
50
|
+
- ".ruby-gemset"
|
51
|
+
- ".travis.yml"
|
52
52
|
- CHANGELOG.md
|
53
53
|
- Gemfile
|
54
54
|
- LICENSE.txt
|
@@ -60,8 +60,9 @@ files:
|
|
60
60
|
- lograge-tagged.gemspec
|
61
61
|
- spec/lograge_tagged_spec.rb
|
62
62
|
- spec/spec_helper.rb
|
63
|
-
homepage: https://github.com/
|
64
|
-
licenses:
|
63
|
+
homepage: https://github.com/dnsimple/lograge-tagged
|
64
|
+
licenses:
|
65
|
+
- MIT
|
65
66
|
metadata: {}
|
66
67
|
post_install_message:
|
67
68
|
rdoc_options: []
|
@@ -69,17 +70,17 @@ require_paths:
|
|
69
70
|
- lib
|
70
71
|
required_ruby_version: !ruby/object:Gem::Requirement
|
71
72
|
requirements:
|
72
|
-
- -
|
73
|
+
- - ">="
|
73
74
|
- !ruby/object:Gem::Version
|
74
75
|
version: '0'
|
75
76
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
77
|
requirements:
|
77
|
-
- -
|
78
|
+
- - ">="
|
78
79
|
- !ruby/object:Gem::Version
|
79
80
|
version: '0'
|
80
81
|
requirements: []
|
81
82
|
rubyforge_project:
|
82
|
-
rubygems_version: 2.1
|
83
|
+
rubygems_version: 2.5.1
|
83
84
|
signing_key:
|
84
85
|
specification_version: 4
|
85
86
|
summary: A tagged LogSubscriber for Lograge
|