Skip to content

Commit 79e8df9

Browse files
committed
Modernize code.
1 parent 942f63b commit 79e8df9

File tree

18 files changed

+48
-23
lines changed

18 files changed

+48
-23
lines changed

.github/workflows/test-external.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ jobs:
1717
- macos
1818

1919
ruby:
20-
- "3.2"
2120
- "3.3"
2221
- "3.4"
2322
- "4.0"

.github/workflows/test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ jobs:
1818
- macos
1919

2020
ruby:
21-
- "3.2"
2221
- "3.3"
2322
- "3.4"
2423
- "4.0"

.rubocop.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,25 @@ Layout/SpaceAroundBlockParameters:
8282
Enabled: true
8383
EnforcedStyleInsidePipes: no_space
8484

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+
85104
Style/FrozenStringLiteralComment:
86105
Enabled: true
87106

bake.rb

Lines changed: 8 additions & 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, 2020-2025, by Samuel Williams.
4+
# Copyright, 2020-2026, by Samuel Williams.
55

66
# Update the project documentation with the new version number.
77
#
@@ -10,3 +10,10 @@ def after_gem_release_version_increment(version)
1010
context["releases:update"].call(version)
1111
context["utopia:project:update"].call
1212
end
13+
14+
# Create a GitHub release for the given tag.
15+
#
16+
# @parameter tag [String] The tag to create a release for.
17+
def after_gem_release(tag:, **options)
18+
context["releases:github:release"].call(tag)
19+
end

context/headers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ HTTP trailers are headers that appear after the message body. For security reaso
6363
```ruby
6464
# Working with trailers
6565
headers = Protocol::HTTP::Headers.new([
66-
["content-type", "text/html"],
67-
["content-length", "1000"]
66+
["content-type", "text/html"],
67+
["content-length", "1000"]
6868
])
6969

7070
# Start trailer section

guides/headers/readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ HTTP trailers are headers that appear after the message body. For security reaso
6363
```ruby
6464
# Working with trailers
6565
headers = Protocol::HTTP::Headers.new([
66-
["content-type", "text/html"],
67-
["content-length", "1000"]
66+
["content-type", "text/html"],
67+
["content-length", "1000"]
6868
])
6969

7070
# Start trailer section

lib/protocol/http/body/deflate.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, 2019-2025, by Samuel Williams.
4+
# Copyright, 2019-2026, by Samuel Williams.
55

66
require_relative "wrapper"
77

lib/protocol/http/body/writable.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, 2024-2025, by Samuel Williams.
4+
# Copyright, 2024-2026, by Samuel Williams.
55

66
require_relative "readable"
77

lib/protocol/http/error.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, 2018-2025, by Samuel Williams.
4+
# Copyright, 2018-2026, by Samuel Williams.
55

66
module Protocol
77
module HTTP

lib/protocol/http/header/generic.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, 2025, by Samuel Williams.
4+
# Copyright, 2026, by Samuel Williams.
55

66
require_relative "split"
77

0 commit comments

Comments
 (0)