Skip to content

Commit

Permalink
Modernize gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Apr 24, 2024
1 parent 660061d commit f0406b1
Show file tree
Hide file tree
Showing 17 changed files with 32 additions and 29 deletions.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,7 @@ root = true
[*]
indent_style = tab
indent_size = 2

[*.{yml,yaml}]
indent_style = space
indent_size = 2
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- macos

ruby:
- "3.2"
- "3.3"

steps:
- uses: actions/checkout@v4
Expand All @@ -47,7 +47,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"
bundler-cache: true

- uses: actions/download-artifact@v3
Expand Down
5 changes: 1 addition & 4 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branches:
- main

# Allows you to run this workflow manually from the Actions tab:
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages:
permissions:
contents: read
Expand All @@ -32,7 +29,7 @@ jobs:

- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2"
ruby-version: "3.3"
bundler-cache: true

- name: Installing packages
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
- macos

ruby:
- "3.0"
- "3.1"
- "3.2"
- "3.3"

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ jobs:
- macos

ruby:
- "3.0"
- "3.1"
- "3.2"
- "3.3"

experimental: [false]

Expand Down
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Juan Antonio Martín Lucas <dev@jaml.pro>
Aurora Nockert <aurora@aventine.se>
Thomas Morgan <tm@iprog.com>
Peter Runich <43861241+PeterRunich@users.noreply.github.com>
Simon Crocker <simon@stumpedlyfe.com> <destructobeam@stumpedlyfe.com>
7 changes: 4 additions & 3 deletions async-websocket.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ Gem::Specification.new do |spec|
spec.name = "async-websocket"
spec.version = Async::WebSocket::VERSION

spec.summary = "An async websocket library on top of websocket-driver."
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"]
spec.summary = "An async websocket library on top of protocol-websocket."
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"]
spec.license = "MIT"

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

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

spec.required_ruby_version = ">= 3.0"
spec.required_ruby_version = ">= 3.1"

spec.add_dependency "async-http", "~> 0.54"
spec.add_dependency "protocol-rack", "~> 0.5"
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

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

require 'async'
require 'async/http/endpoint'
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/multi-client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

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

require 'async'
require 'async/semaphore'
Expand Down
2 changes: 1 addition & 1 deletion examples/mud/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

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

require 'async'
Expand Down
2 changes: 1 addition & 1 deletion examples/polygon.io/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

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

require 'async'
require 'async/http/endpoint'
Expand Down
2 changes: 1 addition & 1 deletion fixtures/rack_application/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# frozen_string_literal: true

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

require 'async'
require 'async/http/endpoint'
Expand Down
16 changes: 8 additions & 8 deletions gems.rb
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
# frozen_string_literal: true

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

source 'https://rubygems.org'

gemspec

# gem "protocol-websocket", path: "../protocol-websocket"

group :maintenance, optional: true do
gem "bake-gem"
gem "bake-modernize"
Expand All @@ -15,13 +17,11 @@
end

group :test do
gem "sus"
gem "covered"

gem "sus-fixtures-async-http"

gem "bake-test"
gem "bake-test-external"
end

# gem "protocol-websocket", path: "../protocol-websocket"

# Moved Development Dependencies
gem "covered"
gem "sus", "~> 0.18"
gem "sus-fixtures-async-http", "~> 0.8"
2 changes: 1 addition & 1 deletion lib/async/websocket/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Released under the MIT License.
# Copyright, 2018-2023, by Samuel Williams.
# Copyright, 2019, by destructobeam.
# Copyright, 2019, by Simon Crocker.

require_relative 'connection'
require_relative 'response'
Expand Down
4 changes: 2 additions & 2 deletions license.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# MIT License

Copyright, 2015-2023, by Samuel Williams.
Copyright, 2015-2024, by Samuel Williams.
Copyright, 2019, by Bryan Powell.
Copyright, 2019, by destructobeam.
Copyright, 2019, by Simon Crocker.
Copyright, 2019, by Michel Boaventura.
Copyright, 2019, by Janko Marohnić.
Copyright, 2020-2021, by Olle Jonsson.
Expand Down
2 changes: 1 addition & 1 deletion test/async/websocket/adapters/rack.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Released under the MIT License.
# Copyright, 2015-2023, by Samuel Williams.
# Copyright, 2019, by destructobeam.
# Copyright, 2019, by Simon Crocker.

require 'async/websocket'
require 'async/websocket/client'
Expand Down
2 changes: 1 addition & 1 deletion test/async/websocket/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Released under the MIT License.
# Copyright, 2015-2023, by Samuel Williams.
# Copyright, 2019, by destructobeam.
# Copyright, 2019, by Simon Crocker.

require 'async/websocket/connection'

Expand Down

0 comments on commit f0406b1

Please # to comment.