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'

lib/async/websocket/adapters/rails.rb

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

33
# Released under the MIT License.
4-
# Copyright, 2021-2022, by Samuel Williams.
4+
# Copyright, 2021-2023, by Samuel Williams.
5+
# Copyright, 2023, by Emily Love Mills.
56

67
require_relative 'rack'
78

lib/async/websocket/upgrade_request.rb

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

33
# Released under the MIT License.
44
# Copyright, 2019-2023, by Samuel Williams.
5+
# Copyright, 2023, by Thomas Morgan.
56

67
require 'protocol/http/middleware'
78
require 'protocol/http/request'

lib/async/websocket/upgrade_response.rb

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

33
# Released under the MIT License.
44
# Copyright, 2019-2023, by Samuel Williams.
5+
# Copyright, 2023, by Thomas Morgan.
56

67
require 'async/http/body/hijack'
78
require 'protocol/http/response'

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

66
module Async
77
module WebSocket

license.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ Copyright, 2020-2021, by Olle Jonsson.
99
Copyright, 2020, by Juan Antonio Martín Lucas.
1010
Copyright, 2021, by Gleb Sinyavskiy.
1111
Copyright, 2021, by Aurora Nockert.
12+
Copyright, 2023, by Peter Runich.
13+
Copyright, 2023, by Thomas Morgan.
14+
Copyright, 2023, by Emily Love Mills.
1215

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

readme.md

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,16 @@ Please see the [project documentation](https://socketry.github.io/async-websocke
1212

1313
We welcome contributions to this project.
1414

15-
1. Fork it
16-
2. Create your feature branch (`git checkout -b my-new-feature`)
17-
3. Commit your changes (`git commit -am 'Add some feature'`)
18-
4. Push to the branch (`git push origin my-new-feature`)
19-
5. Create new Pull Request
15+
1. Fork it.
16+
2. Create your feature branch (`git checkout -b my-new-feature`).
17+
3. Commit your changes (`git commit -am 'Add some feature'`).
18+
4. Push to the branch (`git push origin my-new-feature`).
19+
5. Create new Pull Request.
20+
21+
### Developer Certificate of Origin
22+
23+
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.
24+
25+
### Contributor Covenant
26+
27+
This project is governed by [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.

test/async/websocket/adapters/rack.rb

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

33
# Released under the MIT License.
4-
# Copyright, 2019-2023, by Samuel Williams.
4+
# Copyright, 2015-2023, by Samuel Williams.
5+
# Copyright, 2019, by destructobeam.
56

67
require 'async/websocket'
78
require 'async/websocket/client'

test/async/websocket/client.rb

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

33
# Released under the MIT License.
44
# Copyright, 2023, by Samuel Williams.
5+
# Copyright, 2023, by Thomas Morgan.
56

67
require 'async/websocket/client'
78

0 commit comments

Comments
 (0)