diff --git a/.editorconfig b/.editorconfig index 538ba2b..a6e7d26 100644 --- a/.editorconfig +++ b/.editorconfig @@ -3,3 +3,7 @@ root = true [*] indent_style = tab indent_size = 2 + +[*.{yml,yaml}] +indent_style = space +indent_size = 2 diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 5e9afd7..68adbf2 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -21,10 +21,10 @@ jobs: - macos ruby: - - "3.1" + - "3.3" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{matrix.ruby}} @@ -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 @@ -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.1" + ruby-version: "3.3" bundler-cache: true - uses: actions/download-artifact@v3 diff --git a/.github/workflows/documentation.yaml b/.github/workflows/documentation.yaml index 0e435e2..8dc5227 100644 --- a/.github/workflows/documentation.yaml +++ b/.github/workflows/documentation.yaml @@ -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 @@ -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.1" + ruby-version: "3.3" bundler-cache: true - name: Installing packages @@ -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 @@ -58,4 +55,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v3 diff --git a/.github/workflows/test-external.yaml b/.github/workflows/test-external.yaml index ff2ced8..18efa2c 100644 --- a/.github/workflows/test-external.yaml +++ b/.github/workflows/test-external.yaml @@ -20,12 +20,13 @@ jobs: - macos ruby: - - "2.7" - "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}} diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 75aa82e..1dca864 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,9 +21,10 @@ jobs: - macos ruby: - - "2.7" - "3.0" - "3.1" + - "3.2" + - "3.3" experimental: [false] @@ -39,7 +40,7 @@ jobs: experimental: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: ruby/setup-ruby@v1 with: ruby-version: ${{matrix.ruby}} diff --git a/async-container.gemspec b/async-container.gemspec index eb559ea..50c9e7f 100644 --- a/async-container.gemspec +++ b/async-container.gemspec @@ -17,14 +17,8 @@ Gem::Specification.new do |spec| spec.files = Dir.glob(['{lib}/**/*', '*.md'], File::FNM_DOTMATCH, base: __dir__) - spec.required_ruby_version = ">= 2.5" + spec.required_ruby_version = ">= 3.0" spec.add_dependency "async" spec.add_dependency "async-io" - - spec.add_development_dependency "bake-test" - spec.add_development_dependency "bake-test-external" - spec.add_development_dependency "bundler" - spec.add_development_dependency "covered" - spec.add_development_dependency "sus" end diff --git a/examples/benchmark/scalability.rb b/examples/benchmark/scalability.rb index 013c3e7..be4ba4e 100644 --- a/examples/benchmark/scalability.rb +++ b/examples/benchmark/scalability.rb @@ -1,3 +1,7 @@ +# frozen_string_literal: true + +# Released under the MIT License. +# Copyright, 2022, by Samuel Williams. # gem install async-container gem "async-container" diff --git a/examples/controller.rb b/examples/controller.rb index 1712418..8e3b00d 100755 --- a/examples/controller.rb +++ b/examples/controller.rb @@ -2,8 +2,6 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2019-2022, by Samuel Williams. -# Copyright, 2019, by Yuji Yaginuma. # Copyright, 2022, by Anton Sozontov. require '../lib/async/container/controller' diff --git a/examples/http/client.rb b/examples/http/client.rb index 370997b..856d8b3 100644 --- a/examples/http/client.rb +++ b/examples/http/client.rb @@ -1,3 +1,7 @@ +# frozen_string_literal: true + +# Released under the MIT License. +# Copyright, 2022, by Samuel Williams. require 'async' require 'async/http/endpoint' diff --git a/examples/http/server.rb b/examples/http/server.rb index ab4a317..83a49d4 100644 --- a/examples/http/server.rb +++ b/examples/http/server.rb @@ -1,3 +1,7 @@ +# frozen_string_literal: true + +# Released under the MIT License. +# Copyright, 2022, by Samuel Williams. require 'async/container' diff --git a/gems.rb b/gems.rb index 26fe797..cd4ecf1 100644 --- a/gems.rb +++ b/gems.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2020-2022, by Samuel Williams. +# Copyright, 2017-2022, by Samuel Williams. source 'https://rubygems.org' @@ -14,3 +14,11 @@ gem "utopia-project" end + +group :test do + gem "sus" + gem "covered" + + gem "bake-test" + gem "bake-test-external" +end diff --git a/lib/async/container/group.rb b/lib/async/container/group.rb index d691261..cf9bbed 100644 --- a/lib/async/container/group.rb +++ b/lib/async/container/group.rb @@ -1,7 +1,7 @@ # frozen_string_literal: true # Released under the MIT License. -# Copyright, 2019-2022, by Samuel Williams. +# Copyright, 2018-2022, by Samuel Williams. require 'fiber' require 'async/clock' diff --git a/readme.md b/readme.md index 2d3d286..dca5437 100644 --- a/readme.md +++ b/readme.md @@ -25,3 +25,11 @@ We welcome contributions to this project. 3. Commit your changes (`git commit -am 'Add some feature'`). 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.