Skip to content

Commit dfd9419

Browse files
committed
Modernize code.
1 parent 6fcaea4 commit dfd9419

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+114
-108
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636

3737
- uses: actions/upload-artifact@v4
3838
with:
39+
include-hidden-files: true
40+
if-no-files-found: error
3941
name: coverage-${{matrix.os}}-${{matrix.ruby}}
4042
path: .covered.db
4143

.rubocop.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,3 +47,7 @@ Layout/EmptyLinesAroundModuleBody:
4747

4848
Style/FrozenStringLiteralComment:
4949
Enabled: true
50+
51+
Style/StringLiterals:
52+
Enabled: true
53+
EnforcedStyle: double_quotes

async-container.gemspec

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ Gem::Specification.new do |spec|
1010
spec.authors = ["Samuel Williams", "Olle Jonsson", "Anton Sozontov", "Juan Antonio Martín Lucas", "Yuji Yaginuma"]
1111
spec.license = "MIT"
1212

13-
spec.cert_chain = ['release.cert']
14-
spec.signing_key = File.expand_path('~/.gem/release.pem')
13+
spec.cert_chain = ["release.cert"]
14+
spec.signing_key = File.expand_path("~/.gem/release.pem")
1515

1616
spec.homepage = "https://github.com/socketry/async-container"
1717

@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
2020
"source_code_uri" => "https://github.com/socketry/async-container.git",
2121
}
2222

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

2525
spec.required_ruby_version = ">= 3.1"
2626

config/sus.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# Released under the MIT License.
44
# Copyright, 2022, by Samuel Williams.
55

6-
require 'covered/sus'
6+
require "covered/sus"
77
include Covered::Sus
88

9-
ENV['CONSOLE_LEVEL'] ||= 'fatal'
9+
ENV["CONSOLE_LEVEL"] ||= "fatal"

examples/benchmark/scalability.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
# gem install async-container
77
gem "async-container"
88

9-
require 'async/clock'
10-
require_relative '../../lib/async/container'
9+
require "async/clock"
10+
require_relative "../../lib/async/container"
1111

1212
def fibonacci(n)
1313
if n < 2
@@ -17,7 +17,7 @@ def fibonacci(n)
1717
end
1818
end
1919

20-
require 'sqlite3'
20+
require "sqlite3"
2121

2222
def work(*)
2323
512.times do

examples/channel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Copyright, 2020-2022, by Samuel Williams.
55
# Copyright, 2020, by Olle Jonsson.
66

7-
require 'json'
7+
require "json"
88

99
class Channel
1010
def initialize

examples/container.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Copyright, 2019, by Yuji Yaginuma.
77
# Copyright, 2022, by Anton Sozontov.
88

9-
require '../lib/async/container'
9+
require "../lib/async/container"
1010

1111
Console.logger.debug!
1212

examples/controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
# Copyright, 2022, by Anton Sozontov.
66
# Copyright, 2024, by Samuel Williams.
77

8-
require '../lib/async/container/controller'
8+
require "../lib/async/container/controller"
99

1010
class Controller < Async::Container::Controller
1111
def setup(container)

examples/fan-out/pipe.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Released under the MIT License.
55
# Copyright, 2020-2024, by Samuel Williams.
66

7-
require 'async/container'
7+
require "async/container"
88

99
container = Async::Container.new
1010
input, output = IO.pipe

examples/grace/server.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
# Released under the MIT License.
55
# Copyright, 2024, by Samuel Williams.
66

7-
require '../../lib/async/container'
8-
require 'io/endpoint/host_endpoint'
7+
require "../../lib/async/container"
8+
require "io/endpoint/host_endpoint"
99

1010
Console.logger.debug!
1111

0 commit comments

Comments
 (0)