Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
10 changes: 5 additions & 5 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- macos

ruby:
- "3.2"
- "3.3"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
Expand All @@ -34,7 +34,7 @@ jobs:
timeout-minutes: 5
run: bundle exec bake test

- uses: actions/upload-artifact@v2
- uses: actions/upload-artifact@v3
with:
name: coverage-${{matrix.os}}-${{matrix.ruby}}
path: .covered.db
Expand All @@ -44,10 +44,10 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- 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
11 changes: 4 additions & 7 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 @@ -28,11 +25,11 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

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

- name: Installing packages
Expand All @@ -43,7 +40,7 @@ jobs:
run: bundle exec bake utopia:project:static --force no

- name: Upload documentation artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v2
with:
path: docs

Expand All @@ -58,4 +55,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v3
3 changes: 2 additions & 1 deletion .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@ jobs:
- "3.0"
- "3.1"
- "3.2"
- "3.3"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,9 @@ jobs:
- macos

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

experimental: [false]

Expand All @@ -40,7 +39,7 @@ jobs:
experimental: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
Expand Down
14 changes: 6 additions & 8 deletions async-io.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,22 @@ Gem::Specification.new do |spec|
spec.version = Async::IO::VERSION

spec.summary = "Provides support for asynchonous TCP, UDP, UNIX and SSL sockets."
spec.authors = ["Samuel Williams", "Olle Jonsson", "Benoit Daloze", "Thibaut Girka", "Janko Marohnić", "Aurora Nockert", "Bruno Sutic", "Cyril Roelandt", "Hal Brodigan", "Jiang Jinyang"]
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"]
spec.license = "MIT"

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

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

spec.metadata = {
"documentation_uri" => "https://socketry.github.io/async-io/",
"source_code_uri" => "https://github.com/socketry/async-io.git",
}

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

spec.required_ruby_version = ">= 2.5"

spec.add_dependency "async"

spec.add_development_dependency "async-container", "~> 0.15"
spec.add_development_dependency "async-rspec", "~> 1.10"
spec.add_development_dependency "bake"
spec.add_development_dependency "covered"
spec.add_development_dependency "rack-test"
spec.add_development_dependency "rspec", "~> 3.6"
end
133 changes: 0 additions & 133 deletions conduct.md

This file was deleted.

4 changes: 4 additions & 0 deletions examples/ssl/client.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2023, by Hal Brodigan.

require 'async'
require 'async/io'
Expand Down
4 changes: 4 additions & 0 deletions examples/ssl/server.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2023, by Hal Brodigan.

require 'async'
require 'async/io'
Expand Down
7 changes: 7 additions & 0 deletions gems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,17 @@
end

group :test do
gem "rspec", "~> 3.6"
gem "async-rspec", "~> 1.10"
gem "covered"

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

gem 'benchmark-ips'

gem 'http'
gem "async-container", "~> 0.15"
gem "rack-test"
end
1 change: 1 addition & 0 deletions gems/async-head.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
source 'https://rubygems.org'

gemspec path: "../"
eval_gemfile "../gems.rb"

gem 'async', git: "https://github.com/socketry/async"
1 change: 1 addition & 0 deletions gems/async-v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@
source 'https://rubygems.org'

gemspec path: "../"
eval_gemfile "../gems.rb"

gem 'async', '~> 1.0'
2 changes: 1 addition & 1 deletion lib/async/io.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

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

require 'async'

Expand Down
2 changes: 1 addition & 1 deletion lib/async/io/endpoint.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2017-2023, by Samuel Williams.
# Copyright, 2017-2024, by Samuel Williams.
# Copyright, 2019, by Olle Jonsson.

require_relative 'address'
Expand Down
1 change: 1 addition & 0 deletions lib/async/io/generic.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Released under the MIT License.
# Copyright, 2017-2023, by Samuel Williams.
# Copyright, 2021, by Aurora Nockert.
# Copyright, 2023, by Patrik Wenger.

require 'async/wrapper'
require 'forwardable'
Expand Down
2 changes: 1 addition & 1 deletion lib/async/io/shared_endpoint.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

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

require_relative 'endpoint'
Expand Down
2 changes: 1 addition & 1 deletion lib/async/io/ssl_endpoint.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

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

require_relative 'host_endpoint'
Expand Down
1 change: 1 addition & 0 deletions lib/async/io/stream.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
# Copyright, 2017-2023, by Samuel Williams.
# Copyright, 2018, by Janko Marohnić.
# Copyright, 2021, by Aurora Nockert.
# Copyright, 2023, by Maruth Goyal.

require_relative 'buffer'
require_relative 'generic'
Expand Down
1 change: 1 addition & 0 deletions lib/async/io/unix_endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
# Released under the MIT License.
# Copyright, 2019-2023, by Samuel Williams.
# Copyright, 2019, by Olle Jonsson.
# Copyright, 2023, by Hasan Kumar.

require_relative 'address_endpoint'

Expand Down
2 changes: 1 addition & 1 deletion lib/async/io/version.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# frozen_string_literal: true

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

module Async
module IO
Expand Down
Loading