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 81f3c65..68adbf2 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -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}} @@ -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.2" + 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 3d483fc..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.2" + 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 214149c..21898f5 100644 --- a/.github/workflows/test-external.yaml +++ b/.github/workflows/test-external.yaml @@ -20,13 +20,12 @@ 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 5c765b6..0769a98 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -21,10 +21,9 @@ jobs: - macos ruby: - - "2.7" - - "3.0" - "3.1" - "3.2" + - "3.3" experimental: [false] @@ -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}} diff --git a/async-pool.gemspec b/async-pool.gemspec index aee746d..93fc1a0 100644 --- a/async-pool.gemspec +++ b/async-pool.gemspec @@ -7,7 +7,7 @@ Gem::Specification.new do |spec| spec.version = Async::Pool::VERSION spec.summary = "A singleplex and multiplex resource pool for implementing robust clients." - spec.authors = ["Samuel Williams", "Olle Jonsson", "Simon Perepelitsa"] + spec.authors = ["Samuel Williams", "Olle Jonsson", "Simon Perepelitsa", "Thomas Morgan"] spec.license = "MIT" spec.cert_chain = ['release.cert'] @@ -16,19 +16,14 @@ Gem::Specification.new do |spec| spec.homepage = "https://github.com/socketry/async-pool" spec.metadata = { + "documentation_uri" => "https://socketry.github.io/async-pool/", "funding_uri" => "https://github.com/sponsors/ioquatix/", + "source_code_uri" => "https://github.com/socketry/async-pool.git", } spec.files = Dir.glob(['{lib}/**/*', '*.md'], File::FNM_DOTMATCH, base: __dir__) - spec.required_ruby_version = ">= 2.5" + spec.required_ruby_version = ">= 3.1" spec.add_dependency "async", ">= 1.25" - - 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", "~> 0.15" - spec.add_development_dependency "sus-fixtures-async" end diff --git a/gems.rb b/gems.rb index 4cf5551..efd876f 100644 --- a/gems.rb +++ b/gems.rb @@ -14,3 +14,12 @@ gem "utopia-project" gem "bake-github-pages" end + +group :test do + gem "sus", "~> 0.15" + gem "sus-fixtures-async" + gem "covered" + + gem "bake-test" + gem "bake-test-external" +end diff --git a/readme.md b/readme.md index c50bba9..179fa10 100644 --- a/readme.md +++ b/readme.md @@ -52,3 +52,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.