Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Commit 97a9402

Browse files
authored
Modernize gem. (#81)
1 parent 085b506 commit 97a9402

26 files changed

+67
-166
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
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

Lines changed: 5 additions & 5 deletions
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

Lines changed: 4 additions & 7 deletions
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.2"
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@v2
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@v3

.github/workflows/test-external.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424
- "3.0"
2525
- "3.1"
2626
- "3.2"
27+
- "3.3"
2728

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

.github/workflows/test.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ jobs:
2121
- macos
2222

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

2928
experimental: [false]
3029

@@ -40,7 +39,7 @@ jobs:
4039
experimental: true
4140

4241
steps:
43-
- uses: actions/checkout@v3
42+
- uses: actions/checkout@v4
4443
- uses: ruby/setup-ruby@v1
4544
with:
4645
ruby-version: ${{matrix.ruby}}

async-io.gemspec

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,22 @@ Gem::Specification.new do |spec|
77
spec.version = Async::IO::VERSION
88

99
spec.summary = "Provides support for asynchonous TCP, UDP, UNIX and SSL sockets."
10-
spec.authors = ["Samuel Williams", "Olle Jonsson", "Benoit Daloze", "Thibaut Girka", "Janko Marohnić", "Aurora Nockert", "Bruno Sutic", "Cyril Roelandt", "Hal Brodigan", "Jiang Jinyang"]
10+
spec.authors = ["Samuel Williams", "Olle Jonsson", "Benoit Daloze", "Thibaut Girka", "Hal Brodigan", "Janko Marohnić", "Aurora Nockert", "Bruno Sutic", "Cyril Roelandt", "Hasan Kumar", "Jiang Jinyang", "Maruth Goyal", "Patrik Wenger"]
1111
spec.license = "MIT"
1212

1313
spec.cert_chain = ['release.cert']
1414
spec.signing_key = File.expand_path('~/.gem/release.pem')
1515

1616
spec.homepage = "https://github.com/socketry/async-io"
1717

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

2025
spec.required_ruby_version = ">= 2.5"
2126

2227
spec.add_dependency "async"
23-
24-
spec.add_development_dependency "async-container", "~> 0.15"
25-
spec.add_development_dependency "async-rspec", "~> 1.10"
26-
spec.add_development_dependency "bake"
27-
spec.add_development_dependency "covered"
28-
spec.add_development_dependency "rack-test"
29-
spec.add_development_dependency "rspec", "~> 3.6"
3028
end

conduct.md

Lines changed: 0 additions & 133 deletions
This file was deleted.

examples/ssl/client.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
# Released under the MIT License.
5+
# Copyright, 2023, by Hal Brodigan.
26

37
require 'async'
48
require 'async/io'

examples/ssl/server.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
# Released under the MIT License.
5+
# Copyright, 2023, by Hal Brodigan.
26

37
require 'async'
48
require 'async/io'

gems.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,17 @@
1717
end
1818

1919
group :test do
20+
gem "rspec", "~> 3.6"
21+
gem "async-rspec", "~> 1.10"
22+
gem "covered"
23+
24+
gem "bake"
2025
gem "bake-test"
2126
gem "bake-test-external"
2227

2328
gem 'benchmark-ips'
2429

2530
gem 'http'
31+
gem "async-container", "~> 0.15"
32+
gem "rack-test"
2633
end

0 commit comments

Comments
 (0)