silent_stream 1.0.7 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/CHANGELOG.md +53 -0
- data/CODE_OF_CONDUCT.md +107 -46
- data/CONTRIBUTING.md +136 -0
- data/LICENSE.txt +21 -0
- data/README.md +329 -57
- data/SECURITY.md +21 -0
- data/lib/silent_stream/version.rb +1 -1
- data/lib/silent_stream.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +92 -114
- metadata.gz.sig +0 -0
- data/.gitignore +0 -21
- data/.rubocop.yml +0 -4
- data/.rubocop_gradual.lock +0 -33
- data/.tool-versions +0 -1
- data/.travis.yml +0 -38
- data/Appraisals +0 -26
- data/Gemfile +0 -11
- data/LICENSE +0 -7
- data/Rakefile +0 -11
- data/bin/console +0 -15
- data/bin/setup +0 -8
- data/gemfiles/ruby_2.3.gemfile +0 -10
- data/gemfiles/ruby_2.4.gemfile +0 -10
- data/gemfiles/ruby_2.5.gemfile +0 -10
- data/gemfiles/ruby_2.6.gemfile +0 -10
- data/gemfiles/ruby_2.7.gemfile +0 -10
- data/silent_stream.gemspec +0 -83
data/README.md
CHANGED
@@ -1,27 +1,55 @@
|
|
1
1
|
# SilentStream
|
2
2
|
|
3
|
+
[![Version][👽versioni]][👽version]
|
4
|
+
[![License: MIT][📄license-img]][📄license-ref]
|
5
|
+
[![Downloads Rank][👽dl-ranki]][👽dl-rank]
|
6
|
+
[![Open Source Helpers][👽oss-helpi]][👽oss-help]
|
7
|
+
[![Depfu][🔑depfui♻️]][🔑depfu]
|
8
|
+
[![CodeCov Test Coverage][🔑codecovi♻️]][🔑codecov]
|
9
|
+
[![Coveralls Test Coverage][🔑coveralls-img]][🔑coveralls]
|
10
|
+
[![CodeClimate Test Coverage][🔑cc-covi♻️]][🔑cc-cov]
|
11
|
+
[![Maintainability][🔑cc-mnti♻️]][🔑cc-mnt]
|
12
|
+
[![CI Heads][🚎3-hd-wfi]][🚎3-hd-wf]
|
13
|
+
[![CI Current][🚎11-c-wfi]][🚎11-c-wf]
|
14
|
+
[![CI Truffle Ruby][🚎9-t-wfi]][🚎9-t-wf]
|
15
|
+
[![CI JRuby][🚎10-j-wfi]][🚎10-j-wf]
|
16
|
+
[![CI Supported][🚎6-s-wfi]][🚎6-s-wf]
|
17
|
+
[![CI Legacy][🚎4-lg-wfi]][🚎4-lg-wf]
|
18
|
+
[![CI Unsupported][🚎7-us-wfi]][🚎7-us-wf]
|
19
|
+
[![CI Ancient][🚎1-an-wfi]][🚎1-an-wf]
|
20
|
+
[![CI Test Coverage][🚎2-cov-wfi]][🚎2-cov-wf]
|
21
|
+
[![CI Style][🚎5-st-wfi]][🚎5-st-wf]
|
22
|
+
|
23
|
+
---
|
24
|
+
|
25
|
+
[![Liberapay Goal Progress][⛳liberapay-img]][⛳liberapay]
|
26
|
+
[![Sponsor Me on Github][🖇sponsor-img]][🖇sponsor]
|
27
|
+
[![Buy me a coffee][🖇buyme-small-img]][🖇buyme]
|
28
|
+
[![Donate on Polar][🖇polar-img]][🖇polar]
|
29
|
+
[![Donate to my FLOSS or refugee efforts at ko-fi.com][🖇kofi-img]][🖇kofi]
|
30
|
+
[![Donate to my FLOSS or refugee efforts using Patreon][🖇patreon-img]][🖇patreon]
|
31
|
+
|
3
32
|
SilentStream is an extraction of some parts of ActiveSupport's Kernel Reporting Core Extentions around silencing IO streams.
|
4
33
|
|
5
34
|
Since July 2014 `silence_stream`, `silence_stderr`, `capture`, `silence`, and `quietly` have been deprecated because they are not thread safe. See that discussion in the [PR where it all went down](https://github.com/rails/rails/pull/13392). I rely on them a lot in *single threaded* code, and so I plan to keep them alive. With the exception of `silence`, which was just an alias of `capture`.
|
6
35
|
|
7
36
|
This gem was taken out of Rails but it is *not* Rails dependent. The extraction was total (**even the tests**!), and this is now a pure Ruby library, which can be used in any Ruby project without encumbrances. *This gem has no runtime dependencies*.
|
8
37
|
|
9
|
-
|
10
|
-
|
11
|
-
|
|
12
|
-
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
38
|
+
## 💡 Info you can shake a stick at
|
39
|
+
|
40
|
+
| Tokens to Remember | [![Gem name][⛳️name-img]][⛳️gem-name] [![Gem namespace][⛳️namespace-img]][⛳️gem-namespace] |
|
41
|
+
|-------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
42
|
+
| Works with JRuby | [![JRuby 9.1 Compat][💎jruby-9.1i]][🚎10-j-wf] [![JRuby 9.2 Compat][💎jruby-9.2i]][🚎10-j-wf] [![JRuby 9.3 Compat][💎jruby-9.3i]][🚎10-j-wf] [![JRuby 9.4 Compat][💎jruby-9.4i]][🚎10-j-wf] [![JRuby 10.0 Compat][💎jruby-c-i]][🚎11-c-wf] [![JRuby HEAD Compat][💎jruby-headi]][🚎3-hd-wf] |
|
43
|
+
| Works with Truffle Ruby | [![Truffle Ruby 22.3 Compat][💎truby-22.3i]][🚎9-t-wf] [![Truffle Ruby 23.0 Compat][💎truby-23.0i]][🚎9-t-wf] [![Truffle Ruby 23.1 Compat][💎truby-23.1i]][🚎9-t-wf] [![Truffle Ruby 24.1 Compat][💎truby-c-i]][🚎11-c-wf] [![Truffle Ruby HEAD Compat][💎truby-headi]][🚎3-hd-wf] |
|
44
|
+
| Works with MRI Ruby 3 | [![Ruby 3.0 Compat][💎ruby-3.0i]][🚎4-lg-wf] [![Ruby 3.1 Compat][💎ruby-3.1i]][🚎6-s-wf] [![Ruby 3.2 Compat][💎ruby-3.2i]][🚎6-s-wf] [![Ruby 3.3 Compat][💎ruby-3.3i]][🚎6-s-wf] [![Ruby 3.4 Compat][💎ruby-c-i]][🚎11-c-wf] [![Ruby HEAD Compat][💎ruby-headi]][🚎3-hd-wf] |
|
45
|
+
| Works with MRI Ruby 2 | [![Ruby 2.3 Compat][💎ruby-2.3i]][🚎1-an-wf] [![Ruby 2.4 Compat][💎ruby-2.4i]][🚎1-an-wf] [![Ruby 2.5 Compat][💎ruby-2.5i]][🚎1-an-wf] [![Ruby 2.6 Compat][💎ruby-2.6i]][🚎7-us-wf] [![Ruby 2.7 Compat][💎ruby-2.7i]][🚎7-us-wf] |
|
46
|
+
| Source | [![Source on GitLab.com][📜src-gl-img]][📜src-gl] [![Source on CodeBerg.org][📜src-cb-img]][📜src-cb] [![Source on Github.com][📜src-gh-img]][📜src-gh] [![The best SHA: dQw4w9WgXcQ!][🧮kloc-img]][🧮kloc] |
|
47
|
+
| Documentation | [![Current release on RubyDoc.info][📜docs-cr-rd-img]][🚎yard-current] [![HEAD on RubyDoc.info][📜docs-head-rd-img]][🚎yard-head] [![BDFL Blog][🚂bdfl-blog-img]][🚂bdfl-blog] [![Wiki][📜wiki-img]][📜wiki] |
|
48
|
+
| Compliance | [![License: MIT][📄license-img]][📄license-ref] [![📄ilo-declaration-img]][📄ilo-declaration] [![Security Policy][🔐security-img]][🔐security] [![CodeQL][🖐codeQL-img]][🖐codeQL] [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct] [![SemVer 2.0.0][📌semver-img]][📌semver] [![Keep-A-Changelog 1.0.0][📗keep-changelog-img]][📗keep-changelog] [![Gitmoji Commits][📌gitmoji-img]][📌gitmoji] |
|
49
|
+
| Expert 1:1 Support | [![Get help from me on Upwork][👨🏼🏫expsup-upwork-img]][👨🏼🏫expsup-upwork] `or` [![Get help from me on Codementor][👨🏼🏫expsup-codementor-img]][👨🏼🏫expsup-codementor] |
|
50
|
+
| Enterprise Support | [![Get help from me on Tidelift][🏙️entsup-tidelift-img]][🏙️entsup-tidelift]<br/>💡Subscribe for support guarantees covering _all_ FLOSS dependencies!<br/>💡Tidelift is part of [Sonar][🏙️entsup-tidelift-sonar]!<br/>💡Tidelift pays maintainers to maintain the software you depend on!<br/>📊`@`Pointy Haired Boss: An [enterprise support][🏙️entsup-tidelift] subscription is "[never gonna let you down][🧮kloc]", and *supports* open source maintainers! |
|
51
|
+
| Comrade BDFL 🎖️ | [![Follow Me on LinkedIn][💖🖇linkedin-img]][💖🖇linkedin] [![Follow Me on Ruby.Social][💖🐘ruby-mast-img]][💖🐘ruby-mast] [![Follow Me on Bluesky][💖🦋bluesky-img]][💖🦋bluesky] [![Contact BDFL][🚂bdfl-contact-img]][🚂bdfl-contact] [![My technical writing][💖💁🏼♂️devto-img]][💖💁🏼♂️devto] |
|
52
|
+
| `...` 💖 | [![Find Me on WellFound:][💖✌️wellfound-img]][💖✌️wellfound] [![Find Me on CrunchBase][💖💲crunchbase-img]][💖💲crunchbase] [![My LinkTree][💖🌳linktree-img]][💖🌳linktree] [![More About Me][💖💁🏼♂️aboutme-img]][💖💁🏼♂️aboutme] [🧊][💖🧊berg] [🐙][💖🐙hub] [🛖][💖🛖hut] [🧪][💖🧪lab] |
|
25
53
|
|
26
54
|
## NOTE
|
27
55
|
|
@@ -31,23 +59,46 @@ One aspect of what this gem provides can be achieved with the Rails' built-in [`
|
|
31
59
|
|
32
60
|
The reason for not keeping `silence` as it was in Rails 4, i.e. an alias of `capture`, is that the just mentioned `LoggerSilence` now uses this term, and it is shipping with Rails 5. I don't want to make this gem incompatible with Rails 5, so you will have to convert Rails <= 4 implementations that utilize `silence` over to `capture` when using this gem. One further point of difference is this gem does not add the methods to `Kernel` or `Object`. You can do that if you like via `include`. By default this gem does not pollute anything, so you will need to `include SilentStream` in any class using these methods.
|
33
61
|
|
34
|
-
## Installation
|
62
|
+
## ✨ Installation
|
35
63
|
|
36
|
-
|
64
|
+
Install the gem and add to the application's Gemfile by executing:
|
37
65
|
|
38
|
-
|
39
|
-
|
66
|
+
$ bundle add silent_stream
|
67
|
+
|
68
|
+
If bundler is not being used to manage dependencies, install the gem by executing:
|
69
|
+
|
70
|
+
$ gem install silent_stream
|
71
|
+
|
72
|
+
### 🔒 Secure Installation
|
73
|
+
|
74
|
+
`silent_stream` is cryptographically signed. Be sure the gem you install hasn’t been tampered with
|
75
|
+
by following the instructions below.
|
76
|
+
|
77
|
+
Add my public key (if you haven’t already, expires 2045-04-29) as a trusted certificate:
|
78
|
+
|
79
|
+
```shell
|
80
|
+
gem cert --add <(curl -Ls https://raw.github.com/pboling/silent_stream/master/certs/pboling.pem)
|
40
81
|
```
|
41
82
|
|
42
|
-
|
83
|
+
You only need to do that once. Then proceed to install with:
|
43
84
|
|
44
|
-
|
85
|
+
```shell
|
86
|
+
gem install silent_stream -P MediumSecurity
|
87
|
+
```
|
45
88
|
|
46
|
-
|
89
|
+
The `MediumSecurity` trust profile will verify signed gems, but allow the installation of unsigned dependencies.
|
47
90
|
|
48
|
-
|
91
|
+
This is necessary because not all of `silent_stream`’s dependencies are signed, so we cannot use `HighSecurity`.
|
92
|
+
|
93
|
+
If you want to up your security game full-time:
|
94
|
+
|
95
|
+
```shell
|
96
|
+
bundle config set --global trust-policy MediumSecurity
|
97
|
+
```
|
49
98
|
|
50
|
-
|
99
|
+
NOTE: Be prepared to track down certs for signed gems and add them the same way you added mine.
|
100
|
+
|
101
|
+
## 🔧 Basic Usage
|
51
102
|
|
52
103
|
Four standard methods you may be familiar with from ActiveSupport's previous implementation are provided:
|
53
104
|
|
@@ -104,7 +155,7 @@ play that funky music
|
|
104
155
|
=> nil
|
105
156
|
```
|
106
157
|
|
107
|
-
|
158
|
+
### Use in Specs / Tests
|
108
159
|
|
109
160
|
Make the methods avaialble:
|
110
161
|
```
|
@@ -127,7 +178,7 @@ end
|
|
127
178
|
|
128
179
|
See it in practice in the specs for the [oauth2 gem](https://github.com/oauth-xx/oauth2/blob/master/spec/oauth2/client_spec.rb#L193) and the [debug_logging gem](https://github.com/pboling/debug_logging/blob/master/spec/debug_logging/instance_logger_spec.rb#L10)
|
129
180
|
|
130
|
-
|
181
|
+
### Migrate from ActiveSupport::Testing::Stream, or remove ActiveSupport completely, in your ruby library!
|
131
182
|
|
132
183
|
For most scenarios, simple. Change three lines. Here's an example from a gem I just converted from ActiveSupport to SilentStream ([see commit](https://github.com/pboling/debug_logging/commit/d0cd109e1509084bbcf753be39f2173f0e2878a7))
|
133
184
|
|
@@ -149,31 +200,80 @@ RSpec.configure do |config|
|
|
149
200
|
|
150
201
|
Run spec suite to verify everything is good. This gem is as close as can be to a drop-in replacement for Rails' `ActiveSupport::Testing::Stream`.
|
151
202
|
|
152
|
-
|
203
|
+
### 🚀 Release Instructions
|
204
|
+
|
205
|
+
See [CONTRIBUTING.md][🤝contributing].
|
206
|
+
|
207
|
+
## 🔐 Security
|
208
|
+
|
209
|
+
See [SECURITY.md][🔐security].
|
153
210
|
|
154
|
-
|
211
|
+
## 🤝 Contributing
|
155
212
|
|
156
|
-
|
213
|
+
If you need some ideas of where to help, you could work on adding more code coverage,
|
214
|
+
or if it is already 💯 (see [below](#code-coverage)) check TODOs (see [below](#todos)),
|
215
|
+
or check [issues][🤝issues], or [PRs][🤝pulls],
|
216
|
+
or use the gem and think about how it could be better.
|
157
217
|
|
158
|
-
|
218
|
+
We [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog] so if you make changes, remember to update it.
|
159
219
|
|
160
|
-
|
220
|
+
See [CONTRIBUTING.md][🤝contributing] for more detailed instructions.
|
161
221
|
|
162
|
-
|
222
|
+
### Code Coverage
|
163
223
|
|
164
|
-
|
224
|
+
[![Coverage Graph][🔑codecov-g♻️]][🔑codecov]
|
165
225
|
|
166
|
-
|
226
|
+
### 🪇 Code of Conduct
|
167
227
|
|
168
|
-
|
169
|
-
|
170
|
-
if a minor or patch version is released that breaks backward
|
171
|
-
compatibility, a new version should be immediately released that
|
172
|
-
restores compatibility. Breaking changes to the public API will
|
173
|
-
only be introduced with new major versions.
|
228
|
+
Everyone interacting in this project's codebases, issue trackers,
|
229
|
+
chat rooms and mailing lists is expected to follow the [![Contributor Covenant 2.1][🪇conduct-img]][🪇conduct].
|
174
230
|
|
175
|
-
|
176
|
-
|
231
|
+
## 🌈 Contributors
|
232
|
+
|
233
|
+
[![Contributors][🖐contributors-img]][🖐contributors]
|
234
|
+
|
235
|
+
Made with [contributors-img][🖐contrib-rocks].
|
236
|
+
|
237
|
+
Also see GitLab Contributors: [https://gitlab.com/pboling/silent_stream/-/graphs/master][🚎contributors-gl]
|
238
|
+
|
239
|
+
## ⭐️ Star History
|
240
|
+
|
241
|
+
<a href="https://star-history.com/#pboling/silent_stream&Date">
|
242
|
+
<picture>
|
243
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=pboling/silent_stream&type=Date&theme=dark" />
|
244
|
+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=pboling/silent_stream&type=Date" />
|
245
|
+
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=pboling/silent_stream&type=Date" />
|
246
|
+
</picture>
|
247
|
+
</a>
|
248
|
+
|
249
|
+
## 📌 Versioning
|
250
|
+
|
251
|
+
This Library adheres to [![Semantic Versioning 2.0.0][📌semver-img]][📌semver].
|
252
|
+
Violations of this scheme should be reported as bugs.
|
253
|
+
Specifically, if a minor or patch version is released that breaks backward compatibility,
|
254
|
+
a new version should be immediately released that restores compatibility.
|
255
|
+
Breaking changes to the public API will only be introduced with new major versions.
|
256
|
+
|
257
|
+
### 📌 Is "Platform Support" part of the public API?
|
258
|
+
|
259
|
+
Yes. But I'm obligated to include notes...
|
260
|
+
|
261
|
+
SemVer should, but doesn't explicitly, say that dropping support for specific Platforms
|
262
|
+
is a *breaking change* to an API.
|
263
|
+
It is obvious to many, but not all, and since the spec is silent, the bike shedding is endless.
|
264
|
+
|
265
|
+
> dropping support for a platform is both obviously and objectively a breaking change
|
266
|
+
|
267
|
+
- Jordan Harband (@ljharb, maintainer of SemVer) [in SemVer issue 716][📌semver-breaking]
|
268
|
+
|
269
|
+
To get a better understanding of how SemVer is intended to work over a project's lifetime,
|
270
|
+
read this article from the creator of SemVer:
|
271
|
+
|
272
|
+
- ["Major Version Numbers are Not Sacred"][📌major-versions-not-sacred]
|
273
|
+
|
274
|
+
As a result of this policy, and the interpretive lens used by the maintainer,
|
275
|
+
you can (and should) specify a dependency on these libraries using
|
276
|
+
the [Pessimistic Version Constraint][📌pvc] with two digits of precision.
|
177
277
|
|
178
278
|
For example:
|
179
279
|
|
@@ -181,17 +281,189 @@ For example:
|
|
181
281
|
spec.add_dependency("silent_stream", "~> 1.0")
|
182
282
|
```
|
183
283
|
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
[license]
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
284
|
+
See [CHANGELOG.md][📌changelog] for list of releases.
|
285
|
+
|
286
|
+
## 📄 License
|
287
|
+
|
288
|
+
The gem is available as open source under the terms of
|
289
|
+
the [MIT License][📄license] [![License: MIT][📄license-img]][📄license-ref].
|
290
|
+
See [LICENSE.txt][📄license] for the official [Copyright Notice][📄copyright-notice-explainer].
|
291
|
+
|
292
|
+
### © Copyright
|
293
|
+
|
294
|
+
<p>
|
295
|
+
Copyright (c) 2018 - 2020, 2024 - 2025 Peter H. Boling,
|
296
|
+
<a href="https://railsbling.com">
|
297
|
+
RailsBling.com
|
298
|
+
<picture>
|
299
|
+
<img alt="Rails Bling" height="20" src="https://railsbling.com/images/logos/RailsBling-TrainLogo.svg" />
|
300
|
+
</picture>
|
301
|
+
</a>
|
302
|
+
</p>
|
303
|
+
|
304
|
+
## 🤑 One more thing
|
305
|
+
|
306
|
+
You made it to the bottom of the page,
|
307
|
+
so perhaps you'll indulge me for another 20 seconds.
|
308
|
+
I maintain many dozens of gems, including this one,
|
309
|
+
because I want Ruby to be a great place for people to solve problems, big and small.
|
310
|
+
Please consider supporting my efforts via the giant yellow link below,
|
311
|
+
or one of the others at the head of this README.
|
312
|
+
|
313
|
+
[![Buy me a latte][🖇buyme-img]][🖇buyme]
|
314
|
+
|
315
|
+
[✇bundle-group-pattern]: https://gist.github.com/pboling/4564780
|
316
|
+
[⛳️gem-namespace]: https://github.com/pboling/silent_stream/blob/master/lib/masq.rb
|
317
|
+
[⛳️namespace-img]: https://img.shields.io/badge/namespace-SilentStream-brightgreen.svg?style=flat&logo=ruby&logoColor=white
|
318
|
+
[⛳️gem-name]: https://rubygems.org/gems/silent_stream
|
319
|
+
[⛳️name-img]: https://img.shields.io/badge/name-silent_stream-brightgreen.svg?style=flat&logo=rubygems&logoColor=red
|
320
|
+
[🚂bdfl-blog]: http://www.railsbling.com/tags/silent_stream
|
321
|
+
[🚂bdfl-blog-img]: https://img.shields.io/badge/blog-railsbling-0093D0.svg?style=for-the-badge&logo=rubyonrails&logoColor=orange
|
322
|
+
[🚂bdfl-contact]: http://www.railsbling.com/contact
|
323
|
+
[🚂bdfl-contact-img]: https://img.shields.io/badge/Contact-BDFL-0093D0.svg?style=flat&logo=rubyonrails&logoColor=red
|
324
|
+
[💖🖇linkedin]: http://www.linkedin.com/in/peterboling
|
325
|
+
[💖🖇linkedin-img]: https://img.shields.io/badge/PeterBoling-LinkedIn-0B66C2?style=flat&logo=newjapanprowrestling
|
326
|
+
[💖✌️wellfound]: https://angel.co/u/peter-boling
|
327
|
+
[💖✌️wellfound-img]: https://img.shields.io/badge/peter--boling-orange?style=flat&logo=wellfound
|
328
|
+
[💖💲crunchbase]: https://www.crunchbase.com/person/peter-boling
|
329
|
+
[💖💲crunchbase-img]: https://img.shields.io/badge/peter--boling-purple?style=flat&logo=crunchbase
|
330
|
+
[💖🐘ruby-mast]: https://ruby.social/@galtzo
|
331
|
+
[💖🐘ruby-mast-img]: https://img.shields.io/mastodon/follow/109447111526622197?domain=https%3A%2F%2Fruby.social&style=flat&logo=mastodon&label=Ruby%20%40galtzo
|
332
|
+
[💖🦋bluesky]: https://bsky.app/profile/galtzo.com
|
333
|
+
[💖🦋bluesky-img]: https://img.shields.io/badge/@galtzo.com-0285FF?style=flat&logo=bluesky&logoColor=white
|
334
|
+
[💖🌳linktree]: https://linktr.ee/galtzo
|
335
|
+
[💖🌳linktree-img]: https://img.shields.io/badge/galtzo-purple?style=flat&logo=linktree
|
336
|
+
[💖💁🏼♂️devto]: https://dev.to/galtzo
|
337
|
+
[💖💁🏼♂️devto-img]: https://img.shields.io/badge/dev.to-0A0A0A?style=flat&logo=devdotto&logoColor=white
|
338
|
+
[💖💁🏼♂️aboutme]: https://about.me/peter.boling
|
339
|
+
[💖💁🏼♂️aboutme-img]: https://img.shields.io/badge/about.me-0A0A0A?style=flat&logo=aboutme&logoColor=white
|
340
|
+
[💖🧊berg]: https://codeberg.org/pboling
|
341
|
+
[💖🐙hub]: https://github.org/pboling
|
342
|
+
[💖🛖hut]: https://sr.ht/~galtzo/
|
343
|
+
[💖🧪lab]: https://gitlab.com/pboling
|
344
|
+
[👨🏼🏫expsup-upwork]: https://www.upwork.com/freelancers/~014942e9b056abdf86?mp_source=share
|
345
|
+
[👨🏼🏫expsup-upwork-img]: https://img.shields.io/badge/UpWork-13544E?style=for-the-badge&logo=Upwork&logoColor=white
|
346
|
+
[👨🏼🏫expsup-codementor]: https://www.codementor.io/peterboling?utm_source=github&utm_medium=button&utm_term=peterboling&utm_campaign=github
|
347
|
+
[👨🏼🏫expsup-codementor-img]: https://img.shields.io/badge/CodeMentor-Get_Help-1abc9c?style=for-the-badge&logo=CodeMentor&logoColor=white
|
348
|
+
[🏙️entsup-tidelift]: https://tidelift.com/subscription
|
349
|
+
[🏙️entsup-tidelift-img]: https://img.shields.io/badge/Tidelift_and_Sonar-Enterprise_Support-FD3456?style=for-the-badge&logo=sonar&logoColor=white
|
350
|
+
[🏙️entsup-tidelift-sonar]: https://blog.tidelift.com/tidelift-joins-sonar
|
351
|
+
[💁🏼♂️peterboling]: http://www.peterboling.com
|
352
|
+
[🚂railsbling]: http://www.railsbling.com
|
353
|
+
[📜src-gl-img]: https://img.shields.io/badge/GitLab-FBA326?style=for-the-badge&logo=Gitlab&logoColor=orange
|
354
|
+
[📜src-gl]: https://gitlab.com/pboling/silent_stream/
|
355
|
+
[📜src-cb-img]: https://img.shields.io/badge/CodeBerg-4893CC?style=for-the-badge&logo=CodeBerg&logoColor=blue
|
356
|
+
[📜src-cb]: https://codeberg.org/pboling/silent_stream
|
357
|
+
[📜src-gh-img]: https://img.shields.io/badge/GitHub-238636?style=for-the-badge&logo=Github&logoColor=green
|
358
|
+
[📜src-gh]: https://github.com/pboling/silent_stream
|
359
|
+
[📜docs-cr-rd-img]: https://img.shields.io/badge/RubyDoc-Current_Release-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
360
|
+
[📜docs-head-rd-img]: https://img.shields.io/badge/RubyDoc-HEAD-943CD2?style=for-the-badge&logo=readthedocs&logoColor=white
|
361
|
+
[📜wiki]: https://gitlab.com/pboling/silent_stream/-/wikis/home
|
362
|
+
[📜wiki-img]: https://img.shields.io/badge/wiki-examples-943CD2.svg?style=for-the-badge&logo=Wiki&logoColor=white
|
363
|
+
[👽dl-rank]: https://rubygems.org/gems/silent_stream
|
364
|
+
[👽dl-ranki]: https://img.shields.io/gem/rd/silent_stream.svg
|
365
|
+
[👽oss-help]: https://www.codetriage.com/pboling/silent_stream
|
366
|
+
[👽oss-helpi]: https://www.codetriage.com/pboling/silent_stream/badges/users.svg
|
367
|
+
[👽version]: https://rubygems.org/gems/silent_stream
|
368
|
+
[👽versioni]: https://img.shields.io/gem/v/silent_stream.svg
|
369
|
+
[🔑cc-mnt]: https://qlty.sh/gh/pboling/projects/silent_stream
|
370
|
+
[🔑cc-mnti♻️]: https://qlty.sh/badges/3884b648-a5a9-4458-9671-a2ce38a1d470/maintainability.svg
|
371
|
+
[🔑cc-cov]: https://qlty.sh/gh/pboling/projects/silent_stream
|
372
|
+
[🔑cc-covi♻️]: https://qlty.sh/badges/3884b648-a5a9-4458-9671-a2ce38a1d470/test_coverage.svg
|
373
|
+
[🔑codecov]: https://codecov.io/gh/pboling/silent_stream
|
374
|
+
[🔑codecovi♻️]: https://codecov.io/gh/pboling/silent_stream/branch/master/graph/badge.svg?token=Ad3ets1psE
|
375
|
+
[🔑coveralls]: https://coveralls.io/github/pboling/silent_stream?branch=master
|
376
|
+
[🔑coveralls-img]: https://coveralls.io/repos/github/pboling/silent_stream/badge.svg?branch=master
|
377
|
+
[🔑depfu]: https://depfu.com/github/pboling/silent_stream?project_id=5828
|
378
|
+
[🔑depfui♻️]: https://badges.depfu.com/badges/6633827ecc1ad3b5dd749b4ac822347b/count.svg
|
379
|
+
[🖐codeQL]: https://github.com/pboling/silent_stream/security/code-scanning
|
380
|
+
[🖐codeQL-img]: https://github.com/pboling/silent_stream/actions/workflows/codeql-analysis.yml/badge.svg
|
381
|
+
[🚎1-an-wf]: https://github.com/pboling/silent_stream/actions/workflows/ancient.yml
|
382
|
+
[🚎1-an-wfi]: https://github.com/pboling/silent_stream/actions/workflows/ancient.yml/badge.svg
|
383
|
+
[🚎2-cov-wf]: https://github.com/pboling/silent_stream/actions/workflows/coverage.yml
|
384
|
+
[🚎2-cov-wfi]: https://github.com/pboling/silent_stream/actions/workflows/coverage.yml/badge.svg
|
385
|
+
[🚎3-hd-wf]: https://github.com/pboling/silent_stream/actions/workflows/heads.yml
|
386
|
+
[🚎3-hd-wfi]: https://github.com/pboling/silent_stream/actions/workflows/heads.yml/badge.svg
|
387
|
+
[🚎4-lg-wf]: https://github.com/pboling/silent_stream/actions/workflows/legacy.yml
|
388
|
+
[🚎4-lg-wfi]: https://github.com/pboling/silent_stream/actions/workflows/legacy.yml/badge.svg
|
389
|
+
[🚎5-st-wf]: https://github.com/pboling/silent_stream/actions/workflows/style.yml
|
390
|
+
[🚎5-st-wfi]: https://github.com/pboling/silent_stream/actions/workflows/style.yml/badge.svg
|
391
|
+
[🚎6-s-wf]: https://github.com/pboling/silent_stream/actions/workflows/supported.yml
|
392
|
+
[🚎6-s-wfi]: https://github.com/pboling/silent_stream/actions/workflows/supported.yml/badge.svg
|
393
|
+
[🚎7-us-wf]: https://github.com/pboling/silent_stream/actions/workflows/unsupported.yml
|
394
|
+
[🚎7-us-wfi]: https://github.com/pboling/silent_stream/actions/workflows/unsupported.yml/badge.svg
|
395
|
+
[🚎8-ho-wf]: https://github.com/pboling/silent_stream/actions/workflows/hoary.yml
|
396
|
+
[🚎8-ho-wfi]: https://github.com/pboling/silent_stream/actions/workflows/hoary.yml/badge.svg
|
397
|
+
[🚎9-t-wf]: https://github.com/pboling/silent_stream/actions/workflows/truffle.yml
|
398
|
+
[🚎9-t-wfi]: https://github.com/pboling/silent_stream/actions/workflows/truffle.yml/badge.svg
|
399
|
+
[🚎10-j-wf]: https://github.com/pboling/silent_stream/actions/workflows/jruby.yml
|
400
|
+
[🚎10-j-wfi]: https://github.com/pboling/silent_stream/actions/workflows/jruby.yml/badge.svg
|
401
|
+
[🚎11-c-wf]: https://github.com/pboling/silent_stream/actions/workflows/current.yml
|
402
|
+
[🚎11-c-wfi]: https://github.com/pboling/silent_stream/actions/workflows/current.yml/badge.svg
|
403
|
+
[⛳liberapay-img]: https://img.shields.io/liberapay/goal/pboling.svg?logo=liberapay
|
404
|
+
[⛳liberapay]: https://liberapay.com/pboling/donate
|
405
|
+
[🖇sponsor-img]: https://img.shields.io/badge/Sponsor_Me!-pboling.svg?style=social&logo=github
|
406
|
+
[🖇sponsor]: https://github.com/sponsors/pboling
|
407
|
+
[🖇polar-img]: https://img.shields.io/badge/polar-donate-yellow.svg
|
408
|
+
[🖇polar]: https://polar.sh/pboling
|
409
|
+
[🖇kofi-img]: https://img.shields.io/badge/a_more_different_coffee-✓-yellow.svg
|
410
|
+
[🖇kofi]: https://ko-fi.com/O5O86SNP4
|
411
|
+
[🖇patreon-img]: https://img.shields.io/badge/patreon-donate-yellow.svg
|
412
|
+
[🖇patreon]: https://patreon.com/galtzo
|
413
|
+
[🖇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
|
414
|
+
[🖇buyme]: https://www.buymeacoffee.com/pboling
|
415
|
+
[🖇buyme-small-img]: https://img.shields.io/badge/buy_me_a_coffee-✓-yellow.svg?style=flat
|
416
|
+
[💎ruby-2.3i]: https://img.shields.io/badge/Ruby-2.3-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
417
|
+
[💎ruby-2.4i]: https://img.shields.io/badge/Ruby-2.4-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
418
|
+
[💎ruby-2.5i]: https://img.shields.io/badge/Ruby-2.5-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
419
|
+
[💎ruby-2.6i]: https://img.shields.io/badge/Ruby-2.6-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
420
|
+
[💎ruby-2.7i]: https://img.shields.io/badge/Ruby-2.7-DF00CA?style=for-the-badge&logo=ruby&logoColor=white
|
421
|
+
[💎ruby-3.0i]: https://img.shields.io/badge/Ruby-3.0-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
422
|
+
[💎ruby-3.1i]: https://img.shields.io/badge/Ruby-3.1-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
423
|
+
[💎ruby-3.2i]: https://img.shields.io/badge/Ruby-3.2-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
424
|
+
[💎ruby-3.3i]: https://img.shields.io/badge/Ruby-3.3-CC342D?style=for-the-badge&logo=ruby&logoColor=white
|
425
|
+
[💎ruby-c-i]: https://img.shields.io/badge/Ruby-current-CC342D?style=for-the-badge&logo=ruby&logoColor=green
|
426
|
+
[💎ruby-headi]: https://img.shields.io/badge/Ruby-HEAD-CC342D?style=for-the-badge&logo=ruby&logoColor=blue
|
427
|
+
[💎truby-22.3i]: https://img.shields.io/badge/Truffle_Ruby-22.3-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
428
|
+
[💎truby-23.0i]: https://img.shields.io/badge/Truffle_Ruby-23.0-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
429
|
+
[💎truby-23.1i]: https://img.shields.io/badge/Truffle_Ruby-23.1-34BCB1?style=for-the-badge&logo=ruby&logoColor=pink
|
430
|
+
[💎truby-c-i]: https://img.shields.io/badge/Truffle_Ruby-current-34BCB1?style=for-the-badge&logo=ruby&logoColor=green
|
431
|
+
[💎truby-headi]: https://img.shields.io/badge/Truffle_Ruby-HEAD-34BCB1?style=for-the-badge&logo=ruby&logoColor=blue
|
432
|
+
[💎jruby-9.1i]: https://img.shields.io/badge/JRuby-9.1-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
433
|
+
[💎jruby-9.2i]: https://img.shields.io/badge/JRuby-9.2-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
434
|
+
[💎jruby-9.3i]: https://img.shields.io/badge/JRuby-9.3-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
435
|
+
[💎jruby-9.4i]: https://img.shields.io/badge/JRuby-9.4-FBE742?style=for-the-badge&logo=ruby&logoColor=red
|
436
|
+
[💎jruby-c-i]: https://img.shields.io/badge/JRuby-current-FBE742?style=for-the-badge&logo=ruby&logoColor=green
|
437
|
+
[💎jruby-headi]: https://img.shields.io/badge/JRuby-HEAD-FBE742?style=for-the-badge&logo=ruby&logoColor=blue
|
438
|
+
[🤝issues]: https://github.com/pboling/silent_stream/issues
|
439
|
+
[🤝pulls]: https://github.com/pboling/silent_stream/pulls
|
440
|
+
[🤝contributing]: CONTRIBUTING.md
|
441
|
+
[🔑codecov-g♻️]: https://codecov.io/gh/pboling/silent_stream/graphs/tree.svg?token=Ad3ets1psE
|
442
|
+
[🖐contrib-rocks]: https://contrib.rocks
|
443
|
+
[🖐contributors]: https://github.com/pboling/silent_stream/graphs/contributors
|
444
|
+
[🖐contributors-img]: https://contrib.rocks/image?repo=pboling/silent_stream
|
445
|
+
[🚎contributors-gl]: https://gitlab.com/pboling/silent_stream/-/graphs/master
|
446
|
+
[🪇conduct]: CODE_OF_CONDUCT.md
|
447
|
+
[🪇conduct-img]: https://img.shields.io/badge/Contributor_Covenant-2.1-4baaaa.svg
|
448
|
+
[📌pvc]: http://guides.rubygems.org/patterns/#pessimistic-version-constraint
|
449
|
+
[📌semver]: https://semver.org/spec/v2.0.0.html
|
450
|
+
[📌semver-img]: https://img.shields.io/badge/semver-2.0.0-FFDD67.svg?style=flat
|
451
|
+
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
452
|
+
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
453
|
+
[📌changelog]: CHANGELOG.md
|
454
|
+
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
455
|
+
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
|
456
|
+
[📌gitmoji]:https://gitmoji.dev
|
457
|
+
[📌gitmoji-img]:https://img.shields.io/badge/gitmoji-%20😜%20😍-FFDD67.svg?style=flat-square
|
458
|
+
[🧮kloc]: https://www.youtube.com/watch?v=dQw4w9WgXcQ
|
459
|
+
[🧮kloc-img]: https://img.shields.io/badge/KLOC-0.137-FFDD67.svg?style=for-the-badge&logo=YouTube&logoColor=blue
|
460
|
+
[🔐security]: SECURITY.md
|
461
|
+
[🔐security-img]: https://img.shields.io/badge/security-policy-brightgreen.svg?style=flat
|
462
|
+
[📄copyright-notice-explainer]: https://opensource.stackexchange.com/questions/5778/why-do-licenses-such-as-the-mit-license-specify-a-single-year
|
463
|
+
[📄license]: LICENSE.txt
|
464
|
+
[📄license-ref]: https://opensource.org/licenses/MIT
|
465
|
+
[📄license-img]: https://img.shields.io/badge/License-MIT-green.svg
|
466
|
+
[📄ilo-declaration]: https://www.ilo.org/declaration/lang--en/index.htm
|
467
|
+
[📄ilo-declaration-img]: https://img.shields.io/badge/ILO_Fundamental_Principles-✓-brightgreen.svg?style=flat
|
468
|
+
[🚎yard-current]: http://rubydoc.info/gems/silent_stream
|
469
|
+
[🚎yard-head]: https://rubydoc.info/github/pboling/silent_stream/master
|
data/SECURITY.md
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# Security Policy
|
2
|
+
|
3
|
+
## Supported Versions
|
4
|
+
|
5
|
+
| Version | Supported |
|
6
|
+
|-----------|-----------|
|
7
|
+
| 1.latest | ✅ |
|
8
|
+
|
9
|
+
## Security contact information
|
10
|
+
|
11
|
+
To report a security vulnerability, please use the
|
12
|
+
[Tidelift security contact](https://tidelift.com/security).
|
13
|
+
Tidelift will coordinate the fix and disclosure.
|
14
|
+
|
15
|
+
## Additional Support
|
16
|
+
|
17
|
+
If you are interested in support for versions older than the latest release,
|
18
|
+
please consider sponsoring the project / maintainer @ https://liberapay.com/pboling/donate,
|
19
|
+
or find other sponsorship links in the [README].
|
20
|
+
|
21
|
+
[README]: README.md
|
data/lib/silent_stream.rb
CHANGED
@@ -149,7 +149,7 @@ module SilentStream
|
|
149
149
|
if SILENT_STREAM_REGEXP_HAS_MATCH
|
150
150
|
SILENT_STREAM_WINDOWS_REGEXP.match?(RbConfig::CONFIG["host_os"])
|
151
151
|
else
|
152
|
-
SILENT_STREAM_WINDOWS_REGEXP =~
|
152
|
+
SILENT_STREAM_WINDOWS_REGEXP =~ RbConfig::CONFIG["host_os"]
|
153
153
|
end
|
154
154
|
end
|
155
155
|
end
|
data.tar.gz.sig
ADDED
Binary file
|