Skip to content

Commit c1f4cbb

Browse files
committed
Modernize gem.
1 parent 59d7cab commit c1f4cbb

File tree

11 files changed

+25
-18
lines changed

11 files changed

+25
-18
lines changed

.editorconfig

+4
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@ root = true
33
[*]
44
indent_style = tab
55
indent_size = 2
6+
7+
[*.{yml,yaml}]
8+
indent_style = space
9+
indent_size = 2

.github/workflows/coverage.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
- macos
2222

2323
ruby:
24-
- "3.2"
24+
- "3.3"
2525

2626
steps:
27-
- uses: actions/checkout@v3
27+
- uses: actions/checkout@v4
2828
- uses: ruby/setup-ruby@v1
2929
with:
3030
ruby-version: ${{matrix.ruby}}
@@ -34,7 +34,7 @@ jobs:
3434
timeout-minutes: 5
3535
run: bundle exec bake test
3636

37-
- uses: actions/upload-artifact@v2
37+
- uses: actions/upload-artifact@v3
3838
with:
3939
name: coverage-${{matrix.os}}-${{matrix.ruby}}
4040
path: .covered.db
@@ -44,10 +44,10 @@ jobs:
4444
runs-on: ubuntu-latest
4545

4646
steps:
47-
- uses: actions/checkout@v3
47+
- uses: actions/checkout@v4
4848
- uses: ruby/setup-ruby@v1
4949
with:
50-
ruby-version: "3.2"
50+
ruby-version: "3.3"
5151
bundler-cache: true
5252

5353
- uses: actions/download-artifact@v3

.github/workflows/documentation.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,11 @@ jobs:
2828
runs-on: ubuntu-latest
2929

3030
steps:
31-
- uses: actions/checkout@v3
31+
- uses: actions/checkout@v4
3232

3333
- uses: ruby/setup-ruby@v1
3434
with:
35-
ruby-version: "3.2"
35+
ruby-version: "3.3"
3636
bundler-cache: true
3737

3838
- name: Installing packages
@@ -43,7 +43,7 @@ jobs:
4343
run: bundle exec bake utopia:project:static --force no
4444

4545
- name: Upload documentation artifact
46-
uses: actions/upload-pages-artifact@v1
46+
uses: actions/upload-pages-artifact@v2
4747
with:
4848
path: docs
4949

@@ -58,4 +58,4 @@ jobs:
5858
steps:
5959
- name: Deploy to GitHub Pages
6060
id: deployment
61-
uses: actions/deploy-pages@v1
61+
uses: actions/deploy-pages@v3

.github/workflows/test-external.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ jobs:
2323
- "3.0"
2424
- "3.1"
2525
- "3.2"
26+
- "3.3"
2627

2728
steps:
28-
- uses: actions/checkout@v3
29+
- uses: actions/checkout@v4
2930
- uses: ruby/setup-ruby@v1
3031
with:
3132
ruby-version: ${{matrix.ruby}}

.github/workflows/test.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- "3.0"
2525
- "3.1"
2626
- "3.2"
27+
- "3.3"
2728

2829
experimental: [false]
2930

@@ -39,7 +40,7 @@ jobs:
3940
experimental: true
4041

4142
steps:
42-
- uses: actions/checkout@v3
43+
- uses: actions/checkout@v4
4344
- uses: ruby/setup-ruby@v1
4445
with:
4546
ruby-version: ${{matrix.ruby}}

lib/protocol/http/body/stream.rb

+1-1
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-2023, by Samuel Williams.
4+
# Copyright, 2019-2024, by Samuel Williams.
55
# Copyright, 2023, by Genki Takiuchi.
66

77
require_relative 'buffered'

lib/protocol/http/header/date.rb

+1-1
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-2023, by Samuel Williams.
4+
# Copyright, 2023, by Samuel Williams.
55

66
require 'time'
77

license.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright, 2018-2023, by Samuel Williams.
3+
Copyright, 2018-2024, by Samuel Williams.
44
Copyright, 2019, by Yuta Iwama.
55
Copyright, 2020, by Olle Jonsson.
66
Copyright, 2020, by Bryan Powell.
@@ -9,6 +9,7 @@ Copyright, 2022, by Herrick Fang.
99
Copyright, 2022, by Dan Olson.
1010
Copyright, 2023, by Genki Takiuchi.
1111
Copyright, 2023, by Thomas Morgan.
12+
Copyright, 2023, by Marcelo Junior.
1213

1314
Permission is hereby granted, free of charge, to any person obtaining a copy
1415
of this software and associated documentation files (the "Software"), to deal

protocol-http.gemspec

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Gem::Specification.new do |spec|
77
spec.version = Protocol::HTTP::VERSION
88

99
spec.summary = "Provides abstractions to handle HTTP protocols."
10-
spec.authors = ["Samuel Williams", "Bruno Sutic", "Herrick Fang", "Bryan Powell", "Dan Olson", "Genki Takiuchi", "Olle Jonsson", "Yuta Iwama"]
10+
spec.authors = ["Samuel Williams", "Bruno Sutic", "Herrick Fang", "Thomas Morgan", "Bryan Powell", "Dan Olson", "Genki Takiuchi", "Marcelo Junior", "Olle Jonsson", "Yuta Iwama"]
1111
spec.license = "MIT"
1212

1313
spec.cert_chain = ['release.cert']
@@ -21,7 +21,7 @@ Gem::Specification.new do |spec|
2121

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

24-
spec.required_ruby_version = ">= 2.7.6"
24+
spec.required_ruby_version = ">= 3.0"
2525

2626
spec.add_dependency "base64"
2727
end

readme.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This project uses the [Developer Certificate of Origin](https://developercertifi
3434

3535
### Contributor Covenant
3636

37-
This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
37+
This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.
3838

3939
## See Also
4040

test/protocol/http/body/stream.rb

+1-1
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-2023, by Samuel Williams.
4+
# Copyright, 2022-2024, by Samuel Williams.
55

66
require 'protocol/http/body/stream'
77
require 'protocol/http/body/buffered'

0 commit comments

Comments
 (0)