We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36b8587 commit 5a81b11Copy full SHA for 5a81b11
1 file changed
ruby/private/binary_wrapper.tpl
@@ -20,6 +20,14 @@
20
21
require 'rbconfig'
22
23
+# Ruby 2.4 and older does not have +.children+
24
+# So we define it.
25
+unless Dir.respond_to?(:children)
26
+ Dir.define_method :children do |dir|
27
+ Dir.entries(dir).reject { |entry| %w(. ..).include?(entry) }
28
+ end
29
+end
30
+
31
def find_runfiles
32
stub_filename = File.absolute_path($0)
33
runfiles = "#{stub_filename}.runfiles"
0 commit comments