Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
bundler_version: 2.4.4
- ruby: 3.0
bundler_version: 2.4.4
- ruby: 2.7
bundler_version: 2.4.4
env:
CI: 1
BUNDLER_VERSION: ${{ matrix.bundler_version }}
Expand Down
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
AllCops:
TargetRubyVersion: 2.7
2 changes: 2 additions & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
fix: true
format: progress
extend_config:
- .rubocop.yml
4 changes: 2 additions & 2 deletions lib/singed/kernel_ext.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Kernel
def flamegraph(label = nil, open: true, ignore_gc: false, interval: 1000, io: $stdout, &)
def flamegraph(label = nil, open: true, ignore_gc: false, interval: 1000, io: $stdout, &block)
fg = Singed::Flamegraph.new(label: label, ignore_gc: ignore_gc, interval: interval)
result = fg.record(&)
result = fg.record(&block)
fg.save

# avoid a dep on a colorizing gem by doing this ourselves
Expand Down