Skip to content

Commit

Permalink
Modernize gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 3, 2024
1 parent 0ed9bef commit 672ba46
Show file tree
Hide file tree
Showing 21 changed files with 59 additions and 169 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
10 changes: 5 additions & 5 deletions .github/workflows/coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ jobs:
- os: ubuntu
ruby: "3.3"
selector: URing

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

- name: Install packages (Ubuntu)
if: matrix.os == 'ubuntu'
Expand All @@ -49,7 +49,7 @@ jobs:
IO_EVENT_SELECTOR: ${{matrix.selector}}
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 @@ -59,10 +59,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
8 changes: 4 additions & 4 deletions .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,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 +43,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 +58,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v3
2 changes: 1 addition & 1 deletion .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- "3.3"

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{matrix.ruby}}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,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
1 change: 1 addition & 0 deletions .mailmap
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ Sokolov Yura <[email protected]>
Masafumi Okura <[email protected]>
Masayuki Yamamoto <[email protected]>
Leon Löchner <[email protected]> <[email protected]>
Math Ieu <[email protected]>
14 changes: 4 additions & 10 deletions async.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,17 @@ Gem::Specification.new do |spec|
spec.version = Async::VERSION

spec.summary = "A concurrency framework for Ruby."
spec.authors = ["Samuel Williams", "Bruno Sutic", "Jeremy Jung", "Devin Christensen", "Kent Gruber", "Brian Morearty", "Colin Kelley", "Jiang Jinyang", "Julien Portalier", "Jun Jiang", "Ken Muryoi", "Leon Löchner", "Masafumi Okura", "Masayuki Yamamoto", "Olle Jonsson", "Patrik Wenger", "Ryan Musgrave", "Salim Semaoune", "Shannon Skipper", "Sokolov Yura", "Stefan Wrobel", "Trevor Turk"]
spec.authors = ["Samuel Williams", "Bruno Sutic", "Jeremy Jung", "Olle Jonsson", "Devin Christensen", "Emil Tin", "Kent Gruber", "Brian Morearty", "Colin Kelley", "Gert Goet", "Jiang Jinyang", "Julien Portalier", "Jun Jiang", "Ken Muryoi", "Leon Löchner", "Masafumi Okura", "Masayuki Yamamoto", "Math Ieu", "Patrik Wenger", "Ryan Musgrave", "Salim Semaoune", "Shannon Skipper", "Sokolov Yura", "Stefan Wrobel", "Trevor Turk"]
spec.license = "MIT"

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

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

spec.metadata["documentation_uri"] = "https://socketry.github.io/async/"
spec.metadata = {
"documentation_uri" => "https://socketry.github.io/async/",
}

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

Expand All @@ -25,12 +27,4 @@ Gem::Specification.new do |spec|
spec.add_dependency "fiber-annotation"
spec.add_dependency "io-event", "~> 1.1"
spec.add_dependency "timers", "~> 4.1"

spec.add_development_dependency "bake-test"
spec.add_development_dependency "bake-test-external"
spec.add_development_dependency "benchmark-ips"
spec.add_development_dependency "bundler"
spec.add_development_dependency "covered", "~> 0.18.3"
spec.add_development_dependency "sus", "~> 0.15"
spec.add_development_dependency "sus-fixtures-async"
end
133 changes: 0 additions & 133 deletions conduct.md

This file was deleted.

12 changes: 11 additions & 1 deletion gems.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# frozen_string_literal: true

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

source 'https://rubygems.org'

Expand All @@ -16,3 +17,12 @@
gem "bake-github-pages"
gem "utopia-project"
end

group :test do
gem "bake-test"
gem "bake-test-external"
gem "benchmark-ips"
gem "covered", "~> 0.18.3"
gem "sus", "~> 0.15"
gem "sus-fixtures-async"
end
2 changes: 1 addition & 1 deletion lib/async/scheduler.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, 2020-2023, by Samuel Williams.
# Copyright, 2020-2024, by Samuel Williams.
# Copyright, 2020, by Jun Jiang.
# Copyright, 2021, by Julien Portalier.

Expand Down
3 changes: 2 additions & 1 deletion lib/async/task.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# frozen_string_literal: true

# Released under the MIT License.
# Copyright, 2017-2023, by Samuel Williams.
# Copyright, 2017-2024, by Samuel Williams.
# Copyright, 2017, by Kent Gruber.
# Copyright, 2017, by Devin Christensen.
# Copyright, 2020, by Patrik Wenger.
# Copyright, 2023, by Math Ieu.

require 'fiber'

Expand Down
2 changes: 1 addition & 1 deletion lib/async/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
VERSION = "2.7.0"
Expand Down
7 changes: 5 additions & 2 deletions license.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# MIT License

Copyright, 2017-2023, by Samuel Williams.
Copyright, 2017-2024, by Samuel Williams.
Copyright, 2017, by Kent Gruber.
Copyright, 2017, by Devin Christensen.
Copyright, 2018, by Sokolov Yura.
Copyright, 2018, by Jiang Jinyang.
Copyright, 2019, by Jeremy Jung.
Copyright, 2019, by Ryan Musgrave.
Copyright, 2020, by Olle Jonsson.
Copyright, 2020-2023, by Olle Jonsson.
Copyright, 2020, by Salim Semaoune.
Copyright, 2020, by Brian Morearty.
Copyright, 2020, by Stefan Wrobel.
Expand All @@ -22,6 +22,9 @@ Copyright, 2022, by Trevor Turk.
Copyright, 2022, by Masayuki Yamamoto.
Copyright, 2023, by Leon Löchner.
Copyright, 2023, by Colin Kelley.
Copyright, 2023, by Math Ieu.
Copyright, 2023, by Emil Tin.
Copyright, 2023, by Gert Goet.

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
11 changes: 9 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ Async is a composable asynchronous I/O framework for Ruby based on [io-event](ht
> [tus-ruby-server](https://github.com/janko/tus-ruby-server) – would really benefit from non-blocking I/O. It's really
> beautifully designed." *[janko](https://github.com/janko)*
[![Development
Status](https://github.com/socketry/async/workflows/Test/badge.svg)](https://github.com/socketry/async/actions?workflow=Test)
[![Development Status](https://github.com/socketry/async/workflows/Test/badge.svg)](https://github.com/socketry/async/actions?workflow=Test)

## Features

Expand Down Expand Up @@ -46,6 +45,14 @@ We welcome contributions to this project.
4. Push to the branch (`git push origin my-new-feature`).
5. Create new Pull Request.

### Developer Certificate of Origin

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.

### Contributor Covenant

This project is governed by the [Contributor Covenant](https://www.contributor-covenant.org/). All contributors and participants agree to abide by its terms.

## See Also

- [async-io](https://github.com/socketry/async-io) — Asynchronous networking and sockets.
Expand Down
3 changes: 2 additions & 1 deletion test/async/children.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# frozen_string_literal: true

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

require 'async/node'

Expand Down
2 changes: 1 addition & 1 deletion test/async/scheduler.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, 2020-2023, by Samuel Williams.
# Copyright, 2020-2024, by Samuel Williams.

require 'sus/fixtures/async'
require 'async/reactor'
Expand Down
4 changes: 3 additions & 1 deletion test/async/task.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
# frozen_string_literal: true

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

require 'async'
require 'async/clock'
Expand Down
Loading

0 comments on commit 672ba46

Please sign in to comment.