We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d470927 commit a4db925Copy full SHA for a4db925
lib/pitchfork.rb
@@ -186,7 +186,13 @@ def time_now(int = false)
186
end
187
# :enddoc:
188
189
-require 'pitchfork/pitchfork_http'
+begin
190
+ # Load the precompiled version of the library
191
+ ruby_version = /(\d+\.\d+)/.match(RUBY_VERSION)
192
+ require "pitchfork/#{ruby_version}/pitchfork_http"
193
+rescue LoadError
194
+ require 'pitchfork/pitchfork_http'
195
+end
196
197
Pitchfork::REFORKING_AVAILABLE = Pitchfork::CHILD_SUBREAPER_AVAILABLE || Process.pid == 1
198
0 commit comments