debug_logging 3.1.8 → 4.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 12a45427d0ca5aea996bd2ddce9da4ae3f763afe2e5b0abefea2173f6765ff61
4
- data.tar.gz: 1a9d1a08b5f49daaa6f01c10c48b3a5345794a46f9b62f25243f13e6ebacd694
3
+ metadata.gz: 80eec636fd64a69b41aaf67704b79c784bc5ffa989e181c51106bc908bc645c8
4
+ data.tar.gz: 8feca3ec5aadd298bc0da9f75631834f4a16bd73aa9d39572c8caf72ec2834b4
5
5
  SHA512:
6
- metadata.gz: f55f81ffe673ec404dd49fc26db2778abf3311a3f7f148a85c5030369cb469b8570c8728db5526b838caf2e09b22e04ad314ab27c462b8b246905e00945b2d9a
7
- data.tar.gz: c5bc397f5b50d19551d7db9b6d7fe9cafa034ff36cbac2551d9c2a52d0e9a9f70992d0efb49a46fabf6830f76818b15eaf6653be9fee38aad415af9d2f92510a
6
+ metadata.gz: bd13ad1dca5706140626730a48dc4e9133efc5e3db3d55f64b4c79f3a0bb21765d82a237c2a021d93ec2b4d0632d4a0a4bc5a3c28ef2bad088de9de37d6fdc3e
7
+ data.tar.gz: 9be10f369557ed872853e387870528c0a64df4981c854b3df6b27d22f0d24eac741d51e69beec9c6e6cfd2398748838d47ac5955df951d906d77378f60d4331a
checksums.yaml.gz.sig ADDED
Binary file
data/CHANGELOG.md ADDED
@@ -0,0 +1,160 @@
1
+ # Changelog
2
+
3
+ All notable changes to this project will be documented in this file.
4
+
5
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
+
8
+ ## [Unreleased]
9
+ ### Added
10
+ ### Changed
11
+ ### Fixed
12
+ ### Removed
13
+
14
+ ## [4.0.0] - unreleased
15
+ ### Added
16
+ - Class method DSL:
17
+ - `logged`
18
+ - Instance method DSL:
19
+ - `i_logged`
20
+ ### Changed
21
+ - Class method DSL renamed:
22
+ - `notifies` => `notified`
23
+ - Instance method DSL renamed:
24
+ - `i_notifies` => `i_notified`
25
+ - Disambiguated class method log output send message separator:
26
+ - `.` => `::`, because `.` is ambiguous; same call syntax used for instance method calls
27
+ ### Fixed
28
+ - Per method config for every decorated method
29
+ ### Removed
30
+ - Support for `include DebugLogging::InstanceLogger.new(...)`
31
+ - Support for `include DebugLogging::InstanceNotifier.new(...)`
32
+
33
+ ## [3.1.9] - 2023-10-31
34
+ ### Fixed
35
+ - Maximum Ruby version is 2.7. Versions 3.x are not compatible with Ruby >= 3
36
+
37
+ ## [3.1.8] - 2020-12-19
38
+
39
+ ## [3.1.7] - 2020-12-19
40
+
41
+ ## [3.1.6] - tagged, but unreleased
42
+
43
+ ## [3.1.5] - 2020-12-18
44
+
45
+ ## [3.1.4] - 2020-12-18
46
+
47
+ ## [3.1.3] - 2020-12-18
48
+
49
+ ## [3.1.2] - 2020-12-10
50
+
51
+ ## [3.1.1] - 2020-12-09
52
+
53
+ ## [3.1.0] - 2020-10-24
54
+
55
+ ## [3.0.0] - 2020-10-07
56
+
57
+ ## [2.0.0] - 2020-10-06
58
+
59
+ ## [1.0.17] - 2018-09-10
60
+
61
+ ## [1.0.16] - 2018-01-16
62
+
63
+ ## [1.0.15] - 2017-10-17
64
+
65
+ ## [1.0.14] - 2017-10-09
66
+
67
+ ## [1.0.13] - 2017-10-08
68
+
69
+ ## [1.0.12] - 2017-10-08
70
+
71
+ ## [1.0.11] - 2017-10-06
72
+
73
+ ## [1.0.10] - 2017-09-26
74
+
75
+ ## [1.0.9] - 2017-09-06
76
+
77
+ ## [1.0.8] - 2017-09-06
78
+
79
+ ## [1.0.7] - 2017-09-06
80
+
81
+ ## [1.0.6] - 2017-09-05
82
+
83
+ ## [1.0.5] ([tag][1.0.1t]) - 2017-03-31
84
+
85
+ ## [1.0.4] ([tag][1.0.4t]) - 2017-03-31
86
+
87
+ ## [1.0.3] ([tag][1.0.3t]) - 2017-03-31
88
+
89
+ ## [1.0.2] ([tag][1.0.2t]) - 2017-03-30
90
+
91
+ ## [1.0.1] ([tag][1.0.1t]) - 2017-03-29
92
+
93
+ ## [1.0.0] ([tag][1.0.0t]) - 2017-03-26
94
+
95
+ ## [0.1.0] ([tag][0.1.0t]) - 2017-03-25
96
+ - Initial release
97
+
98
+ [Unreleased]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.1.9...HEAD
99
+ [3.1.9t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.1.9
100
+ [3.1.9]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.1.8...v3.1.9
101
+ [3.1.8t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.1.8
102
+ [3.1.8]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.1.7...v3.1.8
103
+ [3.1.7t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.1.7
104
+ [3.1.7]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.1.6...v3.1.7
105
+ [3.1.6t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.1.6
106
+ [3.1.6]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.1.5...v3.1.6
107
+ [3.1.5t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.1.5
108
+ [3.1.5]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.1.4...v3.1.5
109
+ [3.1.4t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.1.4
110
+ [3.1.4]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.1.3...v3.1.4
111
+ [3.1.3t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.1.3
112
+ [3.1.3]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.1.2...v3.1.3
113
+ [3.1.2t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.1.2
114
+ [3.1.2]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.1.1...v3.1.2
115
+ [3.1.1t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.1.1
116
+ [3.1.1]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.1.0...v3.1.1
117
+ [3.1.0t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.1.0
118
+ [3.1.0]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v3.0.0...v3.1.0
119
+ [3.0.0t]: https://gitlab.com/pboling/debug_logging/-/tags/v3.0.0
120
+ [3.0.0]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v2.0.0...v3.0.0
121
+ [2.0.0t]: https://gitlab.com/pboling/debug_logging/-/tags/v2.0.0
122
+ [2.0.0]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.17...v2.0.0
123
+ [1.0.17t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.17
124
+ [1.0.17]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.16...v1.0.17
125
+ [1.0.16t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.16
126
+ [1.0.16]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.15...v1.0.16
127
+ [1.0.15t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.15
128
+ [1.0.15]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.14...v1.0.15
129
+ [1.0.14t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.14
130
+ [1.0.14]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.13...v1.0.14
131
+ [1.0.13t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.13
132
+ [1.0.13]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.12...v1.0.13
133
+ [1.0.12t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.12
134
+ [1.0.12]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.11...v1.0.12
135
+ [1.0.11t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.11
136
+ [1.0.11]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.10...v1.0.11
137
+ [1.0.10t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.10
138
+ [1.0.10]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.9...v1.0.10
139
+ [1.0.9t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.9
140
+ [1.0.9]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.8...v1.0.9
141
+ [1.0.8t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.8
142
+ [1.0.8]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.7...v1.0.8
143
+ [1.0.7t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.7
144
+ [1.0.7]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.6...v1.0.7
145
+ [1.0.6t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.6
146
+ [1.0.6]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.5...v1.0.6
147
+ [1.0.5t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.5
148
+ [1.0.5]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.4...v1.0.5
149
+ [1.0.4t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.4
150
+ [1.0.4]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.3...v1.0.4
151
+ [1.0.3t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.3
152
+ [1.0.3]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.2...v1.0.3
153
+ [1.0.2t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.2
154
+ [1.0.2]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.1...v1.0.2
155
+ [1.0.1t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.1
156
+ [1.0.1]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v1.0.0...v1.0.1
157
+ [1.0.0t]: https://gitlab.com/pboling/debug_logging/-/tags/v1.0.0
158
+ [1.0.0]: https://gitlab.com/kettle-rb/kettle-soup-cover/-/compare/v0.1.0...v1.0.0
159
+ [0.1.0t]: https://gitlab.com/pboling/debug_logging/-/tags/v0.1.0
160
+ [0.1.0]: https://gitlab.com/pboling/debug_logging/-/compare/f648ea6832aa85232d320b4c4acc4a84e44a83d3...v0.1.0
@@ -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,47 @@
1
+ ## Contributing
2
+
3
+ Bug reports and pull requests are welcome on GitHub at [https://github.com/pboling/debug_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. Once you're happy with it send a pull request
8
+ and post a message to the [gitter chat][🏘chat].
9
+
10
+ ## Release
11
+
12
+ To release a new version:
13
+
14
+ 1. Run `bin/setup && bin/rake` as a tests, coverage, & linting sanity check
15
+ 2. Update the version number in `version.rb`
16
+ 3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
17
+ 4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
18
+ 5. Run `git push` to trigger the final CI pipeline before release, & merge PRs
19
+ a. NOTE: Remember to [check the build][🧪build]!
20
+ 6. Run `git checkout main` (Or whichever branch is considered `trunk`, e.g. `master`)
21
+ 7. Run `git pull origin main` to ensure you will release the latest trunk code.
22
+ 8. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
23
+ a. Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS`
24
+ 9. Run `bundle exec rake build`
25
+ 10. Run [`bin/checksums`](https://github.com/rubygems/guides/pull/325) to create SHA-256 and SHA-512 checksums
26
+ a. Checksums will be committed automatically by the script, but not pushed
27
+ 11. Run `bundle exec rake release` which will create a git tag for the version,
28
+ push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
29
+
30
+ NOTE: You will need to have a public key in `certs/`, and list your cert in the
31
+ `gemspec`, in order to sign the new release.
32
+ See: [RubyGems Security Guide][🔒️rubygems-security-guide]
33
+
34
+ ## Contributors
35
+
36
+ [![Contributors](https://contrib.rocks/image?repo=pboling/debug_logging)][🖐contributors]
37
+
38
+ Made with [contributors-img][🖐contrib-rocks].
39
+
40
+ [🧪build]: https://github.com/pboling/debug_logging/actions
41
+ [🏘chat]: https://matrix.to/#/%23pboling_debug_logging:gitter.im
42
+ [🤝conduct]: https://github.com/pboling/debug_logging/blob/main/CODE_OF_CONDUCT.md
43
+ [🖐contrib-rocks]: https://contrib.rocks
44
+ [🖐contributors]: https://github.com/pboling/debug_logging/graphs/contributors
45
+ [💎rubygems]: https://rubygems.org
46
+ [🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
47
+ [🚎src-main]: https://github.com/pboling/debug_logging
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017-2024 Peter Boling (railsbling.com)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.