Skip to content

Commit 979c470

Browse files
committed
Modernize code.
1 parent 400bc2e commit 979c470

13 files changed

Lines changed: 39 additions & 18 deletions

File tree

.rubocop.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,25 @@ Layout/SpaceAroundBlockParameters:
8282
Enabled: true
8383
EnforcedStyleInsidePipes: no_space
8484

85+
Layout/FirstArrayElementIndentation:
86+
Enabled: true
87+
EnforcedStyle: consistent
88+
89+
Layout/ArrayAlignment:
90+
Enabled: true
91+
EnforcedStyle: with_fixed_indentation
92+
93+
Layout/FirstArgumentIndentation:
94+
Enabled: true
95+
EnforcedStyle: consistent
96+
97+
Layout/ArgumentAlignment:
98+
Enabled: true
99+
EnforcedStyle: with_fixed_indentation
100+
101+
Layout/ClosingParenthesisIndentation:
102+
Enabled: true
103+
85104
Style/FrozenStringLiteralComment:
86105
Enabled: true
87106

lib/async/clock.rb

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

33
# Released under the MIT License.
4-
# Copyright, 2018-2025, by Samuel Williams.
4+
# Copyright, 2018-2026, by Samuel Williams.
5+
# Copyright, 2026, by Shopify Inc.
56

67
module Async
78
# A convenient wrapper around the internal monotonic clock.

lib/async/fork_handler.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2025, by Shopify Inc.
5-
# Copyright, 2025, by Samuel Williams.
4+
# Copyright, 2025-2026, by Shopify Inc.
5+
# Copyright, 2025-2026, by Samuel Williams.
66

77
module Async
88
# Private module that hooks into Process._fork to handle fork events.

lib/async/node.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2017-2025, by Samuel Williams.
4+
# Copyright, 2017-2026, by Samuel Williams.
55
# Copyright, 2017, by Kent Gruber.
66
# Copyright, 2022, by Shannon Skipper.
7-
# Copyright, 2025, by Shopify Inc.
7+
# Copyright, 2025-2026, by Shopify Inc.
88

99
require "fiber/annotation"
1010

lib/async/scheduler.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2020-2025, by Samuel Williams.
4+
# Copyright, 2020-2026, by Samuel Williams.
55
# Copyright, 2020, by Jun Jiang.
66
# Copyright, 2021, by Julien Portalier.
7-
# Copyright, 2025, by Shopify Inc.
7+
# Copyright, 2025-2026, by Shopify Inc.
88

99
require_relative "clock"
1010
require_relative "task"

lib/async/task.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2017-2025, by Samuel Williams.
4+
# Copyright, 2017-2026, by Samuel Williams.
55
# Copyright, 2017, by Kent Gruber.
66
# Copyright, 2017, by Devin Christensen.
77
# Copyright, 2020, by Patrik Wenger.
88
# Copyright, 2023, by Math Ieu.
99
# Copyright, 2025, by Shigeru Nakajima.
10-
# Copyright, 2025, by Shopify Inc.
10+
# Copyright, 2025-2026, by Shopify Inc.
1111

1212
require "fiber"
1313
require "console"

lib/async/version.rb

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

33
# Released under the MIT License.
4-
# Copyright, 2017-2025, by Samuel Williams.
4+
# Copyright, 2017-2026, by Samuel Williams.
55

66
module Async
77
VERSION = "2.36.0"

license.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Copyright, 2025, by Jahfer Husain.
3131
Copyright, 2025, by Mark Montroy.
3232
Copyright, 2025, by Shigeru Nakajima.
3333
Copyright, 2025, by Alan Wu.
34-
Copyright, 2025, by Shopify Inc.
34+
Copyright, 2025-2026, by Shopify Inc.
3535
Copyright, 2025, by Josh Teeter.
3636
Copyright, 2025, by Jatin Goyal.
3737
Copyright, 2025, by Yuhi Sato.

test/async/clock.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# frozen_string_literal: true
22

33
# Released under the MIT License.
4-
# Copyright, 2018-2025, by Samuel Williams.
5-
# Copyright, 2025, by Shopify Inc.
4+
# Copyright, 2018-2026, by Samuel Williams.
5+
# Copyright, 2025-2026, by Shopify Inc.
66

77
require "async/clock"
88
require "sus/fixtures/time/quantum"

test/async/idler.rb

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

33
# Released under the MIT License.
4-
# Copyright, 2024-2025, by Samuel Williams.
4+
# Copyright, 2024-2026, by Samuel Williams.
55

66
require "async/idler"
77
require "sus/fixtures/async"

0 commit comments

Comments
 (0)