Skip to content

Commit bfb8fdd

Browse files
committed
Modernize code.
1 parent 3a5b9b7 commit bfb8fdd

File tree

7 files changed

+11
-7
lines changed

7 files changed

+11
-7
lines changed

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Use Agent Context
44

5-
When working on this project, consult the `agent.md` file for project-specific guidelines, architecture decisions, and development patterns. This file contains curated information that will help you make better decisions aligned with the project's goals and standards.
5+
When working on this project, consult the `agents.md` file for project-specific guidelines, architecture decisions, and development patterns. This file contains curated information that will help you make better decisions aligned with the project's goals and standards.
66

77
If the file does not exist, you will need to install it, by running the following command:
88

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/agent.md
1+
/agents.md
22
/.context
33
/.bundle
44
/pkg

.rubocop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
plugins:
2+
- rubocop-md
23
- rubocop-socketry
34

45
AllCops:

examples/container.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# frozen_string_literal: true
33

44
# Released under the MIT License.
5-
# Copyright, 2019-2024, by Samuel Williams.
5+
# Copyright, 2019-2025, by Samuel Williams.
66
# Copyright, 2019, by Yuji Yaginuma.
77
# Copyright, 2022, by Anton Sozontov.
88

gems.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
gem "bake-modernize"
1313
gem "bake-releases"
1414

15+
gem "agent-context"
16+
1517
gem "utopia-project"
1618
end
1719

@@ -22,6 +24,7 @@
2224

2325
gem "rubocop"
2426
gem "rubocop-socketry"
27+
gem "rubocop-md"
2528

2629
gem "metrics"
2730

guides/getting-started/readme.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ $ bundle add async-container
2222
A container represents a set of child processes (or threads) which are doing work for you.
2323

2424
``` ruby
25-
require 'async/container'
25+
require "async/container"
2626

2727
Console.logger.debug!
2828

@@ -63,7 +63,7 @@ This gives well-behaved processes multiple opportunities to shut down gracefully
6363
The controller provides the life-cycle management for one or more containers of processes. It provides behaviour like starting, restarting, reloading and stopping. You can see some [example implementations in Falcon](https://github.com/socketry/falcon/blob/master/lib/falcon/controller/). If the process running the controller receives `SIGHUP` it will recreate the container gracefully.
6464

6565
``` ruby
66-
require 'async/container'
66+
require "async/container"
6767

6868
Console.logger.debug!
6969

@@ -73,7 +73,7 @@ class Controller < Async::Container::Controller
7373
# or Async::Container::Threaded.new
7474
# or Async::Container::Hybrid.new
7575
end
76-
76+
7777
def setup(container)
7878
container.run count: 2, restart: true do |instance|
7979
while true

lib/async/container/group.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ module Async
1212
module Container
1313
# The default timeout for interrupting processes, before escalating to terminating.
1414
INTERRUPT_TIMEOUT = ENV.fetch("ASYNC_CONTAINER_INTERRUPT_TIMEOUT", 10).to_f
15-
15+
1616
# The default timeout for terminating processes, before escalating to killing.
1717
TERMINATE_TIMEOUT = ENV.fetch("ASYNC_CONTAINER_TERMINATE_TIMEOUT", 10).to_f
1818

0 commit comments

Comments
 (0)