silent_stream 1.0.10 → 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 +60 -8
- data/CITATION.cff +20 -0
- data/CONTRIBUTING.md +44 -37
- data/LICENSE.txt +1 -1
- data/README.md +300 -182
- 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 +157 -46
- 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,10 +8,37 @@ 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
|
28
|
+
|
29
|
+
## [1.0.11] - 2025-05-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
|
33
|
+
- 50.00% documented
|
34
|
+
### Changed
|
35
|
+
- Reduced minimum version of logger dependency to 1.2
|
36
|
+
- To help with testing old libraries, or newer libraries that still support old libraries
|
37
|
+
### Fixed
|
38
|
+
- Code Coverage setup in CI
|
13
39
|
|
14
40
|
## [1.0.10] - 2025-05-05
|
41
|
+
- TAG: [v1.0.10][1.0.10t]
|
15
42
|
- COVERAGE: 47.76% -- 32/67 lines in 2 files
|
16
43
|
- BRANCH COVERAGE: 10.00% -- 1/10 branches in 2 files
|
17
44
|
- 50.00% documented
|
@@ -20,11 +47,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
20
47
|
- Allows test coverage to be tracked for version.rb
|
21
48
|
|
22
49
|
## [1.0.9] - 2025-05-05
|
50
|
+
- TAG: [v1.0.9][1.0.9t]
|
23
51
|
- COVERAGE: 40.62% -- 26/64 lines in 2 files
|
24
52
|
- BRANCH COVERAGE: 10.00% -- 1/10 branches in 2 files
|
25
53
|
- 54.55% documented
|
26
54
|
### Added
|
27
|
-
- Releases will be signed by my key that expires 2045-
|
55
|
+
- Releases will be signed by my key that expires 2045-04-29
|
28
56
|
- Allow unsigned gem builds (for linux distros)
|
29
57
|
- In the ENV set `SKIP_GEM_SIGNING` to any value
|
30
58
|
- Compatibility with Ruby 3.5
|
@@ -32,32 +60,56 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
32
60
|
- Expanded CI test matrix to include JRuby, TruffleRuby, and MRI 2.3+, including heads
|
33
61
|
|
34
62
|
## [1.0.8] - 2024-03-20
|
63
|
+
- TAG: [v1.0.8][1.0.8t]
|
35
64
|
|
36
65
|
## [1.0.7] - 2024-03-20
|
66
|
+
- TAG: [v1.0.7][1.0.7t]
|
37
67
|
|
38
68
|
## [1.0.6] - 2020-02-25
|
69
|
+
- TAG: [v1.0.6][1.0.6t]
|
39
70
|
|
40
71
|
## [1.0.5] - 2018-10-10
|
72
|
+
- TAG: [v1.0.5][1.0.5t]
|
41
73
|
|
42
74
|
## [1.0.4] - 2018-10-06
|
75
|
+
- TAG: [v1.0.4][1.0.4t]
|
43
76
|
|
44
77
|
## [1.0.3] - 2018-09-25
|
78
|
+
- TAG: [v1.0.3][1.0.3t]
|
45
79
|
|
46
80
|
## [1.0.2] - 2018-09-25
|
81
|
+
- TAG: [v1.0.2][1.0.2t]
|
47
82
|
|
48
83
|
## [1.0.1] - 2018-09-23
|
84
|
+
- TAG: [v1.0.1][1.0.1t]
|
49
85
|
|
50
86
|
## [1.0.0] - 2018-09-23
|
87
|
+
- TAG: [v1.0.0][1.0.0t]
|
51
88
|
|
52
|
-
[Unreleased]: https://gitlab.com/
|
53
|
-
[1.0.
|
54
|
-
[1.0.
|
55
|
-
[1.0.
|
56
|
-
[1.0.
|
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
|
57
102
|
[1.0.6]: https://rubygems.org/gems/silent_stream/versions/1.0.6
|
58
|
-
[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
|
59
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
|
60
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
|
61
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
|
62
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
|
63
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,38 +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.
|
14
|
+
|
15
|
+
Follow these instructions:
|
15
16
|
|
16
17
|
1. Fork the repository
|
17
|
-
2. Create
|
18
|
+
2. Create a feature branch (`git checkout -b my-new-feature`)
|
18
19
|
3. Make some fixes.
|
19
|
-
4. Commit
|
20
|
+
4. Commit changes (`git commit -am 'Added some feature'`)
|
20
21
|
5. Push to the branch (`git push origin my-new-feature`)
|
21
22
|
6. Make sure to add tests for it. This is important, so it doesn't break in a future release.
|
22
23
|
7. Create new Pull Request.
|
23
24
|
|
24
25
|
## Appraisals
|
25
26
|
|
26
|
-
From time to time the
|
27
|
+
From time to time the Appraisal2 gemfiles in `gemfiles/` will need to be updated.
|
27
28
|
They are created and updated with the commands:
|
28
29
|
|
29
|
-
|
30
|
-
|
31
|
-
Please upvote the PR for `eval_gemfile` [support][🚎appraisal-eval-gemfile-pr]
|
32
|
-
|
33
|
-
```shell
|
34
|
-
BUNDLE_GEMFILE=Appraisal.root.gemfile bundle
|
35
|
-
BUNDLE_GEMFILE=Appraisal.root.gemfile bundle exec appraisal update
|
30
|
+
```console
|
31
|
+
bin/rake appraisal:update
|
36
32
|
```
|
37
33
|
|
38
34
|
When adding an appraisal to CI check the [runner tool cache][🏃♂️runner-tool-cache] to see which runner to use.
|
@@ -43,7 +39,7 @@ Take a look at the `reek` list which is the file called `REEK` and find somethin
|
|
43
39
|
|
44
40
|
To refresh the `reek` list:
|
45
41
|
|
46
|
-
```
|
42
|
+
```console
|
47
43
|
bundle exec reek > REEK
|
48
44
|
```
|
49
45
|
|
@@ -51,7 +47,7 @@ bundle exec reek > REEK
|
|
51
47
|
|
52
48
|
To run all tests
|
53
49
|
|
54
|
-
```
|
50
|
+
```console
|
55
51
|
bundle exec rake test
|
56
52
|
```
|
57
53
|
|
@@ -59,16 +55,29 @@ bundle exec rake test
|
|
59
55
|
|
60
56
|
Run all the default tasks, which includes running the gradually autocorrecting linter, `rubocop-gradual`.
|
61
57
|
|
62
|
-
```
|
58
|
+
```console
|
63
59
|
bundle exec rake
|
64
60
|
```
|
65
61
|
|
66
62
|
Or just run the linter.
|
67
63
|
|
68
|
-
```
|
64
|
+
```console
|
69
65
|
bundle exec rake rubocop_gradual:autocorrect
|
70
66
|
```
|
71
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
|
+
|
72
81
|
## Contributors
|
73
82
|
|
74
83
|
Your picture could be here!
|
@@ -77,7 +86,7 @@ Your picture could be here!
|
|
77
86
|
|
78
87
|
Made with [contributors-img][🖐contrib-rocks].
|
79
88
|
|
80
|
-
Also see GitLab Contributors: [https://gitlab.com/
|
89
|
+
Also see GitLab Contributors: [https://gitlab.com/galtzo-floss/silent_stream/-/graphs/main][🚎contributors-gl]
|
81
90
|
|
82
91
|
## For Maintainers
|
83
92
|
|
@@ -93,44 +102,42 @@ NOTE: To build without signing the gem you must set `SKIP_GEM_SIGNING` to some v
|
|
93
102
|
|
94
103
|
### To release a new version:
|
95
104
|
|
96
|
-
1. Run `bin/setup && bin/rake` as a
|
105
|
+
1. Run `bin/setup && bin/rake` as a "test, coverage, & linting" sanity check
|
97
106
|
2. Update the version number in `version.rb`, and ensure `CHANGELOG.md` reflects changes
|
98
107
|
3. Run `bin/setup && bin/rake` again as a secondary check, and to update `Gemfile.lock`
|
99
108
|
4. Run `git commit -am "🔖 Prepare release v<VERSION>"` to commit the changes
|
100
|
-
5. Run `git push` to trigger the final CI pipeline before release,
|
101
|
-
- 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].
|
102
111
|
6. Run `export GIT_TRUNK_BRANCH_NAME="$(git remote show origin | grep 'HEAD branch' | cut -d ' ' -f5)" && echo $GIT_TRUNK_BRANCH_NAME`
|
103
112
|
7. Run `git checkout $GIT_TRUNK_BRANCH_NAME`
|
104
|
-
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
|
105
114
|
9. Set `SOURCE_DATE_EPOCH` so `rake build` and `rake release` use same timestamp, and generate same checksums
|
106
115
|
- Run `export SOURCE_DATE_EPOCH=$EPOCHSECONDS && echo $SOURCE_DATE_EPOCH`
|
107
116
|
- If the echo above has no output, then it didn't work.
|
108
|
-
- Note
|
117
|
+
- Note: `zsh/datetime` module is needed, if running `zsh`.
|
109
118
|
- In older versions of `bash` you can use `date +%s` instead, i.e. `export SOURCE_DATE_EPOCH=$(date +%s) && echo $SOURCE_DATE_EPOCH`
|
110
119
|
10. Run `bundle exec rake build`
|
111
120
|
11. Run `bin/gem_checksums` (more context [1][🔒️rubygems-checksums-pr], [2][🔒️rubygems-guides-pr])
|
112
121
|
to create SHA-256 and SHA-512 checksums. This functionality is provided by the `stone_checksums`
|
113
122
|
[gem][💎stone_checksums].
|
114
|
-
-
|
123
|
+
- The script automatically commits but does not push the checksums
|
115
124
|
12. Run `bundle exec rake release` which will create a git tag for the version,
|
116
125
|
push git commits and tags, and push the `.gem` file to [rubygems.org][💎rubygems]
|
117
126
|
|
118
|
-
[🚎src-main]: https://gitlab.com/
|
119
|
-
[🧪build]: https://github.com/
|
120
|
-
[🤝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
|
121
130
|
[🖐contrib-rocks]: https://contrib.rocks
|
122
|
-
[🖐contributors]: https://github.com/
|
123
|
-
[🚎contributors-gl]: https://gitlab.com/
|
124
|
-
[🖐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
|
125
134
|
[💎rubygems]: https://rubygems.org
|
126
135
|
[🔒️rubygems-security-guide]: https://guides.rubygems.org/security/#building-gems
|
127
136
|
[🔒️rubygems-checksums-pr]: https://github.com/rubygems/rubygems/pull/6022
|
128
137
|
[🔒️rubygems-guides-pr]: https://github.com/rubygems/guides/pull/325
|
129
|
-
[💎stone_checksums]: https://github.com/
|
138
|
+
[💎stone_checksums]: https://github.com/galtzo-floss/stone_checksums
|
130
139
|
[📗keep-changelog]: https://keepachangelog.com/en/1.0.0/
|
131
140
|
[📗keep-changelog-img]: https://img.shields.io/badge/keep--a--changelog-1.0.0-FFDD67.svg?style=flat
|
132
141
|
[📌semver-breaking]: https://github.com/semver/semver/issues/716#issuecomment-869336139
|
133
142
|
[📌major-versions-not-sacred]: https://tom.preston-werner.com/2022/05/23/major-version-numbers-are-not-sacred.html
|
134
|
-
[🚎appraisal-eval-gemfile-pr]: https://github.com/thoughtbot/appraisal/pull/248
|
135
|
-
[🚎appraisal-fork]: https://github.com/pboling/appraisal/tree/galtzo
|
136
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
|