activesupport-logger 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- checksums.yaml.gz.sig +2 -0
- data/CHANGELOG.md +15 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/CONTRIBUTING.md +55 -0
- data/LICENSE.txt +22 -0
- data/README.md +215 -0
- data/SECURITY.md +13 -0
- data/lib/activesupport/alt_logegr_silence_part2.rb +17 -0
- data/lib/activesupport/alt_logger_silence_part1.rb +24 -0
- data/lib/activesupport/logger/version.rb +12 -0
- data/lib/activesupport/logger.rb +53 -0
- data/lib/activesupport/logger_thread_safe_level.rb +49 -0
- data/lib/activesupport-logger.rb +57 -0
- data.tar.gz.sig +0 -0
- metadata +303 -0
- metadata.gz.sig +0 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 733ca69d3bc7cdaf272ef56fc2912612b248e148d7afdabc7c340352d12663b9
|
4
|
+
data.tar.gz: 236d211e689474d5f8f530ff266235af1db971b22bdc8dbec84b70471d95fd58
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b4bc257c9218766dc2ab36baa8e48296388b27ebfd953b9822d599907f11110c50ead6db467fad5f4e6f7a01e2ee6234a6f50023117a725016ba03ccf33f3f42
|
7
|
+
data.tar.gz: eaa0aeaf5ae135cb32862fdcae05e7be483cb15fcaf0736ed3ff19ca972a9b277e5b4fc593625189dc344d6d4d6f65b18956ed763644809b8f33f5c81941b064
|
checksums.yaml.gz.sig
ADDED
@@ -0,0 +1,2 @@
|
|
1
|
+
�`84�O��s!^F� n^�a���Fڜ[�>��:bJ�,����f�0��� ~~S�s��5"���w���iW0R�s���:eX �Vܱp��Z���v%C���RH��)�>x�Hg�"�����J��)�nq���G�[�m=,a�?��V������$X�47����$��� �y�Ք5�)�b�0�=P�^sy�D��T�}(�2q$j���n=�J��/75%�
|
2
|
+
���a���jy�#rtߨp����ֽE�6M��"P���Vjz��7�j��t���>R���Al)�s��Q_TQ���v��,��to2������(�o<���s���fw"�JW���HU��
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
# Changelog
|
2
|
+
All notable changes to this project will be documented in this file.
|
3
|
+
|
4
|
+
Since version 2.0.0, the format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
|
+
|
7
|
+
## [Unreleased]
|
8
|
+
### Added
|
9
|
+
### Changed
|
10
|
+
### Fixed
|
11
|
+
### Removed
|
12
|
+
|
13
|
+
## [1.0.0] - 2024-10-10
|
14
|
+
|
15
|
+
- Initial release
|
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,84 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
|
6
|
+
|
7
|
+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
|
8
|
+
|
9
|
+
## Our Standards
|
10
|
+
|
11
|
+
Examples of behavior that contributes to a positive environment for our community include:
|
12
|
+
|
13
|
+
* Demonstrating empathy and kindness toward other people
|
14
|
+
* Being respectful of differing opinions, viewpoints, and experiences
|
15
|
+
* Giving and gracefully accepting constructive feedback
|
16
|
+
* Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
|
17
|
+
* Focusing on what is best not just for us as individuals, but for the overall community
|
18
|
+
|
19
|
+
Examples of unacceptable behavior include:
|
20
|
+
|
21
|
+
* The use of sexualized language or imagery, and sexual attention or
|
22
|
+
advances of any kind
|
23
|
+
* Trolling, insulting or derogatory comments, and personal or political attacks
|
24
|
+
* Public or private harassment
|
25
|
+
* Publishing others' private information, such as a physical or email
|
26
|
+
address, without their explicit permission
|
27
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
28
|
+
professional setting
|
29
|
+
|
30
|
+
## Enforcement Responsibilities
|
31
|
+
|
32
|
+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
|
33
|
+
|
34
|
+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
|
35
|
+
|
36
|
+
## Scope
|
37
|
+
|
38
|
+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
|
39
|
+
|
40
|
+
## Enforcement
|
41
|
+
|
42
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at peter.boling@gmail.com. All complaints will be reviewed and investigated promptly and fairly.
|
43
|
+
|
44
|
+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
|
45
|
+
|
46
|
+
## Enforcement Guidelines
|
47
|
+
|
48
|
+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
|
49
|
+
|
50
|
+
### 1. Correction
|
51
|
+
|
52
|
+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
|
53
|
+
|
54
|
+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
|
55
|
+
|
56
|
+
### 2. Warning
|
57
|
+
|
58
|
+
**Community Impact**: A violation through a single incident or series of actions.
|
59
|
+
|
60
|
+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
|
61
|
+
|
62
|
+
### 3. Temporary Ban
|
63
|
+
|
64
|
+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
|
65
|
+
|
66
|
+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
|
67
|
+
|
68
|
+
### 4. Permanent Ban
|
69
|
+
|
70
|
+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
|
71
|
+
|
72
|
+
**Consequence**: A permanent ban from any sort of public interaction within the community.
|
73
|
+
|
74
|
+
## Attribution
|
75
|
+
|
76
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
|
77
|
+
available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
|
78
|
+
|
79
|
+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
|
80
|
+
|
81
|
+
[homepage]: https://www.contributor-covenant.org
|
82
|
+
|
83
|
+
For answers to common questions about this code of conduct, see the FAQ at
|
84
|
+
https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
|
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
## Contributing
|
2
|
+
|
3
|
+
Bug reports and pull requests are welcome on GitHub at [https://github.com/pboling/activesupport-logger][🚎src-main]
|
4
|
+
. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to
|
5
|
+
the [code of conduct][🤝conduct].
|
6
|
+
|
7
|
+
To submit a patch, please fork the project and create a patch with tests.
|
8
|
+
Once you're happy with it send a pull request.
|
9
|
+
|
10
|
+
## Release
|
11
|
+
|
12
|
+
### One-time, Per-developer, Setup
|
13
|
+
|
14
|
+
**IMPORTANT**: Your public key for signing gems will need to be picked up by the line in the
|
15
|
+
`gemspec` defining the `spec.cert_chain` (check the relevant ENV variables there),
|
16
|
+
in order to sign the new release.
|
17
|
+
See: [RubyGems Security Guide][🔒️rubygems-security-guide]
|
18
|
+
|
19
|
+
### To release a new version:
|
20
|
+
|
21
|
+
1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
|
22
|
+
2. Update the version number in `version.rb`
|
23
|
+
3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
|
24
|
+
4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
|
25
|
+
5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
|
26
|
+
- NOTE: Remember to [check the build][🧪build]!
|
27
|
+
6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
|
28
|
+
7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
|
29
|
+
8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure you will release the latest trunk code
|
30
|
+
9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
|
31
|
+
- Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
|
32
|
+
- If the echo above has no output, then it didn't work.
|
33
|
+
- Note that you'll need the `zsh/datetime` module, if running `zsh`.
|
34
|
+
- In `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
|
35
|
+
10. Run `bundle exec rake build`
|
36
|
+
11. Run `bin/checksums` (more [context][🔒️rubygems-checksums-pr]) to create SHA-256 and SHA-512 checksums
|
37
|
+
- Checksums will be committed automatically by the script, but not pushed
|
38
|
+
12. Run `bundle exec rake release` which will create a git tag for the version,
|
39
|
+
push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
|
40
|
+
|
41
|
+
## Contributors
|
42
|
+
|
43
|
+
[![Contributors][🖐contributors-img]][🖐contributors]
|
44
|
+
|
45
|
+
Made with [contributors-img][🖐contrib-rocks].
|
46
|
+
|
47
|
+
[🧪build]: https://github.com/pboling/activesupport-logger/actions
|
48
|
+
[🤝conduct]: https://github.com/pboling/activesupport-logger/blob/main/CODE_OF_CONDUCT.md
|
49
|
+
[🖐contrib-rocks]: https://contrib.rocks
|
50
|
+
[🖐contributors]: https://github.com/pboling/activesupport-logger/graphs/contributors
|
51
|
+
[🖐contributors-img]: https://contrib.rocks/image?repo=pboling/activesupport-logger
|
52
|
+
[💎rubygems]: https://rubygems.org
|
53
|
+
[🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
|
54
|
+
[🔒️rubygems-checksums-pr]: https://github.com/rubygems/guides/pull/325
|
55
|
+
[🚎src-main]: https://github.com/pboling/activesupport-logger
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) David Heinemeier Hansson
|
4
|
+
Copyright (c) 2024 Peter Boling
|
5
|
+
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
8
|
+
in the Software without restriction, including without limitation the rights
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
11
|
+
furnished to do so, subject to the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
14
|
+
all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
22
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,215 @@
|
|
1
|
+
# Activesupport::Logger
|
2
|
+
|
3
|
+
[![License: MIT](https://img.shields.io/badge/License-MIT-green.svg)](https://opensource.org/licenses/MIT)
|
4
|
+
[![Version](https://img.shields.io/gem/v/activesupport-logger.svg)](https://rubygems.org/gems/activesupport-logger)
|
5
|
+
[![Downloads Today](https://img.shields.io/gem/rd/activesupport-logger.svg)](https://github.com/pboling/activesupport-logger)
|
6
|
+
[![CI Supported Build][🚎s-wfi]][🚎s-wf]
|
7
|
+
[![CI Unsupported Build][🚎us-wfi]][🚎us-wf]
|
8
|
+
[![CI Ancient Build][🚎a-wfi]][🚎a-wf]
|
9
|
+
[![CI Style Build][🚎st-wfi]][🚎st-wf]
|
10
|
+
[![CI Coverage Build][🚎cov-wfi]][🚎cov-wf]
|
11
|
+
[![CI Heads Build][🚎hd-wfi]][🚎hd-wf]
|
12
|
+
|
13
|
+
-----
|
14
|
+
|
15
|
+
[![Liberapay Patrons][⛳liberapay-img]][⛳liberapay]
|
16
|
+
[![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor]
|
17
|
+
[![Polar Shield][🖇polar-img]][🖇polar]
|
18
|
+
[![Donate to my FLOSS or refugee efforts at ko-fi.com][🖇kofi-img]][🖇kofi]
|
19
|
+
[![Donate to my FLOSS or refugee efforts using Patreon][🖇patreon-img]][🖇patreon]
|
20
|
+
|
21
|
+
[🚎s-wf]: https://github.com/pboling/activesupport-logger/actions/workflows/supported.yml
|
22
|
+
[🚎s-wfi]: https://github.com/pboling/activesupport-logger/actions/workflows/supported.yml/badge.svg
|
23
|
+
[🚎us-wf]: https://github.com/pboling/activesupport-logger/actions/workflows/unsupported.yml
|
24
|
+
[🚎us-wfi]: https://github.com/pboling/activesupport-logger/actions/workflows/unsupported.yml/badge.svg
|
25
|
+
[🚎a-wf]: https://github.com/pboling/activesupport-logger/actions/workflows/ancient.yml
|
26
|
+
[🚎a-wfi]: https://github.com/pboling/activesupport-logger/actions/workflows/ancient.yml/badge.svg
|
27
|
+
[🚎st-wf]: https://github.com/pboling/activesupport-logger/actions/workflows/style.yml
|
28
|
+
[🚎st-wfi]: https://github.com/pboling/activesupport-logger/actions/workflows/style.yml/badge.svg
|
29
|
+
[🚎cov-wf]: https://github.com/pboling/activesupport-logger/actions/workflows/coverage.yml
|
30
|
+
[🚎cov-wfi]: https://github.com/pboling/activesupport-logger/actions/workflows/coverage.yml/badge.svg
|
31
|
+
[🚎hd-wf]: https://github.com/pboling/activesupport-logger/actions/workflows/heads.yml
|
32
|
+
[🚎hd-wfi]: https://github.com/pboling/activesupport-logger/actions/workflows/heads.yml/badge.svg
|
33
|
+
|
34
|
+
[⛳liberapay-img]: https://img.shields.io/liberapay/patrons/pboling.svg?logo=liberapay
|
35
|
+
[⛳liberapay]: https://liberapay.com/pboling/donate
|
36
|
+
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
|
37
|
+
[🖇sponsor]: https://github.com/sponsors/pboling
|
38
|
+
[🖇polar-img]: https://polar.sh/embed/seeks-funding-shield.svg?org=pboling
|
39
|
+
[🖇polar]: https://polar.sh/pboling
|
40
|
+
[🖇kofi-img]: https://img.shields.io/badge/buy%20me%20coffee-donate-yellow.svg
|
41
|
+
[🖇kofi]: https://ko-fi.com/O5O86SNP4
|
42
|
+
[🖇patreon-img]: https://img.shields.io/badge/patreon-donate-yellow.svg
|
43
|
+
[🖇patreon]: https://patreon.com/galtzo
|
44
|
+
|
45
|
+
This is an extraction of Rails' v8 `ActiveSupport::Logger` backported to work with Rails v5.2+ and Ruby 2.7+.
|
46
|
+
|
47
|
+
If this gem is loaded by Rails v8+, it does nothing at all. NOOP.
|
48
|
+
|
49
|
+
## Installation
|
50
|
+
|
51
|
+
Install the gem and add to the application's Gemfile by executing:
|
52
|
+
|
53
|
+
$ bundle add activesupport-logger
|
54
|
+
|
55
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
56
|
+
|
57
|
+
$ gem install activesupport-logger
|
58
|
+
|
59
|
+
## Usage
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
require "activesupport-logger"
|
63
|
+
```
|
64
|
+
|
65
|
+
### With `activesupport-tagged_logging` gem
|
66
|
+
|
67
|
+
This gem is automatically depended on and configured by [`activesupport-tagged_logging`][activesupport-tagged_logging],
|
68
|
+
so you don't need to do anything else.
|
69
|
+
|
70
|
+
IMPORTANT: If you are using [`activesupport-tagged_logging`][activesupport-tagged_logging],
|
71
|
+
**do not require [`activesupport-logger`][activesupport-logger] in your code.**
|
72
|
+
Load order matters.
|
73
|
+
|
74
|
+
Simplified, the load order is basically:
|
75
|
+
|
76
|
+
- Standard `active_support/logger` from the Rails version loaded by your application
|
77
|
+
- Standard `active_support/tagged_logging` from the Rails version loaded by your application
|
78
|
+
- This gem's `activesupport-logger` which was ripped from the Rails v8 beta
|
79
|
+
- [`activesupport-tagged_logging`][activesupport-tagged_logging] which was ripped from the Rails v8 beta
|
80
|
+
|
81
|
+
But, again, this is handled for you.
|
82
|
+
|
83
|
+
[activesupport-logger]: https://github.com/pboling/activesupport-logger
|
84
|
+
[activesupport-tagged_logging]: https://github.com/pboling/activesupport-tagged_logging
|
85
|
+
|
86
|
+
## General Info
|
87
|
+
|
88
|
+
| Primary Namespace | `Activesupport::Logger` && `ActiveSupport::Logger` |
|
89
|
+
|-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
90
|
+
| code triage | [![Open Source Helpers](https://www.codetriage.com/pboling/activesupport-logger/badges/users.svg)](https://www.codetriage.com/pboling/activesupport-logger) |
|
91
|
+
| documentation | [on Github.com][homepage], [on RubyDoc.info][documentation] |
|
92
|
+
| expert support | [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github) |
|
93
|
+
| `...` 💖 | [![Liberapay Patrons][⛳liberapay-img]][⛳liberapay] [![Sponsor Me][🖇sponsor-img]][🖇sponsor] [![Follow Me on LinkedIn][🖇linkedin-img]][🖇linkedin] [![Find Me on WellFound:][✌️wellfound-img]][✌️wellfound] [![Find Me on CrunchBase][💲crunchbase-img]][💲crunchbase] [![My LinkTree][🌳linktree-img]][🌳linktree] [![Follow Me on Ruby.Social][🐘ruby-mast-img]][🐘ruby-mast] [![Tweet @ Peter][🐦tweet-img]][🐦tweet] [💻][coderme] [🌏][aboutme] |
|
94
|
+
|
95
|
+
<!-- 7️⃣ spread 💖 -->
|
96
|
+
[🐦tweet-img]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow%20%40galtzo
|
97
|
+
[🐦tweet]: http://twitter.com/galtzo
|
98
|
+
[🚎blog]: http://www.railsbling.com/tags/activesupport-logger/
|
99
|
+
[🚎blog-img]: https://img.shields.io/badge/blog-railsbling-brightgreen.svg?style=flat
|
100
|
+
[🖇linkedin]: http://www.linkedin.com/in/peterboling
|
101
|
+
[🖇linkedin-img]: https://img.shields.io/badge/PeterBoling-blue?style=plastic&logo=linkedin
|
102
|
+
[✌️wellfound]: https://angel.co/u/peter-boling
|
103
|
+
[✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=plastic&logo=wellfound
|
104
|
+
[💲crunchbase]: https://www.crunchbase.com/person/peter-boling
|
105
|
+
[💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=plastic&logo=crunchbase
|
106
|
+
[🐘ruby-mast]: https://ruby.social/@galtzo
|
107
|
+
[🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https%3A%2F%2Fruby.social&style=plastic&logo=mastodon&label=Ruby%20%40galtzo
|
108
|
+
[🌳linktree]: https://linktr.ee/galtzo
|
109
|
+
[🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=plastic&logo=linktree
|
110
|
+
[documentation]: https://rubydoc.info/github/pboling/activesupport-logger
|
111
|
+
[homepage]: https://github.com/pboling/activesupport-logger
|
112
|
+
|
113
|
+
<!-- Maintainer Contact Links -->
|
114
|
+
[aboutme]: https://about.me/peter.boling
|
115
|
+
[coderme]: https://coderwall.com/Peter%20Boling
|
116
|
+
|
117
|
+
## 🤝 Contributing
|
118
|
+
|
119
|
+
If you need some ideas of where to help, you could work on adding more code coverage,
|
120
|
+
or if it is already 💯 then check [issues][🤝issues], or [PRs][🤝pulls],
|
121
|
+
or use the gem and think about how it could be better.
|
122
|
+
|
123
|
+
Also, see [CONTRIBUTING.md][🤝contributing].
|
124
|
+
|
125
|
+
[🤝issues]: https://github.com/pboling/activesupport-logger/issues
|
126
|
+
[🤝pulls]: https://github.com/pboling/activesupport-logger/pulls
|
127
|
+
[🤝contributing]: CONTRIBUTING.md
|
128
|
+
|
129
|
+
## 🌈 Contributors
|
130
|
+
|
131
|
+
[![Contributors][🖐contributors-img]][🖐contributors]
|
132
|
+
|
133
|
+
Made with [contributors-img][🖐contrib-rocks].
|
134
|
+
|
135
|
+
[🖐contrib-rocks]: https://contrib.rocks
|
136
|
+
[🖐contributors]: https://github.com/pboling/activesupport-logger/graphs/contributors
|
137
|
+
[🖐contributors-img]: https://contrib.rocks/image?repo=pboling/activesupport-logger
|
138
|
+
|
139
|
+
## 🪇 Code of Conduct
|
140
|
+
|
141
|
+
Everyone interacting in this project's codebases, issue trackers,
|
142
|
+
chat rooms and mailing lists is expected to follow the [code of conduct][🪇conduct].
|
143
|
+
|
144
|
+
[🪇conduct]: CODE_OF_CONDUCT.md
|
145
|
+
|
146
|
+
## 📌 Versioning
|
147
|
+
|
148
|
+
This Library adheres to [Semantic Versioning 2.0.0][📌semver].
|
149
|
+
Violations of this scheme should be reported as bugs.
|
150
|
+
Specifically, if a minor or patch version is released that breaks backward compatibility,
|
151
|
+
a new version should be immediately released that restores compatibility.
|
152
|
+
Breaking changes to the public API will only be introduced with new major versions.
|
153
|
+
|
154
|
+
To get a better understanding of how SemVer is intended to work over a project's lifetime,
|
155
|
+
read this article from the creator of SemVer:
|
156
|
+
|
157
|
+
- ["Major Version Numbers are Not Sacred"][📌major-versions-not-sacred]
|
158
|
+
|
159
|
+
As a result of this policy, you can (and should) specify a dependency on these libraries using
|
160
|
+
the [Pessimistic Version Constraint][📌pvc] with two digits of precision.
|
161
|
+
|
162
|
+
For example:
|
163
|
+
|
164
|
+
```ruby
|
165
|
+
spec.add_dependency("activesupport-logger", "~> 1.0")
|
166
|
+
```
|
167
|
+
|
168
|
+
See [CHANGELOG.md][📌changelog] for list of releases.
|
169
|
+
|
170
|
+
[comment]: <> ( 📌 VERSIONING LINKS )
|
171
|
+
|
172
|
+
[📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
173
|
+
[📌semver]: http://semver.org/
|
174
|
+
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
175
|
+
[📌changelog]: CHANGELOG.md
|
176
|
+
|
177
|
+
## 📄 License
|
178
|
+
|
179
|
+
The gem is available as open source under the terms of
|
180
|
+
the [MIT License][📄license] [![License: MIT][📄license-img]][📄license-ref].
|
181
|
+
|
182
|
+
See [LICENSE.txt][📄license] for the official [Copyright Notice][📄copyright-notice-explainer].
|
183
|
+
|
184
|
+
[comment]: <> ( 📄 LEGAL LINKS )
|
185
|
+
|
186
|
+
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
187
|
+
[📄license]: LICENSE.txt
|
188
|
+
[📄license-ref]: https://opensource.org/licenses/MIT
|
189
|
+
[📄license-img]: https://img.shields.io/badge/License-MIT-green.svg
|
190
|
+
|
191
|
+
### © Copyright
|
192
|
+
|
193
|
+
* Copyright (c) David Heinemeier Hansson
|
194
|
+
* Parts original to this extraction are:
|
195
|
+
* Copyright (c) 2024 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
|
196
|
+
|
197
|
+
[railsbling]: http://www.railsbling.com
|
198
|
+
[peterboling]: http://www.peterboling.com
|
199
|
+
[bundle-group-pattern]: https://gist.github.com/pboling/4564780
|
200
|
+
[documentation]: http://rubydoc.info/gems/activesupport-logger
|
201
|
+
[homepage]: https://github.com/pboling/activesupport-logger
|
202
|
+
|
203
|
+
## 🤑 One more thing
|
204
|
+
|
205
|
+
You made it to the bottom of the page,
|
206
|
+
so perhaps you'll indulge me for another 20 seconds.
|
207
|
+
I maintain many dozens of gems, including this one,
|
208
|
+
because I want Ruby to be a great place for people to solve problems, big and small.
|
209
|
+
Please consider supporting my efforts via the giant yellow link below,
|
210
|
+
or one of the others at the head of this README.
|
211
|
+
|
212
|
+
[![Buy me a latte][🖇buyme-img]][🖇buyme]
|
213
|
+
|
214
|
+
[🖇buyme-img]: https://img.buymeacoffee.com/button-api/?text=Buy%20me%20a%20latte&emoji=&slug=pboling&button_colour=FFDD00&font_colour=000000&font_family=Cookie&outline_colour=000000&coffee_colour=ffffff
|
215
|
+
[🖇buyme]: https://www.buymeacoffee.com/pboling
|
data/SECURITY.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Supported Versions
|
4
|
+
|
5
|
+
| Version | Supported |
|
6
|
+
|---------|-----------|
|
7
|
+
| 1.x | ✅ |
|
8
|
+
|
9
|
+
## Reporting a Vulnerability
|
10
|
+
|
11
|
+
Peter Boling is the primary maintainer of this gem. Please find a way
|
12
|
+
to [contact him directly](https://railsbling.com/contact) to report the issue. Include as much relevant information as
|
13
|
+
possible.
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveSupport
|
4
|
+
# Extracted from:
|
5
|
+
# https://github.com/rails/rails/blob/8d1ade40dd08feb26240ba6ef7e4bed91f70864a/activesupport/lib/active_support/logger_silence.rb
|
6
|
+
# Compare SHA with latest commit to check for changes:
|
7
|
+
# https://github.com/rails/rails/blob/main/activesupport/lib/active_support/logger_silence.rb
|
8
|
+
# This module only contains the instance methods from LoggerSilence
|
9
|
+
module AltLoggerSilencePart2
|
10
|
+
extend ActiveSupport::Concern
|
11
|
+
|
12
|
+
# Silences the logger for the duration of the block.
|
13
|
+
def silence(severity = Logger::ERROR)
|
14
|
+
silencer ? log_at(severity) { yield self } : yield(self)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Extracted from:
|
4
|
+
# https://github.com/rails/rails/blob/564e427c05e0d3d24ce8c3ab17ea0969011e056a/activesupport/lib/active_support/logger_thread_safe_level.rb
|
5
|
+
# Compare SHA with latest commit to check for changes:
|
6
|
+
# https://github.com/rails/rails/blob/main/activesupport/lib/active_support/logger_thread_safe_level.rb
|
7
|
+
require_relative "logger_thread_safe_level"
|
8
|
+
|
9
|
+
module ActiveSupport
|
10
|
+
# Extracted from:
|
11
|
+
# https://github.com/rails/rails/blob/8d1ade40dd08feb26240ba6ef7e4bed91f70864a/activesupport/lib/active_support/logger_silence.rb
|
12
|
+
# Compare SHA with latest commit to check for changes:
|
13
|
+
# https://github.com/rails/rails/blob/main/activesupport/lib/active_support/logger_silence.rb
|
14
|
+
# This module only contains the included block from LoggerSilence
|
15
|
+
module AltLoggerSilencePart1
|
16
|
+
extend ActiveSupport::Concern
|
17
|
+
|
18
|
+
# Thanks to ^ the included block of the original version of the module will not run.
|
19
|
+
included do
|
20
|
+
cattr_accessor :silencer, default: true
|
21
|
+
include ActiveSupport::LoggerThreadSafeLevel
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# NOTE: This is a different namespace than the Rails one.
|
4
|
+
# Lowercase "s" here, uppercase in Rails.
|
5
|
+
# This is to avoid a superclass mismatch for Logger.
|
6
|
+
module Activesupport
|
7
|
+
module Logger
|
8
|
+
module Version
|
9
|
+
VERSION = "1.0.0"
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -0,0 +1,53 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveSupport
|
4
|
+
class Logger < ::Logger
|
5
|
+
# The line below is handled by activesupport-logger.rb
|
6
|
+
# include AltLoggerSilencePart2 (& Part1 can't be used)
|
7
|
+
|
8
|
+
# Returns true if the logger destination matches one of the sources
|
9
|
+
#
|
10
|
+
# logger = Logger.new(STDOUT)
|
11
|
+
# ActiveSupport::Logger.logger_outputs_to?(logger, STDOUT)
|
12
|
+
# # => true
|
13
|
+
#
|
14
|
+
# logger = Logger.new('/var/log/rails.log')
|
15
|
+
# ActiveSupport::Logger.logger_outputs_to?(logger, '/var/log/rails.log')
|
16
|
+
# # => true
|
17
|
+
def self.logger_outputs_to?(logger, *sources)
|
18
|
+
loggers = if logger.is_a?(BroadcastLogger)
|
19
|
+
logger.broadcasts
|
20
|
+
else
|
21
|
+
[logger]
|
22
|
+
end
|
23
|
+
|
24
|
+
logdevs = loggers.map { |logger| logger.instance_variable_get(:@logdev) }
|
25
|
+
logger_sources = logdevs.filter_map { |logdev| logdev.try(:filename) || logdev.try(:dev) }
|
26
|
+
|
27
|
+
normalize_sources(sources).intersect?(normalize_sources(logger_sources))
|
28
|
+
end
|
29
|
+
|
30
|
+
def initialize(*args, **kwargs)
|
31
|
+
super
|
32
|
+
@formatter ||= SimpleFormatter.new
|
33
|
+
end
|
34
|
+
|
35
|
+
# Simple formatter which only displays the message.
|
36
|
+
class SimpleFormatter < ::Logger::Formatter
|
37
|
+
# This method is invoked when a log event occurs
|
38
|
+
def call(severity, timestamp, progname, msg)
|
39
|
+
"#{(String === msg) ? msg : msg.inspect}\n"
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
private
|
44
|
+
|
45
|
+
def self.normalize_sources(sources)
|
46
|
+
sources.map do |source|
|
47
|
+
source = source.path if source.respond_to?(:path)
|
48
|
+
source = File.realpath(source) if source.is_a?(String) && File.exist?(source)
|
49
|
+
source
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
end
|
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ActiveSupport
|
4
|
+
# Extracted from:
|
5
|
+
# https://github.com/rails/rails/blob/564e427c05e0d3d24ce8c3ab17ea0969011e056a/activesupport/lib/active_support/logger_thread_safe_level.rb
|
6
|
+
# Compare SHA with latest commit to check for changes:
|
7
|
+
# https://github.com/rails/rails/blob/main/activesupport/lib/active_support/logger_thread_safe_level.rb
|
8
|
+
module LoggerThreadSafeLevel # :nodoc:
|
9
|
+
extend ActiveSupport::Concern
|
10
|
+
|
11
|
+
def local_level
|
12
|
+
IsolatedExecutionState[local_level_key]
|
13
|
+
end
|
14
|
+
|
15
|
+
def local_level=(level)
|
16
|
+
case level
|
17
|
+
when Integer
|
18
|
+
when Symbol
|
19
|
+
level = Logger::Severity.const_get(level.to_s.upcase)
|
20
|
+
when nil
|
21
|
+
else
|
22
|
+
raise ArgumentError, "Invalid log level: #{level.inspect}"
|
23
|
+
end
|
24
|
+
if level.nil?
|
25
|
+
IsolatedExecutionState.delete(local_level_key)
|
26
|
+
else
|
27
|
+
IsolatedExecutionState[local_level_key] = level
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def level
|
32
|
+
local_level || super
|
33
|
+
end
|
34
|
+
|
35
|
+
# Change the thread-local level for the duration of the given block.
|
36
|
+
def log_at(level)
|
37
|
+
old_local_level, self.local_level = local_level, level
|
38
|
+
yield
|
39
|
+
ensure
|
40
|
+
self.local_level = old_local_level
|
41
|
+
end
|
42
|
+
|
43
|
+
private
|
44
|
+
|
45
|
+
def local_level_key
|
46
|
+
@local_level_key ||= :"logger_thread_safe_level_#{object_id}"
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
@@ -0,0 +1,57 @@
|
|
1
|
+
# Ruby stdlib
|
2
|
+
require "logger"
|
3
|
+
|
4
|
+
# External libraries
|
5
|
+
require "active_support/version"
|
6
|
+
require "version_gem"
|
7
|
+
|
8
|
+
# This library
|
9
|
+
require_relative "activesupport/logger/version"
|
10
|
+
|
11
|
+
# This gem doesn't do anything unless Rails is < v8
|
12
|
+
if ActiveSupport.version < "8"
|
13
|
+
# Loads supporting features from Rails v5, 6, or 7
|
14
|
+
require "active_support/concern"
|
15
|
+
require "active_support/core_ext/module/attribute_accessors"
|
16
|
+
|
17
|
+
# Require the original tagged logging from whatever version of Rails is loaded,
|
18
|
+
# so that it will be properly monkey patched.
|
19
|
+
require "active_support/logger"
|
20
|
+
|
21
|
+
# !!ORDER MATTERS!!
|
22
|
+
#
|
23
|
+
# Extracted from:
|
24
|
+
# https://github.com/rails/rails/blob/564e427c05e0d3d24ce8c3ab17ea0969011e056a/activesupport/lib/active_support/logger_thread_safe_level.rb
|
25
|
+
# Compare SHA with latest commit to check for changes:
|
26
|
+
# https://github.com/rails/rails/blob/main/activesupport/lib/active_support/logger_thread_safe_level.rb
|
27
|
+
# This is a straightforward monkey patch.
|
28
|
+
require_relative "activesupport/logger_thread_safe_level"
|
29
|
+
|
30
|
+
# Extracted from:
|
31
|
+
# https://github.com/rails/rails/blob/8d1ade40dd08feb26240ba6ef7e4bed91f70864a/activesupport/lib/active_support/logger_silence.rb
|
32
|
+
# Compare SHA with latest commit to check for changes:
|
33
|
+
# https://github.com/rails/rails/blob/main/activesupport/lib/active_support/logger_thread_safe_level.rb
|
34
|
+
# This is a straightforward monkey patch. We can't use part 1,
|
35
|
+
# because it has the `included' block, which can't be monkey patched at all.
|
36
|
+
require_relative "activesupport/alt_logegr_silence_part2"
|
37
|
+
|
38
|
+
# Extracted from:
|
39
|
+
# https://github.com/rails/rails/blob/fc62f03ae30fbb9108b004daa9bfedef0401003f/activesupport/lib/active_support/logger.rb
|
40
|
+
# Compare SHA with latest commit to check for changes:
|
41
|
+
# https://github.com/rails/rails/blob/main/activesupport/lib/active_support/logger_thread_safe_level.rb
|
42
|
+
#
|
43
|
+
# All this reloading might print warnings about redefined methods, and this is expected.
|
44
|
+
# Technically it might even break things, but we don't expect it to, and YMMV.
|
45
|
+
require_relative "activesupport/logger"
|
46
|
+
else
|
47
|
+
# Fallback to the original
|
48
|
+
require "active_support/logger"
|
49
|
+
end
|
50
|
+
|
51
|
+
# Namespace for the Version of this gem (and nothing else)
|
52
|
+
module Activesupport
|
53
|
+
end
|
54
|
+
|
55
|
+
Activesupport::Logger::Version.class_eval do
|
56
|
+
extend VersionGem::Basic
|
57
|
+
end
|
data.tar.gz.sig
ADDED
Binary file
|
metadata
ADDED
@@ -0,0 +1,303 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: activesupport-logger
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Peter Boling
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIEgDCCAuigAwIBAgIBATANBgkqhkiG9w0BAQsFADBDMRUwEwYDVQQDDAxwZXRl
|
14
|
+
ci5ib2xpbmcxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
|
15
|
+
A2NvbTAeFw0yNDA5MjAwODU4NDJaFw0yNTA5MjAwODU4NDJaMEMxFTATBgNVBAMM
|
16
|
+
DHBldGVyLmJvbGluZzEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
|
17
|
+
LGQBGRYDY29tMIIBojANBgkqhkiG9w0BAQEFAAOCAY8AMIIBigKCAYEAjrxsKObI
|
18
|
+
rFQjBpzvVfqnT6JlF8/pkpgEEjFh7ex3zIerfuHzZvSrx+sRDGxQ8koWWG0Wjx8s
|
19
|
+
wkBZ5dIqvl0g3sWP5asa28u/09opxkQTC1Ao77iYxcBcwoCe/Dpf1m4Q/m6oH0kL
|
20
|
+
2AZVNJQL3UkqAcLS0tsj/s/jAKnVlsaZZE5gQiIIi8HtkvSsajtx+Cq2AxDvcWvV
|
21
|
+
/CliD+pmzYkTjvjwGm8yeyFGGGgrisJMryiZdZlkTwrQSjCzudIKbLeuG8Se4JTD
|
22
|
+
TAcT+rPubr27v1jwmtIjtiot3rf4nof7LHLb122a/0VR7cC7xPLnXw0Cq1BShvoq
|
23
|
+
/GKRdSwMNinTOGkFTK1gKnjN+3iD4zyXU3XO3CXoTr+Ju8fXPN1x4tpOMgbv8dme
|
24
|
+
WbcQMOH9ZjmA5w0bSVRL1c3NhRRpUzrKTNXBEvqOyWjUnintxWKj+cRXx+z+dUgI
|
25
|
+
dL3kj68fcsiTgl75In3C485pnCMmq1eLuVoiy3jkLNOn2lHeLt9ZK63LAgMBAAGj
|
26
|
+
fzB9MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQWBBRhfc+2UaVYd74p
|
27
|
+
yJ1JclGiUYN8+jAhBgNVHREEGjAYgRZwZXRlci5ib2xpbmdAZ21haWwuY29tMCEG
|
28
|
+
A1UdEgQaMBiBFnBldGVyLmJvbGluZ0BnbWFpbC5jb20wDQYJKoZIhvcNAQELBQAD
|
29
|
+
ggGBAA4fLU2+mQ++jBhVM2IeyvQdw1nm+0thkH4Ldv8ZOBm5ZxCPGIMoYliDDzg4
|
30
|
+
4JDFxZR1wR4sdrz/K5tWtEkN23SKzopwbNb1NIQRSLQ7nOoc+4bkuz9xwKinmIvF
|
31
|
+
D+5qsl2S27WLKFreMDtGoh0CREIMBUxU4rGTh0gtzmweGR+fnOShg4Jo0kxrjU5h
|
32
|
+
uYk/uVE+bn/jOEGs43GvKXZLyshpBrZjQ+ArbvxDht5t35zbSxerbUxUPZUbXUCW
|
33
|
+
tTyh38a9UYjAAHvnh6Y4Fi9wd4/pGNsektrzB3z/zlVj4YF2TMLX9XfNJWEGRGpO
|
34
|
+
sSkLYdtEX1WQAmuZtActVW2cL3HdQaRbiv7VbfpA0eSk0ZdZHvBCl516ZZu10uX6
|
35
|
+
82W1mg6fuezdpeBOiXwrEbZSt/oGiF4V511F6nd55p0okwHc/6nS10F/3aKJ4gwC
|
36
|
+
I5o+DRfXQHqKucx1ldFHvI2rE/kSCWqGTHN2eyu1sqCPeOoIMxrltJhaejKPkxqj
|
37
|
+
zaF9Og==
|
38
|
+
-----END CERTIFICATE-----
|
39
|
+
date: 2024-10-10 00:00:00.000000000 Z
|
40
|
+
dependencies:
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: activesupport
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.2'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.2'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: version_gem
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.1'
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 1.1.4
|
65
|
+
type: :runtime
|
66
|
+
prerelease: false
|
67
|
+
version_requirements: !ruby/object:Gem::Requirement
|
68
|
+
requirements:
|
69
|
+
- - "~>"
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
version: '1.1'
|
72
|
+
- - ">="
|
73
|
+
- !ruby/object:Gem::Version
|
74
|
+
version: 1.1.4
|
75
|
+
- !ruby/object:Gem::Dependency
|
76
|
+
name: yard
|
77
|
+
requirement: !ruby/object:Gem::Requirement
|
78
|
+
requirements:
|
79
|
+
- - "~>"
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0.9'
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: 0.9.34
|
85
|
+
type: :development
|
86
|
+
prerelease: false
|
87
|
+
version_requirements: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - "~>"
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0.9'
|
92
|
+
- - ">="
|
93
|
+
- !ruby/object:Gem::Version
|
94
|
+
version: 0.9.34
|
95
|
+
- !ruby/object:Gem::Dependency
|
96
|
+
name: yard-junk
|
97
|
+
requirement: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - "~>"
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 0.0.10
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - "~>"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 0.0.10
|
109
|
+
- !ruby/object:Gem::Dependency
|
110
|
+
name: kettle-soup-cover
|
111
|
+
requirement: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '1.0'
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: 1.0.2
|
119
|
+
type: :development
|
120
|
+
prerelease: false
|
121
|
+
version_requirements: !ruby/object:Gem::Requirement
|
122
|
+
requirements:
|
123
|
+
- - "~>"
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '1.0'
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: 1.0.2
|
129
|
+
- !ruby/object:Gem::Dependency
|
130
|
+
name: method_source
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
132
|
+
requirements:
|
133
|
+
- - ">="
|
134
|
+
- !ruby/object:Gem::Version
|
135
|
+
version: 1.1.0
|
136
|
+
type: :development
|
137
|
+
prerelease: false
|
138
|
+
version_requirements: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 1.1.0
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: rake
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '10'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '10'
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: rspec
|
159
|
+
requirement: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - "~>"
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '3.13'
|
164
|
+
type: :development
|
165
|
+
prerelease: false
|
166
|
+
version_requirements: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - "~>"
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '3.13'
|
171
|
+
- !ruby/object:Gem::Dependency
|
172
|
+
name: rspec-block_is_expected
|
173
|
+
requirement: !ruby/object:Gem::Requirement
|
174
|
+
requirements:
|
175
|
+
- - "~>"
|
176
|
+
- !ruby/object:Gem::Version
|
177
|
+
version: '1.0'
|
178
|
+
- - ">="
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 1.0.6
|
181
|
+
type: :development
|
182
|
+
prerelease: false
|
183
|
+
version_requirements: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - "~>"
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '1.0'
|
188
|
+
- - ">="
|
189
|
+
- !ruby/object:Gem::Version
|
190
|
+
version: 1.0.6
|
191
|
+
- !ruby/object:Gem::Dependency
|
192
|
+
name: rubocop-lts
|
193
|
+
requirement: !ruby/object:Gem::Requirement
|
194
|
+
requirements:
|
195
|
+
- - "~>"
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '10.1'
|
198
|
+
type: :development
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
requirements:
|
202
|
+
- - "~>"
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: '10.1'
|
205
|
+
- !ruby/object:Gem::Dependency
|
206
|
+
name: rubocop-packaging
|
207
|
+
requirement: !ruby/object:Gem::Requirement
|
208
|
+
requirements:
|
209
|
+
- - "~>"
|
210
|
+
- !ruby/object:Gem::Version
|
211
|
+
version: '0.5'
|
212
|
+
- - ">="
|
213
|
+
- !ruby/object:Gem::Version
|
214
|
+
version: 0.5.2
|
215
|
+
type: :development
|
216
|
+
prerelease: false
|
217
|
+
version_requirements: !ruby/object:Gem::Requirement
|
218
|
+
requirements:
|
219
|
+
- - "~>"
|
220
|
+
- !ruby/object:Gem::Version
|
221
|
+
version: '0.5'
|
222
|
+
- - ">="
|
223
|
+
- !ruby/object:Gem::Version
|
224
|
+
version: 0.5.2
|
225
|
+
- !ruby/object:Gem::Dependency
|
226
|
+
name: rubocop-rspec
|
227
|
+
requirement: !ruby/object:Gem::Requirement
|
228
|
+
requirements:
|
229
|
+
- - "~>"
|
230
|
+
- !ruby/object:Gem::Version
|
231
|
+
version: '3.0'
|
232
|
+
type: :development
|
233
|
+
prerelease: false
|
234
|
+
version_requirements: !ruby/object:Gem::Requirement
|
235
|
+
requirements:
|
236
|
+
- - "~>"
|
237
|
+
- !ruby/object:Gem::Version
|
238
|
+
version: '3.0'
|
239
|
+
- !ruby/object:Gem::Dependency
|
240
|
+
name: standard
|
241
|
+
requirement: !ruby/object:Gem::Requirement
|
242
|
+
requirements:
|
243
|
+
- - "~>"
|
244
|
+
- !ruby/object:Gem::Version
|
245
|
+
version: '1.40'
|
246
|
+
type: :development
|
247
|
+
prerelease: false
|
248
|
+
version_requirements: !ruby/object:Gem::Requirement
|
249
|
+
requirements:
|
250
|
+
- - "~>"
|
251
|
+
- !ruby/object:Gem::Version
|
252
|
+
version: '1.40'
|
253
|
+
description: Rails v8 ActiveSupport::Logger backported to Rails v5.2+ & Ruby 2.7+
|
254
|
+
email:
|
255
|
+
- peter.boling@gmail.com
|
256
|
+
executables: []
|
257
|
+
extensions: []
|
258
|
+
extra_rdoc_files: []
|
259
|
+
files:
|
260
|
+
- CHANGELOG.md
|
261
|
+
- CODE_OF_CONDUCT.md
|
262
|
+
- CONTRIBUTING.md
|
263
|
+
- LICENSE.txt
|
264
|
+
- README.md
|
265
|
+
- SECURITY.md
|
266
|
+
- lib/activesupport-logger.rb
|
267
|
+
- lib/activesupport/alt_logegr_silence_part2.rb
|
268
|
+
- lib/activesupport/alt_logger_silence_part1.rb
|
269
|
+
- lib/activesupport/logger.rb
|
270
|
+
- lib/activesupport/logger/version.rb
|
271
|
+
- lib/activesupport/logger_thread_safe_level.rb
|
272
|
+
homepage: https://github.com/pboling/activesupport-logger
|
273
|
+
licenses:
|
274
|
+
- MIT
|
275
|
+
metadata:
|
276
|
+
homepage_uri: https://github.com/pboling/activesupport-logger
|
277
|
+
source_code_uri: https://github.com/pboling/activesupport-logger/tree/v1.0.0
|
278
|
+
changelog_uri: https://github.com/pboling/activesupport-logger/blob/v1.0.0/CHANGELOG.md
|
279
|
+
bug_tracker_uri: https://github.com/pboling/activesupport-logger/issues
|
280
|
+
documentation_uri: https://www.rubydoc.info/gems/activesupport-logger/1.0.0
|
281
|
+
wiki_uri: https://github.com/pboling/activesupport-logger/wiki
|
282
|
+
funding_uri: https://liberapay.com/pboling
|
283
|
+
rubygems_mfa_required: 'true'
|
284
|
+
post_install_message:
|
285
|
+
rdoc_options: []
|
286
|
+
require_paths:
|
287
|
+
- lib
|
288
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
289
|
+
requirements:
|
290
|
+
- - ">="
|
291
|
+
- !ruby/object:Gem::Version
|
292
|
+
version: 2.7.0
|
293
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
294
|
+
requirements:
|
295
|
+
- - ">="
|
296
|
+
- !ruby/object:Gem::Version
|
297
|
+
version: '0'
|
298
|
+
requirements: []
|
299
|
+
rubygems_version: 3.5.20
|
300
|
+
signing_key:
|
301
|
+
specification_version: 4
|
302
|
+
summary: Rails v8 ActiveSupport::Logger backported to Rails v5.2+ & Ruby 2.7+
|
303
|
+
test_files: []
|
metadata.gz.sig
ADDED
Binary file
|