Skip to content

Commit

Permalink
Modernize code.
Browse files Browse the repository at this point in the history
  • Loading branch information
ioquatix committed Jan 10, 2025
1 parent d1c61e1 commit d625155
Show file tree
Hide file tree
Showing 19 changed files with 31 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
ruby-version: "3.4"
bundler-cache: true

- name: Validate coverage
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

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

- name: Installing packages
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
- macos

ruby:
- "3.3"
- "3.4"

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -49,7 +49,7 @@ jobs:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.3"
ruby-version: "3.4"
bundler-cache: true

- uses: actions/download-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test-external.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- "3.1"
- "3.2"
- "3.3"
- "3.4"

steps:
- uses: actions/checkout@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
- "3.1"
- "3.2"
- "3.3"
- "3.4"

experimental: [false]

Expand Down
3 changes: 3 additions & 0 deletions examples/puma/application.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/usr/bin/env ruby
# frozen_string_literal: true

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

require "async/container"
require "console"

Expand Down
2 changes: 2 additions & 0 deletions examples/puma/config.ru
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

run do |env|
[200, {"content-type" => "text/plain"}, ["Hello World #{Time.now}"]]
end
5 changes: 5 additions & 0 deletions examples/puma/gems.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# frozen_string_literal: true

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

source "https://rubygems.org"

gem "async-container", path: "../.."
Expand Down
5 changes: 5 additions & 0 deletions examples/puma/puma.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# frozen_string_literal: true

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

on_booted do
require "async/container/notify"

Expand Down
2 changes: 1 addition & 1 deletion lib/async/container/controller.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-2024, by Samuel Williams.
# Copyright, 2018-2025, by Samuel Williams.

require_relative "error"
require_relative "best"
Expand Down
2 changes: 1 addition & 1 deletion lib/async/container/error.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, 2019-2024, by Samuel Williams.
# Copyright, 2019-2025, by Samuel Williams.

module Async
module Container
Expand Down
2 changes: 1 addition & 1 deletion lib/async/container/process.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-2024, by Samuel Williams.
# Copyright, 2020-2025, by Samuel Williams.

require_relative "channel"
require_relative "error"
Expand Down
2 changes: 1 addition & 1 deletion lib/async/container/thread.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-2024, by Samuel Williams.
# Copyright, 2020-2025, by Samuel Williams.
# Copyright, 2020, by Olle Jonsson.

require_relative "channel"
Expand Down
2 changes: 1 addition & 1 deletion license.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# MIT License

Copyright, 2017-2024, by Samuel Williams.
Copyright, 2017-2025, by Samuel Williams.
Copyright, 2019, by Yuji Yaginuma.
Copyright, 2020, by Olle Jonsson.
Copyright, 2020, by Juan Antonio Martín Lucas.
Expand Down
2 changes: 1 addition & 1 deletion test/async/container/.dots.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-2024, by Samuel Williams.
# Copyright, 2020-2025, by Samuel Williams.

require_relative "../../../lib/async/container/controller"

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

require_relative "../../../lib/async/container/controller"

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

require "async/container/controller"

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

require_relative "../../../../lib/async/container"

Expand Down
2 changes: 1 addition & 1 deletion test/async/container/notify/pipe.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-2022, by Samuel Williams.
# Copyright, 2020-2025, by Samuel Williams.
# Copyright, 2020, by Olle Jonsson.

require "async/container/controller"
Expand Down

0 comments on commit d625155

Please sign in to comment.