File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 6565#
6666# Since OS platform is unlikely to change between Bazel builds on the same machine,
6767# `#{gem_name}-#{gem_version}*` would be sufficient to narrow down matches to at most one.
68+ #
69+ # Library path differs across implementations as `lib/ruby` on MRI and `lib/jruby` on JRuby.
6870GEM_PATH = -> ( ruby_version , gem_name , gem_version ) do
69- Dir . glob ( "lib/ruby /#{ ruby_version } /gems/#{ gem_name } -#{ gem_version } *" ) . first
71+ Dir . glob ( "lib/#{ RbConfig :: CONFIG [ 'RUBY_INSTALL_NAME' ] } /#{ ruby_version } /gems/#{ gem_name } -#{ gem_version } *" ) . first
7072end
7173
7274# For ordinary gems, this path is like 'lib/ruby/3.0.0/specifications/rspec-3.10.0.gemspec'.
7678#
7779# Since OS platform is unlikely to change between Bazel builds on the same machine,
7880# `#{gem_name}-#{gem_version}*.gemspec` would be sufficient to narrow down matches to at most one.
81+ #
82+ # Library path differs across implementations as `lib/ruby` on MRI and `lib/jruby` on JRuby.
7983SPEC_PATH = -> ( ruby_version , gem_name , gem_version ) do
80- Dir . glob ( "lib/ruby /#{ ruby_version } /specifications/#{ gem_name } -#{ gem_version } *.gemspec" ) . first
84+ Dir . glob ( "lib/#{ RbConfig :: CONFIG [ 'RUBY_INSTALL_NAME' ] } /#{ ruby_version } /specifications/#{ gem_name } -#{ gem_version } *.gemspec" ) . first
8185end
8286
8387require 'bundler'
You can’t perform that action at this time.
0 commit comments