silent_stream 1.0.11 → 1.0.12
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 +52 -10
- data/CITATION.cff +20 -0
- data/CONTRIBUTING.md +42 -38
- data/LICENSE.txt +1 -1
- data/README.md +298 -186
- data/REEK +0 -0
- data/RUBOCOP.md +71 -0
- data/checksums/silent_stream-1.0.10.gem.sha256 +1 -0
- data/checksums/silent_stream-1.0.10.gem.sha512 +1 -0
- data/checksums/silent_stream-1.0.11.gem.sha256 +1 -0
- data/checksums/silent_stream-1.0.11.gem.sha512 +1 -0
- data/checksums/silent_stream-1.0.12.gem.sha256 +1 -0
- data/checksums/silent_stream-1.0.12.gem.sha512 +1 -0
- data/checksums/silent_stream-1.0.9.gem.sha256 +1 -0
- data/checksums/silent_stream-1.0.9.gem.sha512 +1 -0
- data/lib/silent_stream/version.rb +1 -1
- data/lib/silent_stream.rb +74 -18
- data/sig/silent_stream.rbs +44 -0
- data.tar.gz.sig +0 -0
- metadata +146 -35
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 279fb05d2943bbe8779287d63b1d35dd10dd5c8491efeceb1b5e8327d00ab5d9
|
4
|
+
data.tar.gz: 62e8635f1d2761ae442890d8d64f9ed4f439a286e3be9898b2f6049bfbb8ede3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55b666b78b83519c71466c43c849144711d5d0846daf1a8c66502d1478afdf1d0b38848221ae5f21dafec02950f3596915d7d0da4c8431b1ac9efe820487b74c
|
7
|
+
data.tar.gz: 0f73b08add9bb7abb7e117f1d82b246b22e97db2e268126e053da8bcf44de04ce53bcb268d74c13f730752869e9a80a4539a31007feafa4daa2f1148b4e4cf08
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
@@ -8,12 +8,28 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
8
8
|
## [Unreleased]
|
9
9
|
### Added
|
10
10
|
### Changed
|
11
|
-
###
|
11
|
+
### Deprecated
|
12
12
|
### Removed
|
13
|
+
### Fixed
|
14
|
+
### Security
|
15
|
+
|
16
|
+
## [1.0.12] - 2025-08-21
|
17
|
+
- TAG: [v1.0.12][1.0.12t]
|
18
|
+
- COVERAGE: 100.00% -- 80/80 lines in 2 files
|
19
|
+
- BRANCH COVERAGE: 100.00% -- 21/21 branches in 2 files
|
20
|
+
- 50.00% documented
|
21
|
+
### Added
|
22
|
+
- RBS types
|
23
|
+
- More YARD documentation
|
24
|
+
- Published docs site: [silent-stream.galtzo.com](https://silent-stream.galtzo.com)
|
25
|
+
- Complete test coverage for lines and branches at 100%
|
26
|
+
### Fixed
|
27
|
+
- TypeError: can't convert Tempfile into StringIO
|
13
28
|
|
14
29
|
## [1.0.11] - 2025-05-16
|
15
|
-
-
|
16
|
-
-
|
30
|
+
- TAG: [v1.0.11][1.0.11t]
|
31
|
+
- COVERAGE: 88.06% -- 59/67 lines in 2 files
|
32
|
+
- BRANCH COVERAGE: 30.00% -- 3/10 branches in 2 files
|
17
33
|
- 50.00% documented
|
18
34
|
### Changed
|
19
35
|
- Reduced minimum version of logger dependency to 1.2
|
@@ -22,6 +38,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
22
38
|
- Code Coverage setup in CI
|
23
39
|
|
24
40
|
## [1.0.10] - 2025-05-05
|
41
|
+
- TAG: [v1.0.10][1.0.10t]
|
25
42
|
- COVERAGE: 47.76% -- 32/67 lines in 2 files
|
26
43
|
- BRANCH COVERAGE: 10.00% -- 1/10 branches in 2 files
|
27
44
|
- 50.00% documented
|
@@ -30,6 +47,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
30
47
|
- Allows test coverage to be tracked for version.rb
|
31
48
|
|
32
49
|
## [1.0.9] - 2025-05-05
|
50
|
+
- TAG: [v1.0.9][1.0.9t]
|
33
51
|
- COVERAGE: 40.62% -- 26/64 lines in 2 files
|
34
52
|
- BRANCH COVERAGE: 10.00% -- 1/10 branches in 2 files
|
35
53
|
- 54.55% documented
|
@@ -42,32 +60,56 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
42
60
|
- Expanded CI test matrix to include JRuby, TruffleRuby, and MRI 2.3+, including heads
|
43
61
|
|
44
62
|
## [1.0.8] - 2024-03-20
|
63
|
+
- TAG: [v1.0.8][1.0.8t]
|
45
64
|
|
46
65
|
## [1.0.7] - 2024-03-20
|
66
|
+
- TAG: [v1.0.7][1.0.7t]
|
47
67
|
|
48
68
|
## [1.0.6] - 2020-02-25
|
69
|
+
- TAG: [v1.0.6][1.0.6t]
|
49
70
|
|
50
71
|
## [1.0.5] - 2018-10-10
|
72
|
+
- TAG: [v1.0.5][1.0.5t]
|
51
73
|
|
52
74
|
## [1.0.4] - 2018-10-06
|
75
|
+
- TAG: [v1.0.4][1.0.4t]
|
53
76
|
|
54
77
|
## [1.0.3] - 2018-09-25
|
78
|
+
- TAG: [v1.0.3][1.0.3t]
|
55
79
|
|
56
80
|
## [1.0.2] - 2018-09-25
|
81
|
+
- TAG: [v1.0.2][1.0.2t]
|
57
82
|
|
58
83
|
## [1.0.1] - 2018-09-23
|
84
|
+
- TAG: [v1.0.1][1.0.1t]
|
59
85
|
|
60
86
|
## [1.0.0] - 2018-09-23
|
61
|
-
|
62
|
-
|
63
|
-
[
|
64
|
-
[1.0.
|
65
|
-
[1.0.
|
66
|
-
[1.0.
|
87
|
+
- TAG: [v1.0.0][1.0.0t]
|
88
|
+
|
89
|
+
[Unreleased]: https://gitlab.com/galtzo-floss/silent_stream-/compare/v1.0.12...HEAD
|
90
|
+
[1.0.12]: https://gitlab.com/galtzo-floss/silent_stream-/compare/v1.0.11...v1.0.12
|
91
|
+
[1.0.12t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.12
|
92
|
+
[1.0.11]: https://gitlab.com/galtzo-floss/silent_stream-/compare/v1.0.10...v1.0.11
|
93
|
+
[1.0.11t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.11
|
94
|
+
[1.0.10]: https://gitlab.com/galtzo-floss/silent_stream-/compare/v1.0.9...v1.0.10
|
95
|
+
[1.0.10t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.10
|
96
|
+
[1.0.9]: https://gitlab.com/galtzo-floss/silent_stream-/compare/v1.0.8...v1.0.9
|
97
|
+
[1.0.9t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.9
|
98
|
+
[1.0.8]: https://gitlab.com/galtzo-floss/silent_stream-/compare/v1.0.7...v1.0.8
|
99
|
+
[1.0.8t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.8
|
100
|
+
[1.0.7]: https://gitlab.com/galtzo-floss/silent_stream-/compare/v1.0.5...v1.0.7
|
101
|
+
[1.0.7t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.7
|
67
102
|
[1.0.6]: https://rubygems.org/gems/silent_stream/versions/1.0.6
|
68
|
-
[1.0.
|
103
|
+
[1.0.6t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.6
|
104
|
+
[1.0.5]: https://gitlab.com/galtzo-floss/silent_stream-/tags/v1.0.5
|
105
|
+
[1.0.5t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.5
|
69
106
|
[1.0.4]: https://rubygems.org/gems/silent_stream/versions/1.0.4
|
107
|
+
[1.0.4t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.4
|
70
108
|
[1.0.3]: https://rubygems.org/gems/silent_stream/versions/1.0.3
|
109
|
+
[1.0.3t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.3
|
71
110
|
[1.0.2]: https://rubygems.org/gems/silent_stream/versions/1.0.2
|
111
|
+
[1.0.2t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.2
|
72
112
|
[1.0.1]: https://rubygems.org/gems/silent_stream/versions/1.0.1
|
113
|
+
[1.0.1t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.1
|
73
114
|
[1.0.0]: https://rubygems.org/gems/silent_stream/versions/1.0.0
|
115
|
+
[1.0.0t]: https://gitlab.com/galtzo-floss/timecop-rspec/-/tags/v1.0.0
|
data/CITATION.cff
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
cff-version: 1.2.0
|
2
|
+
title: silent_stream
|
3
|
+
message: >-
|
4
|
+
If you use this work and you want to cite it,
|
5
|
+
then you can use the metadata from this file.
|
6
|
+
type: software
|
7
|
+
authors:
|
8
|
+
- given-names: Peter Hurn
|
9
|
+
family-names: Boling
|
10
|
+
email: peter@railsbling.com
|
11
|
+
affiliation: railsbling.com
|
12
|
+
orcid: 'https://orcid.org/0009-0008-8519-441X'
|
13
|
+
identifiers:
|
14
|
+
- type: url
|
15
|
+
value: 'https://github.com/galtzo-floss/silent_stream'
|
16
|
+
description: silent_stream
|
17
|
+
repository-code: 'https://github.com/galtzo-floss/silent_stream'
|
18
|
+
abstract: >-
|
19
|
+
silent_stream
|
20
|
+
license: See license file
|
data/CONTRIBUTING.md
CHANGED
@@ -1,41 +1,34 @@
|
|
1
1
|
# Contributing
|
2
2
|
|
3
|
-
Bug reports and pull requests are welcome on
|
4
|
-
|
3
|
+
Bug reports and pull requests are welcome on GitHub, CodeBerg, or [GitLab][🚎src-main].
|
4
|
+
This project should be a safe, welcoming space for collaboration, so contributors agree to adhere to
|
5
5
|
the [code of conduct][🤝conduct].
|
6
6
|
|
7
|
-
To submit a patch, please fork the project
|
8
|
-
Once you're happy with it send a pull request.
|
7
|
+
To submit a patch, please fork the project, create a patch with tests, and send a pull request.
|
9
8
|
|
10
|
-
|
9
|
+
Remember to [![Keep A Changelog][📗keep-changelog-img]][📗keep-changelog].
|
11
10
|
|
12
|
-
##
|
11
|
+
## Help out!
|
13
12
|
|
14
13
|
Take a look at the `reek` list which is the file called `REEK` and find something to improve.
|
15
14
|
|
16
|
-
|
15
|
+
Follow these instructions:
|
17
16
|
|
18
17
|
1. Fork the repository
|
19
|
-
2. Create
|
18
|
+
2. Create a feature branch (`git checkout -b my-new-feature`)
|
20
19
|
3. Make some fixes.
|
21
|
-
4. Commit
|
20
|
+
4. Commit changes (`git commit -am 'Added some feature'`)
|
22
21
|
5. Push to the branch (`git push origin my-new-feature`)
|
23
22
|
6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
|
24
23
|
7. Create new Pull Request.
|
25
24
|
|
26
25
|
## Appraisals
|
27
26
|
|
28
|
-
From time to time the
|
27
|
+
From time to time the Appraisal2 gemfiles in `gemfiles/` will need to be updated.
|
29
28
|
They are created and updated with the commands:
|
30
29
|
|
31
|
-
|
32
|
-
|
33
|
-
Please upvote the PR for `eval_gemfile` [support][🚎appraisal-eval-gemfile-pr]
|
34
|
-
|
35
|
-
```shell
|
36
|
-
BUNDLE_GEMFILE=Appraisal.root.gemfile bundle
|
37
|
-
BUNDLE_GEMFILE=Appraisal.root.gemfile bundle exec appraisal update
|
38
|
-
bundle exec rake rubocop_gradual:autocorrect
|
30
|
+
```console
|
31
|
+
bin/rake appraisal:update
|
39
32
|
```
|
40
33
|
|
41
34
|
When adding an appraisal to CI check the [runner tool cache][🏃♂️runner-tool-cache] to see which runner to use.
|
@@ -46,7 +39,7 @@ Take a look at the `reek` list which is the file called `REEK` and find somethin
|
|
46
39
|
|
47
40
|
To refresh the `reek` list:
|
48
41
|
|
49
|
-
```
|
42
|
+
```console
|
50
43
|
bundle exec reek > REEK
|
51
44
|
```
|
52
45
|
|
@@ -54,7 +47,7 @@ bundle exec reek > REEK
|
|
54
47
|
|
55
48
|
To run all tests
|
56
49
|
|
57
|
-
```
|
50
|
+
```console
|
58
51
|
bundle exec rake test
|
59
52
|
```
|
60
53
|
|
@@ -62,16 +55,29 @@ bundle exec rake test
|
|
62
55
|
|
63
56
|
Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
|
64
57
|
|
65
|
-
```
|
58
|
+
```console
|
66
59
|
bundle exec rake
|
67
60
|
```
|
68
61
|
|
69
62
|
Or just run the linter.
|
70
63
|
|
71
|
-
```
|
64
|
+
```console
|
72
65
|
bundle exec rake rubocop_gradual:autocorrect
|
73
66
|
```
|
74
67
|
|
68
|
+
For more detailed information about using RuboCop in this project, please see the [RUBOCOP.md](RUBOCOP.md) guide. This project uses `rubocop_gradual` instead of vanilla RuboCop, which requires specific commands for checking violations.
|
69
|
+
|
70
|
+
### Important: Do not add inline RuboCop disables
|
71
|
+
|
72
|
+
Never add `# rubocop:disable ...` / `# rubocop:enable ...` comments to code or specs (except when following the few existing `rubocop:disable` patterns for a rule already being disabled elsewhere in the code). Instead:
|
73
|
+
|
74
|
+
- Prefer configuration-based exclusions when a rule should not apply to certain paths or files (e.g., via `.rubocop.yml`).
|
75
|
+
- When a violation is temporary and you plan to fix it later, record it in `.rubocop_gradual.lock` using the gradual workflow:
|
76
|
+
- `bundle exec rake rubocop_gradual:autocorrect` (preferred)
|
77
|
+
- `bundle exec rake rubocop_gradual:force_update` (only when you cannot fix the violations immediately)
|
78
|
+
|
79
|
+
As a general rule, fix style issues rather than ignoring them. For example, our specs should follow RSpec conventions like using `described_class` for the class under test.
|
80
|
+
|
75
81
|
## Contributors
|
76
82
|
|
77
83
|
Your picture could be here!
|
@@ -80,7 +86,7 @@ Your picture could be here!
|
|
80
86
|
|
81
87
|
Made with [contributors-img][🖐contrib-rocks].
|
82
88
|
|
83
|
-
Also see GitLab Contributors: [https://gitlab.com/
|
89
|
+
Also see GitLab Contributors: [https://gitlab.com/galtzo-floss/silent_stream/-/graphs/main][🚎contributors-gl]
|
84
90
|
|
85
91
|
## For Maintainers
|
86
92
|
|
@@ -96,44 +102,42 @@ NOTE: To build without signing the gem you must set `SKIP_GEM_SIGNING` to some v
|
|
96
102
|
|
97
103
|
### To release a new version:
|
98
104
|
|
99
|
-
1. Run `bin/setup && bin/rake` as a
|
105
|
+
1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
|
100
106
|
2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
|
101
107
|
3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
|
102
108
|
4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
|
103
|
-
5. Run `git push` to trigger the final CI pipeline before release,
|
104
|
-
- NOTE: Remember to [check the build][🧪build]
|
109
|
+
5. Run `git push` to trigger the final CI pipeline before release, and merge PRs
|
110
|
+
- NOTE: Remember to [check the build][🧪build].
|
105
111
|
6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
|
106
112
|
7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
|
107
|
-
8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure
|
113
|
+
8. Run `git pull origin $GIT_TRUNK_BRANCH_NAME` to ensure latest trunk code
|
108
114
|
9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
|
109
115
|
- Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
|
110
116
|
- If the echo above has no output, then it didn't work.
|
111
|
-
- Note
|
117
|
+
- Note: `zsh/datetime` module is needed, if running `zsh`.
|
112
118
|
- In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
|
113
119
|
10. Run `bundle exec rake build`
|
114
120
|
11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
|
115
121
|
to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
|
116
122
|
[gem][💎stone_checksums].
|
117
|
-
-
|
123
|
+
- The script automatically commits but does not push the checksums
|
118
124
|
12. Run `bundle exec rake release` which will create a git tag for the version,
|
119
125
|
push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
|
120
126
|
|
121
|
-
[🚎src-main]: https://gitlab.com/
|
122
|
-
[🧪build]: https://github.com/
|
123
|
-
[🤝conduct]: https://gitlab.com/
|
127
|
+
[🚎src-main]: https://gitlab.com/galtzo-floss/silent_stream
|
128
|
+
[🧪build]: https://github.com/galtzo-floss/silent_stream/actions
|
129
|
+
[🤝conduct]: https://gitlab.com/galtzo-floss/silent_stream/-/blob/main/CODE_OF_CONDUCT.md
|
124
130
|
[🖐contrib-rocks]: https://contrib.rocks
|
125
|
-
[🖐contributors]: https://github.com/
|
126
|
-
[🚎contributors-gl]: https://gitlab.com/
|
127
|
-
[🖐contributors-img]: https://contrib.rocks/image?repo=
|
131
|
+
[🖐contributors]: https://github.com/galtzo-floss/silent_stream/graphs/contributors
|
132
|
+
[🚎contributors-gl]: https://gitlab.com/galtzo-floss/silent_stream/-/graphs/main
|
133
|
+
[🖐contributors-img]: https://contrib.rocks/image?repo=galtzo-floss/silent_stream
|
128
134
|
[💎rubygems]: https://rubygems.org
|
129
135
|
[🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
|
130
136
|
[🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
|
131
137
|
[🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
|
132
|
-
[💎stone_checksums]: https://github.com/
|
138
|
+
[💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
|
133
139
|
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
134
140
|
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
|
135
141
|
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
136
142
|
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
137
|
-
[🚎appraisal-eval-gemfile-pr]: https://github.com/thoughtbot/appraisal/pull/248
|
138
|
-
[🚎appraisal-fork]: https://github.com/pboling/appraisal/tree/galtzo
|
139
143
|
[🏃♂️runner-tool-cache]: https://github.com/ruby/ruby-builder/releases/tag/toolcache
|
data/LICENSE.txt
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright (c) 2018
|
3
|
+
Copyright (c) 2018-2020, 2024-2025 Peter H. Boling (railsbling.com)
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|