Skip to content

Commit 0dcc634

Browse files
committed
Modernize code.
1 parent 6805b6b commit 0dcc634

39 files changed

+103
-95
lines changed

.github/workflows/documentation-coverage.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ permissions:
66
contents: read
77

88
env:
9-
CONSOLE_OUTPUT: XTerm
109
COVERAGE: PartialSummary
1110

1211
jobs:
@@ -17,7 +16,7 @@ jobs:
1716
- uses: actions/checkout@v4
1817
- uses: ruby/setup-ruby@v1
1918
with:
20-
ruby-version: "3.4"
19+
ruby-version: ruby
2120
bundler-cache: true
2221

2322
- name: Validate coverage

.github/workflows/documentation.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ concurrency:
1717
cancel-in-progress: true
1818

1919
env:
20-
CONSOLE_OUTPUT: XTerm
2120
BUNDLE_WITH: maintenance
2221

2322
jobs:
@@ -29,7 +28,7 @@ jobs:
2928

3029
- uses: ruby/setup-ruby@v1
3130
with:
32-
ruby-version: "3.4"
31+
ruby-version: ruby
3332
bundler-cache: true
3433

3534
- name: Installing packages

.github/workflows/rubocop.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on: [push, pull_request]
55
permissions:
66
contents: read
77

8-
env:
9-
CONSOLE_OUTPUT: XTerm
10-
118
jobs:
129
check:
1310
runs-on: ubuntu-latest

.github/workflows/test-coverage.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ permissions:
66
contents: read
77

88
env:
9-
CONSOLE_OUTPUT: XTerm
109
COVERAGE: PartialSummary
1110

1211
jobs:
@@ -21,7 +20,7 @@ jobs:
2120
- macos
2221

2322
ruby:
24-
- "3.4"
23+
- ruby
2524

2625
steps:
2726
- uses: actions/checkout@v4
@@ -49,7 +48,7 @@ jobs:
4948
- uses: actions/checkout@v4
5049
- uses: ruby/setup-ruby@v1
5150
with:
52-
ruby-version: "3.4"
51+
ruby-version: ruby
5352
bundler-cache: true
5453

5554
- uses: actions/download-artifact@v4

.github/workflows/test-external.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on: [push, pull_request]
55
permissions:
66
contents: read
77

8-
env:
9-
CONSOLE_OUTPUT: XTerm
10-
118
jobs:
129
test:
1310
name: ${{matrix.ruby}} on ${{matrix.os}}
@@ -20,7 +17,6 @@ jobs:
2017
- macos
2118

2219
ruby:
23-
- "3.1"
2420
- "3.2"
2521
- "3.3"
2622
- "3.4"

.github/workflows/test.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on: [push, pull_request]
55
permissions:
66
contents: read
77

8-
env:
9-
CONSOLE_OUTPUT: XTerm
10-
118
jobs:
129
test:
1310
name: ${{matrix.ruby}} on ${{matrix.os}}
@@ -21,7 +18,6 @@ jobs:
2118
- macos
2219

2320
ruby:
24-
- "3.1"
2521
- "3.2"
2622
- "3.3"
2723
- "3.4"

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
/.bundle/
2-
/pkg/
1+
/.bundle
2+
/.context
3+
/pkg
34
/gems.locked
45
/.covered.db
56
/external

.rubocop.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1+
plugins:
2+
- rubocop-socketry
3+
14
AllCops:
25
DisabledByDefault: true
36

7+
Layout/ConsistentBlankLineIndentation:
8+
Enabled: true
9+
410
Layout/IndentationStyle:
511
Enabled: true
612
EnforcedStyle: tabs
@@ -45,6 +51,18 @@ Layout/EmptyLinesAroundClassBody:
4551
Layout/EmptyLinesAroundModuleBody:
4652
Enabled: true
4753

54+
Layout/EmptyLineAfterMagicComment:
55+
Enabled: true
56+
57+
Layout/SpaceInsideBlockBraces:
58+
Enabled: true
59+
EnforcedStyle: no_space
60+
SpaceBeforeBlockParameters: false
61+
62+
Layout/SpaceAroundBlockParameters:
63+
Enabled: true
64+
EnforcedStyleInsidePipes: no_space
65+
4866
Style/FrozenStringLiteralComment:
4967
Enabled: true
5068

async-container.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
2222

2323
spec.files = Dir.glob(["{lib}/**/*", "*.md"], File::FNM_DOTMATCH, base: __dir__)
2424

25-
spec.required_ruby_version = ">= 3.1"
25+
spec.required_ruby_version = ">= 3.2"
2626

2727
spec.add_dependency "async", "~> 2.22"
2828
end

config/sus.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2022-2024, by Samuel Williams.
4+
# Copyright, 2022-2025, by Samuel Williams.
55

66
require "covered/sus"
77
include Covered::Sus

0 commit comments

Comments
 (0)