Skip to content

Commit 8d71f5f

Browse files
committed
Modernize code.
1 parent 903ae67 commit 8d71f5f

30 files changed

Lines changed: 203 additions & 124 deletions

.github/copilot-instructions.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# GitHub Copilot Instructions
2+
3+
## Use Agent Context
4+
5+
When working on this project, consult the `agents.md` file for project-specific guidelines, architecture decisions, and development patterns. This file contains curated information that will help you make better decisions aligned with the project's goals and standards.
6+
7+
If the file does not exist, you will need to install it, by running the following command:
8+
9+
```bash
10+
$ bundle install
11+
$ bundle exec bake agent:context:install
12+
```
13+
14+
This command will set up the necessary context files that help you understand the project structure, dependencies, and conventions.
15+
16+
## Ignoring Files
17+
18+
The `.gitignore` file is split into two sections, separated by a blank line. The first section is automatically generated, while the second section is user controlled.
19+
20+
While working on pull requests, you should not add unrelated changes to the `.gitignore` file as part of the pull request.

.github/workflows/documentation-coverage.yaml

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

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

1211
jobs:
1312
validate:
1413
runs-on: ubuntu-latest
1514

1615
steps:
17-
- uses: actions/checkout@v4
16+
- uses: actions/checkout@v6
1817
- uses: ruby/setup-ruby@v1
1918
with:
20-
ruby-version: "3.3"
19+
ruby-version: ruby
2120
bundler-cache: true
2221

2322
- name: Validate coverage

.github/workflows/documentation.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,18 @@ concurrency:
1717
cancel-in-progress: true
1818

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

2322
jobs:
2423
generate:
2524
runs-on: ubuntu-latest
2625

2726
steps:
28-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v6
2928

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

3534
- name: Installing packages
@@ -40,7 +39,7 @@ jobs:
4039
run: bundle exec bake utopia:project:static --force no
4140

4241
- name: Upload documentation artifact
43-
uses: actions/upload-pages-artifact@v3
42+
uses: actions/upload-pages-artifact@v4
4443
with:
4544
path: docs
4645

.github/workflows/rubocop.yaml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,12 @@ 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
1411

1512
steps:
16-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1714
- uses: ruby/setup-ruby@v1
1815
with:
1916
ruby-version: ruby

.github/workflows/test-coverage.yaml

Lines changed: 8 additions & 7 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
CLOUDFLARE_EMAIL: ${{secrets.CLOUDFLARE_EMAIL}}
1211
CLOUDFLARE_KEY: ${{secrets.CLOUDFLARE_KEY}}
@@ -22,10 +21,10 @@ jobs:
2221
- ubuntu
2322

2423
ruby:
25-
- "3.3"
24+
- ruby
2625

2726
steps:
28-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@v6
2928
- uses: ruby/setup-ruby@v1
3029
with:
3130
ruby-version: ${{matrix.ruby}}
@@ -35,8 +34,10 @@ jobs:
3534
timeout-minutes: 5
3635
run: bundle exec bake test
3736

38-
- uses: actions/upload-artifact@v4
37+
- uses: actions/upload-artifact@v5
3938
with:
39+
include-hidden-files: true
40+
if-no-files-found: error
4041
name: coverage-${{matrix.os}}-${{matrix.ruby}}
4142
path: .covered.db
4243

@@ -45,13 +46,13 @@ jobs:
4546
runs-on: ubuntu-latest
4647

4748
steps:
48-
- uses: actions/checkout@v4
49+
- uses: actions/checkout@v6
4950
- uses: ruby/setup-ruby@v1
5051
with:
51-
ruby-version: "3.3"
52+
ruby-version: ruby
5253
bundler-cache: true
5354

54-
- uses: actions/download-artifact@v4
55+
- uses: actions/download-artifact@v6
5556

5657
- name: Validate coverage
5758
timeout-minutes: 5

.github/workflows/test-external.yaml

Lines changed: 3 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
CLOUDFLARE_EMAIL: ${{secrets.CLOUDFLARE_EMAIL}}
1110
CLOUDFLARE_KEY: ${{secrets.CLOUDFLARE_KEY}}
1211

@@ -21,12 +20,13 @@ jobs:
2120
- ubuntu
2221

