activesupport-tagged_logging 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: f5f5c84b303bd62f4fe09ec82a6ab8d1865465efb4cfdcf320bd924e70469bc3
4
+ data.tar.gz: 195b98ae4e6f950b7006a8776932106db8c35c23fc92451d2b77f6059396e524
5
+ SHA512:
6
+ metadata.gz: 4d2ea5c487ea646d52e87168699e26f2e2b1567cd678edbcb6ed4d4e52ac0801e51677881a08deceb29e9a49529510f6b35fd025dc117f1ab212dd81c8898cd0
7
+ data.tar.gz: 53db093df465636d1dc323e6b1098bb36259b086bc4ba9813744c9f29eefc2a620bbb63a05a20e5c4e316cf59eefa06fad10a94e0385591e792e2c9d2f453a7b
checksums.yaml.gz.sig ADDED
@@ -0,0 +1 @@
1
+ { ����
data/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
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
+ - COVERAGE: 46.84% -- 74/158 lines in 6 files
15
+ - BRANCH COVERAGE: 21.74% -- 5/23 branches in 6 files
16
+ - 37.78% documented
17
+ ### Added
18
+ - Initial release
@@ -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-tagged_logging][🚎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-tagged_logging/actions
48
+ [🤝conduct]: https://github.com/pboling/activesupport-tagged_logging/blob/main/CODE_OF_CONDUCT.md
49
+ [🖐contrib-rocks]: https://contrib.rocks
50
+ [🖐contributors]: https://github.com/pboling/activesupport-tagged_logging/graphs/contributors
51
+ [🖐contributors-img]: https://contrib.rocks/image?repo=pboling/activesupport-tagged_logging
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-tagged_logging
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,225 @@
1
+ # Activesupport::TaggedLogging
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-tagged_logging.svg)](https://rubygems.org/gems/activesupport-tagged_logging)
5
+ [![Downloads Today](https://img.shields.io/gem/rd/activesupport-tagged_logging.svg)](https://github.com/pboling/activesupport-tagged_logging)
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-tagged_logging/actions/workflows/supported.yml
22
+ [🚎s-wfi]: https://github.com/pboling/activesupport-tagged_logging/actions/workflows/supported.yml/badge.svg
23
+ [🚎us-wf]: https://github.com/pboling/activesupport-tagged_logging/actions/workflows/unsupported.yml
24
+ [🚎us-wfi]: https://github.com/pboling/activesupport-tagged_logging/actions/workflows/unsupported.yml/badge.svg
25
+ [🚎a-wf]: https://github.com/pboling/activesupport-tagged_logging/actions/workflows/ancient.yml
26
+ [🚎a-wfi]: https://github.com/pboling/activesupport-tagged_logging/actions/workflows/ancient.yml/badge.svg
27
+ [🚎st-wf]: https://github.com/pboling/activesupport-tagged_logging/actions/workflows/style.yml
28
+ [🚎st-wfi]: https://github.com/pboling/activesupport-tagged_logging/actions/workflows/style.yml/badge.svg
29
+ [🚎cov-wf]: https://github.com/pboling/activesupport-tagged_logging/actions/workflows/coverage.yml
30
+ [🚎cov-wfi]: https://github.com/pboling/activesupport-tagged_logging/actions/workflows/coverage.yml/badge.svg
31
+ [🚎hd-wf]: https://github.com/pboling/activesupport-tagged_logging/actions/workflows/heads.yml
32
+ [🚎hd-wfi]: https://github.com/pboling/activesupport-tagged_logging/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 **unofficial** extraction of Rails' v8 `ActiveSupport::TaggedLogging` 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-tagged_logging
54
+
55
+ If bundler is not being used to manage dependencies, install the gem by executing:
56
+
57
+ $ gem install activesupport-tagged_logging
58
+
59
+ ## Usage
60
+
61
+ ```ruby
62
+ require "activesupport-tagged_logging"
63
+ ```
64
+
65
+ ### With `activesupport-logger` gem
66
+
67
+ [`activesupport-logger`][activesupport-logger] is automatically depended on and configured by this gem,
68
+ so you don't need to do anything else.
69
+
70
+ IMPORTANT: When using this gem,
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 dependency [`activesupport-logger`][activesupport-logger] which was ripped from the Rails v8 beta
79
+ - This gem's `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
+ ### With broadcasting support
87
+
88
+ If you want to try an experimental fix from a PR, run:
89
+
90
+ ```ruby
91
+ ActiveSupport::FixPr53105.init
92
+ ```
93
+
94
+ See: https://github.com/rails/rails/pull/53105/files
95
+
96
+ ## General Info
97
+
98
+ | Primary Namespace | `Activesupport::Logger` && `ActiveSupport::Logger` |
99
+ |-------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
100
+ | code triage | [![Open Source Helpers](https://www.codetriage.com/pboling/activesupport-tagged_logging/badges/users.svg)](https://www.codetriage.com/pboling/activesupport-tagged_logging) |
101
+ | documentation | [on Github.com][homepage], [on RubyDoc.info][documentation] |
102
+ | 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) |
103
+ | `...` 💖 | [![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] |
104
+
105
+ <!-- 7️⃣ spread 💖 -->
106
+ [🐦tweet-img]: https://img.shields.io/twitter/follow/galtzo.svg?style=social&label=Follow%20%40galtzo
107
+ [🐦tweet]: http://twitter.com/galtzo
108
+ [🚎blog]: http://www.railsbling.com/tags/activesupport-tagged_logging/
109
+ [🚎blog-img]: https://img.shields.io/badge/blog-railsbling-brightgreen.svg?style=flat
110
+ [🖇linkedin]: http://www.linkedin.com/in/peterboling
111
+ [🖇linkedin-img]: https://img.shields.io/badge/PeterBoling-blue?style=plastic&logo=linkedin
112
+ [✌️wellfound]: https://angel.co/u/peter-boling
113
+ [✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=plastic&logo=wellfound
114
+ [💲crunchbase]: https://www.crunchbase.com/person/peter-boling
115
+ [💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=plastic&logo=crunchbase
116
+ [🐘ruby-mast]: https://ruby.social/@galtzo
117
+ [🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https%3A%2F%2Fruby.social&style=plastic&logo=mastodon&label=Ruby%20%40galtzo
118
+ [🌳linktree]: https://linktr.ee/galtzo
119
+ [🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=plastic&logo=linktree
120
+ [documentation]: https://rubydoc.info/github/pboling/activesupport-tagged_logging
121
+ [homepage]: https://github.com/pboling/activesupport-tagged_logging
122
+
123
+ <!-- Maintainer Contact Links -->
124
+ [aboutme]: https://about.me/peter.boling
125
+ [coderme]: https://coderwall.com/Peter%20Boling
126
+
127
+ ## 🤝 Contributing
128
+
129
+ If you need some ideas of where to help, you could work on adding more code coverage,
130
+ or if it is already 💯 then check [issues][🤝issues], or [PRs][🤝pulls],
131
+ or use the gem and think about how it could be better.
132
+
133
+ Also, see [CONTRIBUTING.md][🤝contributing].
134
+
135
+ [🤝issues]: https://github.com/pboling/activesupport-tagged_logging/issues
136
+ [🤝pulls]: https://github.com/pboling/activesupport-tagged_logging/pulls
137
+ [🤝contributing]: CONTRIBUTING.md
138
+
139
+ ## 🌈 Contributors
140
+
141
+ [![Contributors][🖐contributors-img]][🖐contributors]
142
+
143
+ Made with [contributors-img][🖐contrib-rocks].
144
+
145
+ [🖐contrib-rocks]: https://contrib.rocks
146
+ [🖐contributors]: https://github.com/pboling/activesupport-tagged_logging/graphs/contributors
147
+ [🖐contributors-img]: https://contrib.rocks/image?repo=pboling/activesupport-tagged_logging
148
+
149
+ ## 🪇 Code of Conduct
150
+
151
+ Everyone interacting in this project's codebases, issue trackers,
152
+ chat rooms and mailing lists is expected to follow the [code of conduct][🪇conduct].
153
+
154
+ [🪇conduct]: CODE_OF_CONDUCT.md
155
+
156
+ ## 📌 Versioning
157
+
158
+ This Library adheres to [Semantic Versioning 2.0.0][📌semver].
159
+ Violations of this scheme should be reported as bugs.
160
+ Specifically, if a minor or patch version is released that breaks backward compatibility,
161
+ a new version should be immediately released that restores compatibility.
162
+ Breaking changes to the public API will only be introduced with new major versions.
163
+
164
+ To get a better understanding of how SemVer is intended to work over a project's lifetime,
165
+ read this article from the creator of SemVer:
166
+
167
+ - ["Major Version Numbers are Not Sacred"][📌major-versions-not-sacred]
168
+
169
+ As a result of this policy, you can (and should) specify a dependency on these libraries using
170
+ the [Pessimistic Version Constraint][📌pvc] with two digits of precision.
171
+
172
+ For example:
173
+
174
+ ```ruby
175
+ spec.add_dependency("activesupport-tagged_logging", "~> 1.0")
176
+ ```
177
+
178
+ See [CHANGELOG.md][📌changelog] for list of releases.
179
+
180
+ [comment]: <> ( 📌 VERSIONING LINKS )
181
+
182
+ [📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
183
+ [📌semver]: http://semver.org/
184
+ [📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
185
+ [📌changelog]: CHANGELOG.md
186
+
187
+ ## 📄 License
188
+
189
+ The gem is available as open source under the terms of
190
+ the [MIT License][📄license] [![License: MIT][📄license-img]][📄license-ref].
191
+
192
+ See [LICENSE.txt][📄license] for the official [Copyright Notice][📄copyright-notice-explainer].
193
+
194
+ [comment]: <> ( 📄 LEGAL LINKS )
195
+
196
+ [📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
197
+ [📄license]: LICENSE.txt
198
+ [📄license-ref]: https://opensource.org/licenses/MIT
199
+ [📄license-img]: https://img.shields.io/badge/License-MIT-green.svg
200
+
201
+ ### © Copyright
202
+
203
+ * Copyright (c) David Heinemeier Hansson
204
+ * Parts original to this extraction are:
205
+ * Copyright (c) 2024 [Peter H. Boling][peterboling] of [Rails Bling][railsbling]
206
+
207
+ [railsbling]: http://www.railsbling.com
208
+ [peterboling]: http://www.peterboling.com
209
+ [bundle-group-pattern]: https://gist.github.com/pboling/4564780
210
+ [documentation]: http://rubydoc.info/gems/activesupport-tagged_logging
211
+ [homepage]: https://github.com/pboling/activesupport-tagged_logging
212
+
213
+ ## 🤑 One more thing
214
+
215
+ You made it to the bottom of the page,
216
+ so perhaps you'll indulge me for another 20 seconds.
217
+ I maintain many dozens of gems, including this one,
218
+ because I want Ruby to be a great place for people to solve problems, big and small.
219
+ Please consider supporting my efforts via the giant yellow link below,
220
+ or one of the others at the head of this README.
221
+
222
+ [![Buy me a latte][🖇buyme-img]][🖇buyme]
223
+
224
+ [🖇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
225
+ [🖇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,11 @@
1
+ # Support for tagged logging from broadcast logging.
2
+ # ActiveSupport::FixPr53105.init
3
+ # See: https://github.com/rails/rails/pull/53105
4
+ module ActiveSupport
5
+ module FixPr53105
6
+ def init
7
+ require_relative "tagged_logging/broadcasting"
8
+ end
9
+ module_function :init
10
+ end
11
+ end
@@ -0,0 +1,75 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveSupport
4
+ module IsolatedExecutionState # :nodoc:
5
+ @isolation_level = nil
6
+
7
+ Thread.attr_accessor(:active_support_execution_state)
8
+ Fiber.attr_accessor(:active_support_execution_state)
9
+
10
+ class << self
11
+ attr_reader :isolation_level, :scope
12
+
13
+ def isolation_level=(level)
14
+ return if level == @isolation_level
15
+
16
+ unless %i(thread fiber).include?(level)
17
+ raise ArgumentError, "isolation_level must be `:thread` or `:fiber`, got: `#{level.inspect}`"
18
+ end
19
+
20
+ clear if @isolation_level
21
+
22
+ @scope =
23
+ case level
24
+ when :thread then Thread
25
+ when :fiber then Fiber
26
+ end
27
+
28
+ @isolation_level = level
29
+ end
30
+
31
+ def unique_id
32
+ self[:__id__] ||= Object.new
33
+ end
34
+
35
+ def [](key)
36
+ state[key]
37
+ end
38
+
39
+ def []=(key, value)
40
+ state[key] = value
41
+ end
42
+
43
+ def key?(key)
44
+ state.key?(key)
45
+ end
46
+
47
+ def delete(key)
48
+ state.delete(key)
49
+ end
50
+
51
+ def clear
52
+ state.clear
53
+ end
54
+
55
+ def context
56
+ scope.current
57
+ end
58
+
59
+ def share_with(other)
60
+ # Action Controller streaming spawns a new thread and copy thread locals.
61
+ # We do the same here for backward compatibility, but this is very much a hack
62
+ # and streaming should be rethought.
63
+ context.active_support_execution_state = other.active_support_execution_state.dup
64
+ end
65
+
66
+ private
67
+
68
+ def state
69
+ context.active_support_execution_state ||= {}
70
+ end
71
+ end
72
+
73
+ self.isolation_level = :thread
74
+ end
75
+ end
@@ -0,0 +1,33 @@
1
+ if defined?(ActiveSupport::BroadcastLogger)
2
+ module ActiveSupport
3
+ module TaggedLogging
4
+ # This module is included in ActiveSupport::BroadcastLogger to enable
5
+ # broadcasting to tagged loggers with equivalent semantics.
6
+ module Broadcasting
7
+ def tagged(*tags, &block)
8
+ return super unless broadcasts.any? { |logger| logger.respond_to?(:tagged) }
9
+
10
+ if block_given?
11
+ # `tagged(...) { |logger| ... }` yields itself to the block
12
+ broadcasts.inject(block) do |block, logger|
13
+ if logger.respond_to?(:tagged)
14
+ proc { logger.tagged(*tags) { block.call(self) } }
15
+ else
16
+ block
17
+ end
18
+ end.call
19
+ else
20
+ # `tagged(...) returns a new logger with the tags pushed
21
+ self.class.new(*broadcasts.map { |logger|
22
+ logger.respond_to?(:tagged) ? logger.tagged(*tags) : logger
23
+ })
24
+ end
25
+ end
26
+ end
27
+ end
28
+ end
29
+
30
+ ActiveSupport::BroadcastLogger.include(ActiveSupport::TaggedLogging::Broadcasting)
31
+ else
32
+ warn "[Activesupport::TaggedLogging] ActiveSupport::BroadcastLogger is not available, therefore broadcasting to tagged loggers is not supported."
33
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Activesupport
4
+ module TaggedLogging
5
+ module Version
6
+ VERSION = "1.0.0"
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,153 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ActiveSupport
4
+ # = Active Support Tagged Logging
5
+ #
6
+ # Wraps any standard Logger object to provide tagging capabilities.
7
+ #
8
+ # May be called with a block:
9
+ #
10
+ # logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
11
+ # logger.tagged('BCX') { logger.info 'Stuff' } # Logs "[BCX] Stuff"
12
+ # logger.tagged('BCX', "Jason") { |tagged_logger| tagged_logger.info 'Stuff' } # Logs "[BCX] [Jason] Stuff"
13
+ # logger.tagged('BCX') { logger.tagged('Jason') { logger.info 'Stuff' } } # Logs "[BCX] [Jason] Stuff"
14
+ #
15
+ # If called without a block, a new logger will be returned with applied tags:
16
+ #
17
+ # logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
18
+ # logger.tagged("BCX").info "Stuff" # Logs "[BCX] Stuff"
19
+ # logger.tagged("BCX", "Jason").info "Stuff" # Logs "[BCX] [Jason] Stuff"
20
+ # logger.tagged("BCX").tagged("Jason").info "Stuff" # Logs "[BCX] [Jason] Stuff"
21
+ #
22
+ # This is used by the default Rails.logger as configured by Railties to make
23
+ # it easy to stamp log lines with subdomains, request ids, and anything else
24
+ # to aid debugging of multi-user production applications.
25
+ module TaggedLogging
26
+ module Formatter # :nodoc:
27
+ # This method is invoked when a log event occurs.
28
+ def call(severity, timestamp, progname, msg)
29
+ super(severity, timestamp, progname, tag_stack.format_message(msg.to_s))
30
+ end
31
+
32
+ def tagged(*tags)
33
+ pushed_count = tag_stack.push_tags(tags).size
34
+ yield self
35
+ ensure
36
+ pop_tags(pushed_count)
37
+ end
38
+
39
+ def push_tags(*tags)
40
+ tag_stack.push_tags(tags)
41
+ end
42
+
43
+ def pop_tags(count = 1)
44
+ tag_stack.pop_tags(count)
45
+ end
46
+
47
+ def clear_tags!
48
+ tag_stack.clear
49
+ end
50
+
51
+ def tag_stack
52
+ # We use our object ID here to avoid conflicting with other instances
53
+ @thread_key ||= "activesupport_tagged_logging_tags:#{object_id}"
54
+ IsolatedExecutionState[@thread_key] ||= TagStack.new
55
+ end
56
+
57
+ def current_tags
58
+ tag_stack.tags
59
+ end
60
+
61
+ def tags_text
62
+ tag_stack.format_message("")
63
+ end
64
+ end
65
+
66
+ class TagStack # :nodoc:
67
+ attr_reader :tags
68
+
69
+ def initialize
70
+ @tags = []
71
+ @tags_string = nil
72
+ end
73
+
74
+ def push_tags(tags)
75
+ @tags_string = nil
76
+ tags.flatten!
77
+ tags.reject!(&:blank?)
78
+ @tags.concat(tags)
79
+ tags
80
+ end
81
+
82
+ def pop_tags(count)
83
+ @tags_string = nil
84
+ @tags.pop(count)
85
+ end
86
+
87
+ def clear
88
+ @tags_string = nil
89
+ @tags.clear
90
+ end
91
+
92
+ def format_message(message)
93
+ if @tags.empty?
94
+ message
95
+ elsif @tags.size == 1
96
+ "[#{@tags[0]}] #{message}"
97
+ else
98
+ @tags_string ||= "[#{@tags.join("] [")}] "
99
+ "#{@tags_string}#{message}"
100
+ end
101
+ end
102
+ end
103
+
104
+ module LocalTagStorage # :nodoc:
105
+ attr_accessor :tag_stack
106
+
107
+ def self.extended(base)
108
+ base.tag_stack = TagStack.new
109
+ end
110
+ end
111
+
112
+ # Returns an `ActiveSupport::Logger` that has already been wrapped with tagged logging concern.
113
+ def self.logger(*args, **kwargs)
114
+ new(ActiveSupport::Logger.new(*args, **kwargs))
115
+ end
116
+
117
+ def self.new(logger)
118
+ logger = logger.clone
119
+
120
+ if logger.formatter
121
+ logger.formatter = logger.formatter.clone
122
+
123
+ # Workaround for https://bugs.ruby-lang.org/issues/20250
124
+ # Can be removed when Ruby 3.4 is the least supported version.
125
+ logger.formatter.object_id if logger.formatter.is_a?(Proc)
126
+ else
127
+ # Ensure we set a default formatter so we aren't extending nil!
128
+ logger.formatter = ActiveSupport::Logger::SimpleFormatter.new
129
+ end
130
+
131
+ logger.formatter.extend(Formatter)
132
+ logger.extend(self)
133
+ end
134
+
135
+ delegate :push_tags, :pop_tags, :clear_tags!, to: :formatter
136
+
137
+ def tagged(*tags)
138
+ if block_given?
139
+ formatter.tagged(*tags) { yield self }
140
+ else
141
+ logger = ActiveSupport::TaggedLogging.new(self)
142
+ logger.formatter.extend(LocalTagStorage)
143
+ logger.push_tags(*formatter.current_tags, *tags)
144
+ logger
145
+ end
146
+ end
147
+
148
+ def flush
149
+ clear_tags!
150
+ super if defined?(super)
151
+ end
152
+ end
153
+ end
@@ -0,0 +1,53 @@
1
+ # External libraries
2
+ require "active_support/version"
3
+ require "version_gem"
4
+
5
+ # This library
6
+ require_relative "activesupport/tagged_logging/version"
7
+
8
+ # This gem doesn't do anything unless Rails is < v8
9
+ if ActiveSupport.version < "8"
10
+ # Loads supporting features from Rails v5, 6, or 7
11
+ require "active_support/core_ext/module/delegation"
12
+ require "active_support/core_ext/object/blank"
13
+
14
+ # Require the extracted-from-Rails-8 ActiveSupport::Logger
15
+ require "activesupport-logger"
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/tagged_logging"
20
+
21
+ # !!ORDER MATTERS!!
22
+ #
23
+ # Extracted from:
24
+ # https://github.com/rails/rails/blob/6b7b019e07fcea00ab448ff772402a9ff7614f9e/activesupport/lib/active_support/isolated_execution_state.rb
25
+ # Compare SHA with latest commit to check for changes:
26
+ # https://github.com/rails/rails/blob/main/activesupport/lib/active_support/isolated_execution_state.rb
27
+ require_relative "activesupport/isolated_execution_state"
28
+
29
+ # Extracted from:
30
+ # https://github.com/rails/rails/blob/592a52b9370df79787d74b1bac9b201891c45054/activesupport/lib/active_support/tagged_logging.rb
31
+ # Compare SHA with latest commit to check for changes:
32
+ # https://github.com/rails/rails/blob/main/activesupport/lib/active_support/tagged_logging.rb
33
+ #
34
+ # All this reloading might print warnings about redefined methods, and this is expected.
35
+ # Technically it might even break things, but we don't expect it to, and YMMV.
36
+ require_relative "activesupport/tagged_logging"
37
+
38
+ # If you want to use the fix in the PR, run:
39
+ # ActiveSupport::FixPr53105.init
40
+ # See: https://github.com/rails/rails/pull/53105/files
41
+ require_relative "activesupport/fix_pr_53105"
42
+
43
+ # Fallback to the original
44
+ require "active_support/tagged_logging"
45
+ end
46
+
47
+ # Namespace for the Version of this gem (and nothing else)
48
+ module Activesupport
49
+ end
50
+
51
+ Activesupport::TaggedLogging::Version.class_eval do
52
+ extend VersionGem::Basic
53
+ end
data.tar.gz.sig ADDED
Binary file
metadata ADDED
@@ -0,0 +1,324 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activesupport-tagged_logging
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: activesupport-logger
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '1.0'
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: 1.0.1
65
+ type: :runtime
66
+ prerelease: false
67
+ version_requirements: !ruby/object:Gem::Requirement
68
+ requirements:
69
+ - - "~>"
70
+ - !ruby/object:Gem::Version
71
+ version: '1.0'
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: 1.0.1
75
+ - !ruby/object:Gem::Dependency
76
+ name: version_gem
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '1.1'
82
+ - - ">="
83
+ - !ruby/object:Gem::Version
84
+ version: 1.1.4
85
+ type: :runtime
86
+ prerelease: false
87
+ version_requirements: !ruby/object:Gem::Requirement
88
+ requirements:
89
+ - - "~>"
90
+ - !ruby/object:Gem::Version
91
+ version: '1.1'
92
+ - - ">="
93
+ - !ruby/object:Gem::Version
94
+ version: 1.1.4
95
+ - !ruby/object:Gem::Dependency
96
+ name: yard
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '0.9'
102
+ - - ">="
103
+ - !ruby/object:Gem::Version
104
+ version: 0.9.34
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: '0.9'
112
+ - - ">="
113
+ - !ruby/object:Gem::Version
114
+ version: 0.9.34
115
+ - !ruby/object:Gem::Dependency
116
+ name: yard-junk
117
+ requirement: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - "~>"
120
+ - !ruby/object:Gem::Version
121
+ version: 0.0.10
122
+ type: :development
123
+ prerelease: false
124
+ version_requirements: !ruby/object:Gem::Requirement
125
+ requirements:
126
+ - - "~>"
127
+ - !ruby/object:Gem::Version
128
+ version: 0.0.10
129
+ - !ruby/object:Gem::Dependency
130
+ name: kettle-soup-cover
131
+ requirement: !ruby/object:Gem::Requirement
132
+ requirements:
133
+ - - "~>"
134
+ - !ruby/object:Gem::Version
135
+ version: '1.0'
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: 1.0.2
139
+ type: :development
140
+ prerelease: false
141
+ version_requirements: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '1.0'
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ version: 1.0.2
149
+ - !ruby/object:Gem::Dependency
150
+ name: method_source
151
+ requirement: !ruby/object:Gem::Requirement
152
+ requirements:
153
+ - - ">="
154
+ - !ruby/object:Gem::Version
155
+ version: 1.1.0
156
+ type: :development
157
+ prerelease: false
158
+ version_requirements: !ruby/object:Gem::Requirement
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ version: 1.1.0
163
+ - !ruby/object:Gem::Dependency
164
+ name: rake
165
+ requirement: !ruby/object:Gem::Requirement
166
+ requirements:
167
+ - - ">="
168
+ - !ruby/object:Gem::Version
169
+ version: '10'
170
+ type: :development
171
+ prerelease: false
172
+ version_requirements: !ruby/object:Gem::Requirement
173
+ requirements:
174
+ - - ">="
175
+ - !ruby/object:Gem::Version
176
+ version: '10'
177
+ - !ruby/object:Gem::Dependency
178
+ name: rspec
179
+ requirement: !ruby/object:Gem::Requirement
180
+ requirements:
181
+ - - "~>"
182
+ - !ruby/object:Gem::Version
183
+ version: '3.13'
184
+ type: :development
185
+ prerelease: false
186
+ version_requirements: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - "~>"
189
+ - !ruby/object:Gem::Version
190
+ version: '3.13'
191
+ - !ruby/object:Gem::Dependency
192
+ name: rspec-block_is_expected
193
+ requirement: !ruby/object:Gem::Requirement
194
+ requirements:
195
+ - - "~>"
196
+ - !ruby/object:Gem::Version
197
+ version: '1.0'
198
+ - - ">="
199
+ - !ruby/object:Gem::Version
200
+ version: 1.0.6
201
+ type: :development
202
+ prerelease: false
203
+ version_requirements: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - "~>"
206
+ - !ruby/object:Gem::Version
207
+ version: '1.0'
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: 1.0.6
211
+ - !ruby/object:Gem::Dependency
212
+ name: rubocop-lts
213
+ requirement: !ruby/object:Gem::Requirement
214
+ requirements:
215
+ - - "~>"
216
+ - !ruby/object:Gem::Version
217
+ version: '10.1'
218
+ type: :development
219
+ prerelease: false
220
+ version_requirements: !ruby/object:Gem::Requirement
221
+ requirements:
222
+ - - "~>"
223
+ - !ruby/object:Gem::Version
224
+ version: '10.1'
225
+ - !ruby/object:Gem::Dependency
226
+ name: rubocop-packaging
227
+ requirement: !ruby/object:Gem::Requirement
228
+ requirements:
229
+ - - "~>"
230
+ - !ruby/object:Gem::Version
231
+ version: '0.5'
232
+ - - ">="
233
+ - !ruby/object:Gem::Version
234
+ version: 0.5.2
235
+ type: :development
236
+ prerelease: false
237
+ version_requirements: !ruby/object:Gem::Requirement
238
+ requirements:
239
+ - - "~>"
240
+ - !ruby/object:Gem::Version
241
+ version: '0.5'
242
+ - - ">="
243
+ - !ruby/object:Gem::Version
244
+ version: 0.5.2
245
+ - !ruby/object:Gem::Dependency
246
+ name: rubocop-rspec
247
+ requirement: !ruby/object:Gem::Requirement
248
+ requirements:
249
+ - - "~>"
250
+ - !ruby/object:Gem::Version
251
+ version: '3.0'
252
+ type: :development
253
+ prerelease: false
254
+ version_requirements: !ruby/object:Gem::Requirement
255
+ requirements:
256
+ - - "~>"
257
+ - !ruby/object:Gem::Version
258
+ version: '3.0'
259
+ - !ruby/object:Gem::Dependency
260
+ name: standard
261
+ requirement: !ruby/object:Gem::Requirement
262
+ requirements:
263
+ - - "~>"
264
+ - !ruby/object:Gem::Version
265
+ version: '1.40'
266
+ type: :development
267
+ prerelease: false
268
+ version_requirements: !ruby/object:Gem::Requirement
269
+ requirements:
270
+ - - "~>"
271
+ - !ruby/object:Gem::Version
272
+ version: '1.40'
273
+ description: Rails v8 ActiveSupport::TaggedLogging backported to Rails v5.2+ & Ruby
274
+ 2.7+
275
+ email:
276
+ - peter.boling@gmail.com
277
+ executables: []
278
+ extensions: []
279
+ extra_rdoc_files: []
280
+ files:
281
+ - CHANGELOG.md
282
+ - CODE_OF_CONDUCT.md
283
+ - CONTRIBUTING.md
284
+ - LICENSE.txt
285
+ - README.md
286
+ - SECURITY.md
287
+ - lib/activesupport-tagged_logging.rb
288
+ - lib/activesupport/fix_pr_53105.rb
289
+ - lib/activesupport/isolated_execution_state.rb
290
+ - lib/activesupport/tagged_logging.rb
291
+ - lib/activesupport/tagged_logging/broadcasting.rb
292
+ - lib/activesupport/tagged_logging/version.rb
293
+ homepage: https://github.com/pboling/activesupport-tagged_logging
294
+ licenses:
295
+ - MIT
296
+ metadata:
297
+ homepage_uri: https://github.com/pboling/activesupport-tagged_logging
298
+ source_code_uri: https://github.com/pboling/activesupport-tagged_logging/tree/v1.0.0
299
+ changelog_uri: https://github.com/pboling/activesupport-tagged_logging/blob/v1.0.0/CHANGELOG.md
300
+ bug_tracker_uri: https://github.com/pboling/activesupport-tagged_logging/issues
301
+ documentation_uri: https://www.rubydoc.info/gems/activesupport-tagged_logging/1.0.0
302
+ wiki_uri: https://github.com/pboling/activesupport-tagged_logging/wiki
303
+ funding_uri: https://liberapay.com/pboling
304
+ rubygems_mfa_required: 'true'
305
+ post_install_message:
306
+ rdoc_options: []
307
+ require_paths:
308
+ - lib
309
+ required_ruby_version: !ruby/object:Gem::Requirement
310
+ requirements:
311
+ - - ">="
312
+ - !ruby/object:Gem::Version
313
+ version: 2.7.0
314
+ required_rubygems_version: !ruby/object:Gem::Requirement
315
+ requirements:
316
+ - - ">="
317
+ - !ruby/object:Gem::Version
318
+ version: '0'
319
+ requirements: []
320
+ rubygems_version: 3.5.20
321
+ signing_key:
322
+ specification_version: 4
323
+ summary: Rails v8 ActiveSupport::TaggedLogging backported to Rails v5.2+ & Ruby 2.7+
324
+ test_files: []
metadata.gz.sig ADDED
Binary file