Skip to content

Commit af7cfdc

Browse files
committed
WIP
1 parent 2d0b71d commit af7cfdc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

lib/stack_frames.rb

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

33
require 'stack_frames/version'
4-
require 'stack_frames/stack_frames'
4+
5+
begin
6+
ruby_version = /(\d+\.\d+)/.match(RUBY_VERSION)
7+
require "stack_frames/#{ruby_version}/stack_frames"
8+
rescue LoadError
9+
require "stack_frames/stack_frames"
10+
end
511

612
StackFrames::Frame.singleton_class.class_eval do
713
private(:new)

0 commit comments

Comments
 (0)