Skip to content

Commit caa2bba

Browse files
committed
Modernize gem.
1 parent a0f4562 commit caa2bba

12 files changed

+45
-28
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.1"
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.1"
50+
ruby-version: "3.3"
5151
bundler-cache: true
5252

5353
- uses: actions/download-artifact@v3

.github/workflows/documentation.yaml

+4-7
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ on:
55
branches:
66
- main
77

8-
# Allows you to run this workflow manually from the Actions tab:
9-
workflow_dispatch:
10-
118
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages:
129
permissions:
1310
contents: read
@@ -28,11 +25,11 @@ jobs:
2825
runs-on: ubuntu-latest
2926

3027
steps:
31-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v4
3229

3330
- uses: ruby/setup-ruby@v1
3431
with:
35-
ruby-version: "3.1"
32+
ruby-version: "3.3"
3633
bundler-cache: true
3734

3835
- name: Installing packages
@@ -43,7 +40,7 @@ jobs:
4340
run: bundle exec bake utopia:project:static --force no
4441

4542
- name: Upload documentation artifact
46-
uses: actions/upload-pages-artifact@v1
43+
uses: actions/upload-pages-artifact@v3
4744
with:
4845
path: docs
4946

@@ -58,4 +55,4 @@ jobs:
5855
steps:
5956
- name: Deploy to GitHub Pages
6057
id: deployment
61-
uses: actions/deploy-pages@v1
58+
uses: actions/deploy-pages@v4

.github/workflows/test.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
- macos
2222

2323
ruby:
24-
- "2.7"
25-
- "3.0"
2624
- "3.1"
25+
- "3.2"
26+
- "3.3"
2727

2828
experimental: [false]
2929

@@ -39,7 +39,7 @@ jobs:
3939
experimental: true
4040

4141
steps:
42-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4343
- uses: ruby/setup-ruby@v1
4444
with:
4545
ruby-version: ${{matrix.ruby}}

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
/.covered.db
55
/external
66

7-
/.rspec*
7+
/.github/workflows/test-external.yaml

benchmark-http.gemspec

+6-7
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,21 @@ Gem::Specification.new do |spec|
1515

1616
spec.homepage = "https://github.com/socketry/benchmark-http"
1717

18+
spec.metadata = {
19+
"documentation_uri" => "https://socketry.github.io/benchmark-http/",
20+
"source_code_uri" => "https://github.com/socketry/benchmark-http.git",
21+
}
22+
1823
spec.files = Dir.glob(['{bin,lib}/**/*', '*.md'], File::FNM_DOTMATCH, base: __dir__)
1924

2025
spec.executables = ["benchmark-http"]
2126

22-
spec.required_ruby_version = ">= 2.4"
27+
spec.required_ruby_version = ">= 3.1"
2328

2429
spec.add_dependency "async-await"
2530
spec.add_dependency "async-http", "~> 0.54"
2631
spec.add_dependency "async-io", "~> 1.5"
2732
spec.add_dependency "console"
2833
spec.add_dependency "samovar", "~> 2.0"
2934
spec.add_dependency "xrb-sanitize"
30-
31-
spec.add_development_dependency "async-rspec"
32-
spec.add_development_dependency "bake-test"
33-
spec.add_development_dependency "bundler"
34-
spec.add_development_dependency "covered", "~> 0.16"
35-
spec.add_development_dependency "sus", "~> 0.12"
3635
end

fixtures/disable_console_context.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, by Samuel Williams.
4+
# Copyright, 2018-2022, by Samuel Williams.
55

66
module DisableConsoleContext
77
def around

gems.rb

+9-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, 2021-2022, by Samuel Williams.
4+
# Copyright, 2018-2022, by Samuel Williams.
55

66
source 'https://rubygems.org'
77

@@ -13,3 +13,11 @@
1313

1414
gem "utopia-project"
1515
end
16+
17+
group :test do
18+
gem "sus"
19+
gem "covered"
20+
21+
gem "bake-test"
22+
gem "bake-test-external"
23+
end

lib/benchmark/http/links_filter.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, 2018-2022, by Samuel Williams.
4+
# Copyright, 2018-2024, by Samuel Williams.
55

66
require 'xrb/sanitize'
77

lib/benchmark/http/version.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, 2018-2022, by Samuel Williams.
4+
# Copyright, 2018-2023, by Samuel Williams.
55

66
module Benchmark
77
module HTTP

license.md

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

3-
Copyright, 2018-2022, by Samuel Williams.
3+
Copyright, 2018-2024, by Samuel Williams.
4+
Copyright, 2020, by Olle Jonsson.
45

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

readme.md

+8
Original file line numberDiff line numberDiff line change
@@ -193,3 +193,11 @@ We welcome contributions to this project.
193193
3. Commit your changes (`git commit -am 'Add some feature'`).
194194
4. Push to the branch (`git push origin my-new-feature`).
195195
5. Create new Pull Request.
196+
197+
### Developer Certificate of Origin
198+
199+
This project uses the [Developer Certificate of Origin](https://developercertificate.org/). All contributors to this project must agree to this document to have their contributions accepted.
200+
201+
### Contributor Covenant
202+
203+
This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.

0 commit comments

Comments
 (0)