Skip to content

Commit d043796

Browse files
committed
chore: Prepare for release of 1.1.0
- Update workflow versions - Update dependencies - Update to modern Ruby style Signed-off-by: Austin Ziegler <austin@zieglers.ca>
1 parent 6d10bd4 commit d043796

24 files changed

+385
-353
lines changed

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
with:
3838
persist-credentials: false
3939

40-
- uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0
40+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
4141
with:
4242
ruby-version: '3.4'
4343
rubygems: latest
@@ -73,7 +73,7 @@ jobs:
7373
with:
7474
persist-credentials: false
7575

76-
- uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0
76+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
7777
with:
7878
ruby-version: '3.4'
7979
rubygems: latest
@@ -126,7 +126,7 @@ jobs:
126126
with:
127127
persist-credentials: false
128128

129-
- uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0
129+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
130130
with:
131131
ruby-version: ${{ matrix.ruby }}
132132
rubygems: latest
@@ -173,7 +173,7 @@ jobs:
173173
with:
174174
persist-credentials: false
175175

176-
- uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0
176+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
177177
with:
178178
ruby-version: ${{ matrix.ruby }}
179179
rubygems: latest
@@ -222,7 +222,7 @@ jobs:
222222
with:
223223
persist-credentials: false
224224

225-
- uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0
225+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
226226
with:
227227
ruby-version: ${{ matrix.ruby }}
228228
rubygems: latest
@@ -268,7 +268,7 @@ jobs:
268268
with:
269269
persist-credentials: false
270270

271-
- uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0
271+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
272272
with:
273273
ruby-version: ${{ matrix.ruby }}
274274
rubygems: latest
@@ -314,7 +314,7 @@ jobs:
314314
with:
315315
persist-credentials: false
316316

317-
- uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0
317+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
318318
with:
319319
ruby-version: ${{ matrix.ruby }}
320320
rubygems: latest

.github/workflows/dependency-review.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ jobs:
3838
persist-credentials: false
3939

4040
- name: 'Dependency Review'
41-
uses: actions/dependency-review-action@bc41886e18ea39df68b1b1245f4184881938e050 # v4.7.2
41+
uses: actions/dependency-review-action@595b5aeba73380359d98a5e087f648dbb0edce1b # v4.7.3

.github/workflows/publish-docs.yml

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
name: Publish docs
2+
3+
on:
4+
workflow_dispatch:
5+
6+
workflow_call:
7+
8+
permissions: {}
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
publish_docs:
16+
name: Publish docs from main
17+
runs-on: ubuntu-latest
18+
environment: release
19+
20+
permissions:
21+
contents: read
22+
pages: write
23+
id-token: write
24+
25+
steps:
26+
- name: Harden the runner
27+
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
28+
with:
29+
egress-policy: audit
30+
31+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
32+
with:
33+
persist-credentials: false
34+
35+
- id: rubygems
36+
run: |
37+
ruby -e \
38+
'print "version=", Gem::Specification.load(ARGV[0]).rubygems_version, "\n"' \
39+
minitar.gemspec >>"${GITHUB_OUTPUT}"
40+
41+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
42+
with:
43+
bundler-cache: false
44+
ruby-version: ruby
45+
46+
- name: Install dependencies
47+
run: |
48+
gem update --system="${RUBYGEMS_VERSION}"
49+
bundle install --jobs 4 --retry 3
50+
env:
51+
RUBYGEMS_VERSION: ${{ steps.rubygems.outputs.version }}
52+
53+
- name: Build documentation
54+
run: |
55+
rake docs
56+
57+
- name: Upload documentation artifact
58+
uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0
59+
with:
60+
path: doc
61+
62+
- name: Deploy documentation
63+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5

.github/workflows/publish-gem.yml

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ jobs:
6262
run: |
6363
ruby -e \
6464
'print "version=", Gem::Specification.load(ARGV[0]).rubygems_version, "\n"' \
65-
mime-types.gemspec >>"${GITHUB_OUTPUT}"
65+
minitar.gemspec >>"${GITHUB_OUTPUT}"
6666
67-
- uses: ruby/setup-ruby@efbf473cab83af4468e8606cc33eca9281bb213f # v1.256.0
67+
- uses: ruby/setup-ruby@44511735964dcb71245e7e55f72539531f7bc0eb # v1.257.0
6868
with:
6969
bundler-cache: false
7070
ruby-version: ruby
@@ -77,3 +77,17 @@ jobs:
7777
RUBYGEMS_VERSION: ${{ steps.rubygems.outputs.version }}
7878

7979
- uses: rubygems/release-gem@a25424ba2ba8b387abc8ef40807c2c85b96cbe32 # v1.1.1
80+
81+
- name: Show the status if release failed
82+
if: failure()
83+
run: |
84+
git status
85+
git diff
86+
87+
publish_docs:
88+
needs: release
89+
permissions:
90+
contents: read
91+
pages: write
92+
id-token: write
93+
uses: ./.github/workflows/publish-docs.yml

