We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 267cf92 commit 220c916Copy full SHA for 220c916
lib/ocran/direction.rb
@@ -209,7 +209,10 @@ def construct(builder)
209
# If requested, add all ruby standard libraries
210
if @option.add_all_core?
211
say "Will include all ruby core libraries"
212
- @pre_env.load_path.each do |load_path|
+ RbConfig::CONFIG
213
+ .slice("rubylibdir", "sitelibdir", "vendorlibdir")
214
+ .values
215
+ .each do |load_path|
216
path = Pathname.new(load_path)
217
# Match the load path against standard library, site_ruby, and vendor_ruby paths
218
path.to_posix.match(RUBY_LIBRARY_PATH_REGEX) do |m|
0 commit comments