Skip to content

Commit 7fbb514

Browse files
authored
Ruby 2.7 support, build. Closes #41 (#48)
Removes anon block parameter.
1 parent bd9c457 commit 7fbb514

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
bundler_version: 2.4.4
1515
- ruby: 3.0
1616
bundler_version: 2.4.4
17+
- ruby: 2.7
18+
bundler_version: 2.4.4
1719
env:
1820
CI: 1
1921
BUNDLER_VERSION: ${{ matrix.bundler_version }}

.rubocop.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
AllCops:
2+
TargetRubyVersion: 2.7

.standard.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
fix: true
22
format: progress
3+
extend_config:
4+
- .rubocop.yml

lib/singed/kernel_ext.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
module Kernel
2-
def flamegraph(label = nil, open: true, ignore_gc: false, interval: 1000, io: $stdout, &)
2+
def flamegraph(label = nil, open: true, ignore_gc: false, interval: 1000, io: $stdout, &block)
33
fg = Singed::Flamegraph.new(label: label, ignore_gc: ignore_gc, interval: interval)
4-
result = fg.record(&)
4+
result = fg.record(&block)
55
fg.save
66

77
# avoid a dep on a colorizing gem by doing this ourselves

0 commit comments

Comments
 (0)