.github/workflows/reviewdog.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
with:
3737
persist-credentials: false
3838

39-
- uses: reviewdog/action-typos@627388e238f182b925d9acd151432f9b68f1d666 # v1.17.2
39+
- uses: reviewdog/action-typos@fe961cdbe416990b23bc1597325891575ef2dd7c # v1.18.0
4040

4141
actionlint:
4242
if: ${{ github.event.action != 'closed' }}
@@ -61,4 +61,4 @@ jobs:
6161
with:
6262
persist-credentials: false
6363

64-
- uses: reviewdog/action-actionlint@e37e2ca68a70112d21e135229272da28ce2d0d5a # v1.66.1
64+
- uses: reviewdog/action-actionlint@95395aac8c053577d0bc67eb7b74936c660c6f66 # v1.67.0

.github/workflows/zizmor.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ jobs:
1818

1919
permissions:
2020
security-events: write
21-
contents: read
22-
actions: read
2321

2422
steps:
2523
- name: Harden Runner
@@ -29,23 +27,14 @@ jobs:
2927
egress-policy: block
3028
allowed-endpoints: >
3129
api.github.com:443
32-
release-assets.githubusercontent.com:443
33-
files.pythonhosted.org:443
30+
ghcr.io:443
3431
github.com:443
35-
objects.githubusercontent.com:443
36-
pypi.org:443
32+
pkg-containers.githubusercontent.com:443
3733
3834
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3935
with:
4036
persist-credentials: false
4137

42-
- uses: astral-sh/setup-uv@4959332f0f014c5280e7eac8b70c90cb574c9f9b # v6.6.0
43-
44-
- run: uvx zizmor --persona pedantic --format sarif . > results.sarif
45-
env:
46-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
48-
- uses: github/codeql-action/upload-sarif@3c3833e0f8c1c83d449a7478aa59c036a9165498 # v3.29.5
38+
- uses: zizmorcore/zizmor-action@5ca5fc7a4779c5263a3ffa0e1f693009994446d1 # v0.1.2
4939
with:
50-
sarif_file: results.sarif
51-
category: zizmor
40+
persona: pedantic

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,6 @@
1414
/tmp/
1515
/vendor/
1616
/website/index.html
17+
!test/fixtures/*.tar
18+
!test/fixtures/*.gz
1719
Gemfile.lock

.standard.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ ignore:
66
- '*.gemspec'
77
- pkg/**/*
88

9-
plugins:
10-
- standard-minitest
11-
- standard-thread_safety
9+
# plugins:
10+
# - standard-minitest
11+
# - standard-thread_safety

CHANGELOG.md

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,18 @@
99

1010
- Support large file size encoded in PAX extension header. [#121][pull-121].
1111

12+
- Bug fix:
13+
14+
- Resolved [#52][issue-52]. The initial solution was developed with the
15+
assistance of Claude Sonnet 4 via Kiro, but nearly every line of the
16+
solution and tests were rewritten as part of a comprehensive review of all
17+
tests.
18+
19+
- Breaking Change:
20+
21+
- Removed `Minitar::PosixHeader.new_from_stream` which should have been
22+
removed with 1.0.0 and has been deprecated for a decade or so.
23+
1224
- Governance:
1325

1426
Changes described below are effective 2024-12-31.
@@ -27,14 +39,14 @@
2739

2840
## 1.0.2 / 2024-08-23
2941

30-
- Bugfix:
42+
- Bug fix:
3143

3244
- Minitar 1.0.1 was released with an unchanged gemspec. Reported by Debashish
3345
Biswas in [#65][issue-65].
3446

3547
## 1.0.1 / 2024-08-08
3648

37-
- Bugfix:
49+
- Bug fix:
3850

3951
- Resolve a constant lookup issue. The accepted fix has been provided by Aram
4052
Price in [#58][issue-58].
@@ -252,6 +264,7 @@
252264
[issue-31]: https://github.com/halostatue/minitar/issues/31
253265
[issue-45]: https://github.com/halostatue/minitar/issues/45
254266
[issue-46]: https://github.com/halostatue/minitar/issues/46
267+
[issue-52]: https://github.com/halostatue/minitar/issues/52
255268
[issue-58]: https://github.com/halostatue/minitar/issues/58
256269
[issue-63]: https://github.com/halostatue/minitar/issues/63
257270
[issue-65]: https://github.com/halostatue/minitar/issues/65

Gemfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
1-
# -*- ruby -*-
21
# frozen_string_literal: true
32

43
# NOTE: This file is not the canonical source of dependencies. Edit the Rakefile, instead.
54

65
source "https://rubygems.org/"
76

8-
if ENV["COVERAGE"]
9-
gem "simplecov", require: false, platforms: [:mri]
10-
gem "simplecov-lcov", require: false, platforms: [:mri]
7+
group :development do
8+
gem "solargraph", platform: :mri
9+
gem "fiddle", platform: :windows
1110
end
1211

1312
gemspec

0 commit comments

Comments
 (0)