Skip to content

Commit 5694b4e

Browse files
authored
Modernize gem. (#64)
- Remove support for Ruby 2.7.
1 parent 8417b1e commit 5694b4e

File tree

18 files changed

+39
-22
lines changed

18 files changed

+39
-22
lines changed

.github/workflows/test-external.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- macos
2121

2222
ruby:
23-
- "2.7"
2423
- "3.0"
2524
- "3.1"
2625
- "3.2"

.github/workflows/test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- macos
2222

2323
ruby:
24-
- "2.7"
2524
- "3.0"
2625
- "3.1"
2726
- "3.2"

.mailmap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
Juan Antonio Martín Lucas <dev@jaml.pro>
22
Aurora Nockert <aurora@aventine.se>
33
Thomas Morgan <tm@iprog.com>
4+
Peter Runich <43861241+PeterRunich@users.noreply.github.com>

async-websocket.gemspec

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

99
spec.summary = "An async websocket library on top of websocket-driver."
10-
spec.authors = ["Samuel Williams", "destructobeam", "Olle Jonsson", "Aurora Nockert", "Bryan Powell", "Gleb Sinyavskiy", "Janko Marohnić", "Juan Antonio Martín Lucas", "Michel Boaventura"]
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"]
1111
spec.license = "MIT"
1212

1313
spec.cert_chain = ['release.cert']
@@ -17,13 +17,10 @@ Gem::Specification.new do |spec|
1717

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

20+
spec.required_ruby_version = ">= 3.0"
21+
2022
spec.add_dependency "async-http", "~> 0.54"
2123
spec.add_dependency "async-io", "~> 1.23"
2224
spec.add_dependency "protocol-rack", "~> 0.1"
2325
spec.add_dependency "protocol-websocket", "~> 0.11"
24-
25-
spec.add_development_dependency "bundler"
26-
spec.add_development_dependency "covered"
27-
spec.add_development_dependency "sus", "~> 0.18"
28-
spec.add_development_dependency "sus-fixtures-async-http", "~> 0.2.3"
2926
end

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-2022, by Samuel Williams.
5+
# Copyright, 2019-2023, by Samuel Williams.
66
# Copyright, 2020, by Juan Antonio Martín Lucas.
77

88
require 'async'

examples/utopia/bake.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, 2020-2022, by Samuel Williams.
4+
# Copyright, 2018-2023, by Samuel Williams.
55

66
# Prepare the application for start/restart.
77
def deploy

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-2022, by Samuel Williams.
5+
# Copyright, 2018-2023, by Samuel Williams.
66

77
require 'async'
88
require 'async/io/stream'

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

66
require 'async/websocket/adapters/rack'
77

gems.rb

Lines changed: 6 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, 2015-2022, by Samuel Williams.
4+
# Copyright, 2015-2023, by Samuel Williams.
55

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

@@ -20,3 +20,8 @@
2020
end
2121

2222
# 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.2.3"

lib/async/websocket.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, 2015-2022, by Samuel Williams.
4+
# Copyright, 2015-2023, by Samuel Williams.
55

66
require_relative 'websocket/version'
77
require_relative 'websocket/server'

0 commit comments

Comments
 (0)