fluent_logger_rails 0.5.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +3 -3
- data/CHANGELOG.md +29 -0
- data/Gemfile.lock +7 -9
- data/fluent_logger_rails.gemspec +2 -2
- data/lib/fluent_logger_rails/tagged_hash_formatter.rb +5 -3
- data/lib/fluent_logger_rails/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 624c3e8a4581cf1d1ec94f174b28e738eecace7ad0eab3a7ed7fbe3b70954346
|
4
|
+
data.tar.gz: d9ab5129b1f4b3261227bb544df3706c15e50c1f6bb34da9a0656fab9eee67d8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7c30245f458a0a4447367dea5dfd9d79c9deb9af676adc4e733217914a2ea4deebd68be182be01582481ffdb81a699d5eaeb2a696850e7f3604643a284c469b
|
7
|
+
data.tar.gz: 88bf00795a54baf30cbba7f84479e16211a6d26c6cdb632adf16120d19568df7bcd65265854304c8a6955e08a4d80ef50c11ad728343cd97cfc67acefc4fd1d3
|
data/.github/workflows/ruby.yml
CHANGED
@@ -9,9 +9,9 @@ name: Ruby
|
|
9
9
|
|
10
10
|
on:
|
11
11
|
push:
|
12
|
-
branches: [
|
12
|
+
branches: [ main ]
|
13
13
|
pull_request:
|
14
|
-
branches: [
|
14
|
+
branches: [ main ]
|
15
15
|
|
16
16
|
jobs:
|
17
17
|
test:
|
@@ -21,7 +21,7 @@ jobs:
|
|
21
21
|
- name: Set up Ruby
|
22
22
|
uses: ruby/setup-ruby@v1
|
23
23
|
with:
|
24
|
-
ruby-version: 2.
|
24
|
+
ruby-version: 2.7
|
25
25
|
- name: Install dependencies
|
26
26
|
run: bundle install
|
27
27
|
- name: Run tests
|
data/CHANGELOG.md
CHANGED
@@ -11,6 +11,35 @@ Enhancements:
|
|
11
11
|
* None
|
12
12
|
|
13
13
|
Deprecations:
|
14
|
+
|
15
|
+
* None
|
16
|
+
|
17
|
+
## v0.7.0
|
18
|
+
|
19
|
+
Bug Fixes:
|
20
|
+
|
21
|
+
* Formatter is now more defensive about incoming nil and array-of-nil values, after changes with Rails 7.x Rack::Logger identified the gap
|
22
|
+
|
23
|
+
Enhancements:
|
24
|
+
|
25
|
+
* None
|
26
|
+
|
27
|
+
Deprecations:
|
28
|
+
|
29
|
+
* None
|
30
|
+
|
31
|
+
## v0.6.0
|
32
|
+
|
33
|
+
Bug Fixes:
|
34
|
+
|
35
|
+
* None
|
36
|
+
|
37
|
+
Enhancements:
|
38
|
+
|
39
|
+
* Rails 7 support
|
40
|
+
|
41
|
+
Deprecations:
|
42
|
+
|
14
43
|
* None
|
15
44
|
|
16
45
|
## v.0.5.0
|
data/Gemfile.lock
CHANGED
@@ -1,25 +1,24 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
fluent_logger_rails (0.
|
5
|
-
activesupport (>= 5.0, <
|
4
|
+
fluent_logger_rails (0.7.0)
|
5
|
+
activesupport (>= 5.0, < 8)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (
|
10
|
+
activesupport (7.0.4.3)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
12
|
i18n (>= 1.6, < 2)
|
13
13
|
minitest (>= 5.1)
|
14
14
|
tzinfo (~> 2.0)
|
15
|
-
zeitwerk (~> 2.3)
|
16
15
|
coderay (1.1.3)
|
17
|
-
concurrent-ruby (1.
|
16
|
+
concurrent-ruby (1.2.2)
|
18
17
|
diff-lcs (1.4.4)
|
19
|
-
i18n (1.
|
18
|
+
i18n (1.12.0)
|
20
19
|
concurrent-ruby (~> 1.0)
|
21
20
|
method_source (1.0.0)
|
22
|
-
minitest (5.
|
21
|
+
minitest (5.18.0)
|
23
22
|
pry (0.13.1)
|
24
23
|
coderay (~> 1.1)
|
25
24
|
method_source (~> 1.0)
|
@@ -37,9 +36,8 @@ GEM
|
|
37
36
|
rspec-support (~> 3.9.0)
|
38
37
|
rspec-support (3.9.3)
|
39
38
|
timecop (0.9.1)
|
40
|
-
tzinfo (2.0.
|
39
|
+
tzinfo (2.0.6)
|
41
40
|
concurrent-ruby (~> 1.0)
|
42
|
-
zeitwerk (2.4.2)
|
43
41
|
|
44
42
|
PLATFORMS
|
45
43
|
ruby
|
data/fluent_logger_rails.gemspec
CHANGED
@@ -11,13 +11,13 @@ Gem::Specification.new do |spec|
|
|
11
11
|
"[Rails tagged logging](https://api.rubyonrails.org/classes/ActiveSupport/TaggedLogging.html) for JSON format "\
|
12
12
|
"that can be sent to Fluentd (or really any other logging backend)."
|
13
13
|
spec.authors = ["HackerOne Open Source", "Ben Willis"]
|
14
|
-
spec.email = ["opensource+fluent_logger_rails@hackerone.com", "ben@
|
14
|
+
spec.email = ["opensource+fluent_logger_rails@hackerone.com", "ben@hackerone.com"]
|
15
15
|
spec.homepage = "https://github.com/Hacker0x01/fluent_logger_rails"
|
16
16
|
|
17
17
|
spec.license = "MIT"
|
18
18
|
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
19
19
|
|
20
|
-
spec.add_dependency('activesupport', '>= 5.0', '<
|
20
|
+
spec.add_dependency('activesupport', '>= 5.0', '< 8')
|
21
21
|
|
22
22
|
spec.add_development_dependency 'rspec', '~> 3.6'
|
23
23
|
spec.add_development_dependency 'timecop'
|
@@ -43,10 +43,12 @@ module FluentLoggerRails
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def tagged(*tags)
|
46
|
-
|
47
|
-
|
46
|
+
tags = tags.flatten.compact if tags.is_a?(Array)
|
47
|
+
|
48
|
+
add_tags(*tags) if tags.present?
|
49
|
+
yield(self)
|
48
50
|
ensure
|
49
|
-
remove_tags(*tags)
|
51
|
+
remove_tags(*tags) if tags.present?
|
50
52
|
end
|
51
53
|
|
52
54
|
def add_tags(*tags)
|
metadata
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fluent_logger_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- HackerOne Open Source
|
8
8
|
- Ben Willis
|
9
|
-
autorequire:
|
9
|
+
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
12
|
date: 2020-07-14 00:00:00.000000000 Z
|
@@ -20,7 +20,7 @@ dependencies:
|
|
20
20
|
version: '5.0'
|
21
21
|
- - "<"
|
22
22
|
- !ruby/object:Gem::Version
|
23
|
-
version: '
|
23
|
+
version: '8'
|
24
24
|
type: :runtime
|
25
25
|
prerelease: false
|
26
26
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -30,7 +30,7 @@ dependencies:
|
|
30
30
|
version: '5.0'
|
31
31
|
- - "<"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '8'
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rspec
|
36
36
|
requirement: !ruby/object:Gem::Requirement
|
@@ -79,7 +79,7 @@ description: This is a library that wraps the [fluent-logger gem](https://github
|
|
79
79
|
for JSON format that can be sent to Fluentd (or really any other logging backend).
|
80
80
|
email:
|
81
81
|
- opensource+fluent_logger_rails@hackerone.com
|
82
|
-
- ben@
|
82
|
+
- ben@hackerone.com
|
83
83
|
executables: []
|
84
84
|
extensions: []
|
85
85
|
extra_rdoc_files: []
|
@@ -105,7 +105,7 @@ metadata:
|
|
105
105
|
homepage_uri: https://github.com/Hacker0x01/fluent_logger_rails
|
106
106
|
source_code_uri: https://github.com/Hacker0x01/fluent_logger_rails
|
107
107
|
changelog_uri: https://github.com/Hacker0x01/fluent_logger_rails/blob/master/CHANGELOG.md
|
108
|
-
post_install_message:
|
108
|
+
post_install_message:
|
109
109
|
rdoc_options: []
|
110
110
|
require_paths:
|
111
111
|
- lib
|
@@ -120,8 +120,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
|
-
rubygems_version: 3.
|
124
|
-
signing_key:
|
123
|
+
rubygems_version: 3.1.6
|
124
|
+
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: A wrapper for fluent-logger gem with support for tagged logging
|
127
127
|
test_files: []
|