Skip to content

Commit f0406b1

Browse files
committed
Modernize gem.
1 parent 660061d commit f0406b1

File tree

17 files changed

+32
-29
lines changed

17 files changed

+32
-29
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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- macos
2222

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

2626
steps:
2727
- uses: actions/checkout@v4
@@ -47,7 +47,7 @@ jobs:
4747
- 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: 1 addition & 4 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
@@ -32,7 +29,7 @@ jobs:
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

.github/workflows/test-external.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ jobs:
2020
- macos
2121

2222
ruby:
23-
- "3.0"
2423
- "3.1"
2524
- "3.2"
25+
- "3.3"
2626

2727
steps:
2828
- uses: actions/checkout@v4

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ jobs:
2121
- macos
2222

2323
ruby:
24-
- "3.0"
2524
- "3.1"
2625
- "3.2"
26+
- "3.3"
2727

2828
experimental: [false]
2929

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ Juan Antonio Martín Lucas <[email protected]>
22
Aurora Nockert <[email protected]>
33
Thomas Morgan <[email protected]>
44
Peter Runich <[email protected]>
5+

async-websocket.gemspec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
66
spec.name = "async-websocket"
77
spec.version = Async::WebSocket::VERSION
88

9-
spec.summary = "An async websocket library on top of websocket-driver."
10-
spec.authors = ["Samuel Williams", "destructobeam", "Olle Jonsson", "Thomas Morgan", "Aurora Nockert", "Bryan Powell", "Emily Love Mills", "Gleb Sinyavskiy", "Janko Marohnić", "Juan Antonio Martín Lucas", "Michel Boaventura", "Peter Runich"]
9+
spec.summary = "An async websocket library on top of protocol-websocket."
10+
spec.authors = ["Samuel Williams", "Simon Crocker", "Olle Jonsson", "Thomas Morgan", "Aurora Nockert", "Bryan Powell", "Emily Love Mills", "Gleb Sinyavskiy", "Janko Marohnić", "Juan Antonio Martín Lucas", "Michel Boaventura", "Peter Runich"]
1111
spec.license = "MIT"
1212

1313
spec.cert_chain = ['release.cert']
@@ -18,11 +18,12 @@ Gem::Specification.new do |spec|
1818
spec.metadata = {
1919
"documentation_uri" => "https://socketry.github.io/async-websocket/",
2020
"funding_uri" => "https://github.com/sponsors/ioquatix",
21+
"source_code_uri" => "https://github.com/socketry/async-websocket.git",
2122
}
2223

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

25-
spec.required_ruby_version = ">= 3.0"
26+
spec.required_ruby_version = ">= 3.1"
2627

2728
spec.add_dependency "async-http", "~> 0.54"
2829
spec.add_dependency "protocol-rack", "~> 0.5"

examples/chat/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# frozen_string_literal: true
33

44
# Released under the MIT License.
5-
# Copyright, 2018-2022, by Samuel Williams.
5+
# Copyright, 2018-2024, by Samuel Williams.
66

77
require 'async'
88
require 'async/http/endpoint'

examples/chat/multi-client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# frozen_string_literal: true
33

44
# Released under the MIT License.
5-
# Copyright, 2019-2022, by Samuel Williams.
5+
# Copyright, 2019-2024, by Samuel Williams.
66

77
require 'async'
88
require 'async/semaphore'

examples/mud/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# frozen_string_literal: true
33

44
# Released under the MIT License.
5-
# Copyright, 2019-2023, by Samuel Williams.
5+
# Copyright, 2019-2024, by Samuel Williams.
66
# Copyright, 2020, by Juan Antonio Martín Lucas.
77

88
require 'async'

examples/polygon.io/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# frozen_string_literal: true
33

44
# Released under the MIT License.
5-
# Copyright, 2020-2022, by Samuel Williams.
5+
# Copyright, 2020-2024, by Samuel Williams.
66

77
require 'async'
88
require 'async/http/endpoint'

fixtures/rack_application/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# frozen_string_literal: true
33

44
# Released under the MIT License.
5-
# Copyright, 2018-2023, by Samuel Williams.
5+
# Copyright, 2018-2024, by Samuel Williams.
66

77
require 'async'
88
require 'async/http/endpoint'

gems.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2015-2023, by Samuel Williams.
4+
# Copyright, 2015-2024, by Samuel Williams.
55

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

88
gemspec
99

10+
# gem "protocol-websocket", path: "../protocol-websocket"
11+
1012
group :maintenance, optional: true do
1113
gem "bake-gem"
1214
gem "bake-modernize"
@@ -15,13 +17,11 @@
1517
end
1618

1719
group :test do
20+
gem "sus"
21+
gem "covered"
22+
23+
gem "sus-fixtures-async-http"
24+
1825
gem "bake-test"
1926
gem "bake-test-external"
2027
end
21-
22-
# gem "protocol-websocket", path: "../protocol-websocket"
23-
24-
# Moved Development Dependencies
25-
gem "covered"
26-
gem "sus", "~> 0.18"
27-
gem "sus-fixtures-async-http", "~> 0.8"

lib/async/websocket/server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Released under the MIT License.
44
# Copyright, 2018-2023, by Samuel Williams.
5-
# Copyright, 2019, by destructobeam.
5+
# Copyright, 2019, by Simon Crocker.
66

77
require_relative 'connection'
88
require_relative 'response'

license.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# MIT License
22

3-
Copyright, 2015-2023, by Samuel Williams.
3+
Copyright, 2015-2024, by Samuel Williams.
44
Copyright, 2019, by Bryan Powell.
5-
Copyright, 2019, by destructobeam.
5+
Copyright, 2019, by Simon Crocker.
66
Copyright, 2019, by Michel Boaventura.
77
Copyright, 2019, by Janko Marohnić.
88
Copyright, 2020-2021, by Olle Jonsson.

test/async/websocket/adapters/rack.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Released under the MIT License.
44
# Copyright, 2015-2023, by Samuel Williams.
5-
# Copyright, 2019, by destructobeam.
5+
# Copyright, 2019, by Simon Crocker.
66

77
require 'async/websocket'
88
require 'async/websocket/client'

test/async/websocket/connection.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# Released under the MIT License.
44
# Copyright, 2015-2023, by Samuel Williams.
5-
# Copyright, 2019, by destructobeam.
5+
# Copyright, 2019, by Simon Crocker.
66

77
require 'async/websocket/connection'
88

0 commit comments

Comments
 (0)