Skip to content

Commit 1f12794

Browse files
committed
Modernize code.
1 parent e629e3f commit 1f12794

9 files changed

Lines changed: 26 additions & 10 deletions

File tree

.github/workflows/test-external.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ jobs:
2020
- macos
2121

2222
ruby:
23-
- "3.1"
2423
- "3.2"
2524
- "3.3"
2625
- "3.4"

.github/workflows/test.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
- macos
2222

2323
ruby:
24-
- "3.1"
2524
- "3.2"
2625
- "3.3"
2726
- "3.4"

.gitignore

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
/.bundle/
2-
/pkg/
1+
/.bundle
2+
/pkg
33
/gems.locked
44
/.covered.db
55
/external
@@ -11,4 +11,4 @@
1111
/ext/**/*.so
1212
/ext/**/*.bundle
1313
/ext/**/*.dSYM
14-
/ext/**/*.time
14+
/ext/**/*.time

.rubocop.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,18 @@ Layout/EmptyLinesAroundClassBody:
4545
Layout/EmptyLinesAroundModuleBody:
4646
Enabled: true
4747

48+
Layout/EmptyLineAfterMagicComment:
49+
Enabled: true
50+
51+
Layout/SpaceInsideBlockBraces:
52+
Enabled: true
53+
EnforcedStyle: no_space
54+
SpaceBeforeBlockParameters: false
55+
56+
Layout/SpaceAroundBlockParameters:
57+
Enabled: true
58+
EnforcedStyleInsidePipes: no_space
59+
4860
Style/FrozenStringLiteralComment:
4961
Enabled: true
5062

bake.rb

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

33
# Released under the MIT License.
4-
# Copyright, 2021-2024, by Samuel Williams.
5-
# Copyright, 2024, by Pavel Rosický.
4+
# Copyright, 2025, by Samuel Williams.
65

76
def build
87
ext_path = File.expand_path("ext", __dir__)
@@ -27,4 +26,4 @@ def clean
2726
def after_gem_release_version_increment(version)
2827
context["releases:update"].call(version)
2928
context["utopia:project:readme:update"].call
30-
end
29+
end

bake/fiber/profiler/analyze.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# frozen_string_literal: true
2+
3+
# Released under the MIT License.
4+
# Copyright, 2025, by Samuel Williams.
15

26
# @parameter input [Input] The input to process.
37
def analyze(input:)

config/sus.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, 2021-2025, by Samuel Williams.
4+
# Copyright, 2025, by Samuel Williams.
55

66
require_relative "environment"
77

examples/memory/big.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
#!/usr/bin/env ruby
22
# frozen_string_literal: true
33

4+
# Released under the MIT License.
5+
# Copyright, 2025, by Samuel Williams.
6+
47
require "fiber/profiler"
58
require "process/metrics"
69

fiber-profiler.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ Gem::Specification.new do |spec|
2525

2626
spec.extensions = ["ext/extconf.rb"]
2727

28-
spec.required_ruby_version = ">= 3.1"
28+
spec.required_ruby_version = ">= 3.2"
2929
end

0 commit comments

Comments
 (0)