We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d0b71d commit af7cfdcCopy full SHA for af7cfdc
lib/stack_frames.rb
@@ -1,7 +1,13 @@
1
# frozen_string_literal: true
2
3
require 'stack_frames/version'
4
-require 'stack_frames/stack_frames'
+
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
11
12
StackFrames::Frame.singleton_class.class_eval do
13
private(:new)
0 commit comments