2322
ruby:
24-
- "3.1"
2523
- "3.2"
2624
- "3.3"
25+
- "3.4"
26+
- "4.0"
2727

2828
steps:
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@v6
3030
- uses: ruby/setup-ruby@v1
3131
with:
3232
ruby-version: ${{matrix.ruby}}

.github/workflows/test.yaml

Lines changed: 3 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
CLOUDFLARE_EMAIL: ${{secrets.CLOUDFLARE_EMAIL}}
1110
CLOUDFLARE_KEY: ${{secrets.CLOUDFLARE_KEY}}
1211

@@ -22,9 +21,10 @@ jobs:
2221
- ubuntu
2322

2423
ruby:
25-
- "3.1"
2624
- "3.2"
2725
- "3.3"
26+
- "3.4"
27+
- "4.0"
2828

2929
experimental: [false]
3030

@@ -40,7 +40,7 @@ jobs:
4040
experimental: true
4141

4242
steps:
43-
- uses: actions/checkout@v4
43+
- uses: actions/checkout@v6
4444
- uses: ruby/setup-ruby@v1
4545
with:
4646
ruby-version: ${{matrix.ruby}}

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
/.bundle/
2-
/pkg/
1+
/agents.md
2+
/.context
3+
/.bundle
4+
/pkg
35
/gems.locked
46
/.covered.db
57
/external

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ Denis Sadomowski <sonicdes@gmail.com>
44
Sherman Koa <shrmnk@users.noreply.github.com>
55
Fedishin Nazar <nazarfedishin@gmail.com>
66
Akinori Musha <knu@idaemons.org>
7+
Travis Skindzier <travis@marketcake.com>

.rubocop.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
1+
plugins:
2+
- rubocop-md
3+
- rubocop-socketry
4+
15
AllCops:
26
DisabledByDefault: true
37

8+
# Socketry specific rules:
9+
10+
Layout/ConsistentBlankLineIndentation:
11+
Enabled: true
12+
13+
Layout/BlockDelimiterSpacing:
14+
Enabled: true
15+
16+
Style/GlobalExceptionVariables:
17+
Enabled: true
18+
19+
# General Layout rules:
20+
421
Layout/IndentationStyle:
522
Enabled: true
623
EnforcedStyle: tabs
@@ -27,6 +44,9 @@ Layout/BeginEndAlignment:
2744
Enabled: true
2845
EnforcedStyleAlignWith: start_of_line
2946

47+
Layout/RescueEnsureAlignment:
48+
Enabled: true
49+
3050
Layout/ElseAlignment:
3151
Enabled: true
3252

@@ -35,16 +55,52 @@ Layout/DefEndAlignment:
3555

3656
Layout/CaseIndentation:
3757
Enabled: true
58+
EnforcedStyle: end
3859

3960
Layout/CommentIndentation:
4061
Enabled: true
4162

63+
Layout/FirstHashElementIndentation:
64+
Enabled: true
65+
EnforcedStyle: consistent
66+
4267
Layout/EmptyLinesAroundClassBody:
4368
Enabled: true
4469

4570
Layout/EmptyLinesAroundModuleBody:
4671
Enabled: true
4772

73+
Layout/EmptyLineAfterMagicComment:
74+
Enabled: true
75+
76+
Layout/SpaceInsideBlockBraces:
77+
Enabled: true
78+
EnforcedStyle: no_space
79+
SpaceBeforeBlockParameters: false
80+
81+
Layout/SpaceAroundBlockParameters:
82+
Enabled: true
83+
EnforcedStyleInsidePipes: no_space
84+
85+
Layout/FirstArrayElementIndentation:
86+
Enabled: true
87+
EnforcedStyle: consistent
88+
89+
Layout/ArrayAlignment:
90+
Enabled: true
91+
EnforcedStyle: with_fixed_indentation
92+
93+
Layout/FirstArgumentIndentation:
94+
Enabled: true
95+
EnforcedStyle: consistent
96+
97+
Layout/ArgumentAlignment:
98+
Enabled: true
99+
EnforcedStyle: with_fixed_indentation
100+
101+
Layout/ClosingParenthesisIndentation:
102+
Enabled: true
103+
48104
Style/FrozenStringLiteralComment:
49105
Enabled: true
50106

0 commit comments

Comments
 (0)