David Rodriguez 0e808183ee [rubygems/rubygems] Allow standalone mode to work on a Windows edge case
If a gem is located in a different drive than the Gemfile, standalone
mode will fail to generate the `bundler/setup` script, failing with an
error like

```
ArgumentError: different prefix: "C:/" and "D:/a/rubygems/rubygems/bundler/tmp/2/bundled_app/bundle/bundler"
  C:/hostedtoolcache/windows/Ruby/3.0.5/x64/lib/ruby/3.0.0/pathname.rb:528:in `relative_path_from'
  D:/a/rubygems/rubygems/bundler/tmp/2/gems/system/gems/bundler-2.4.20/lib/bundler/installer/standalone.rb:58:in `gem_path'
  D:/a/rubygems/rubygems/bundler/tmp/2/gems/system/gems/bundler-2.4.20/lib/bundler/installer/standalone.rb:33:in `block (2 levels) in paths'
  D:/a/rubygems/rubygems/bundler/tmp/2/gems/system/gems/bundler-2.4.20/lib/bundler/installer/standalone.rb:32:in `map'
  D:/a/rubygems/rubygems/bundler/tmp/2/gems/system/gems/bundler-2.4.20/lib/bundler/installer/standalone.rb:32:in `block in paths'
```

I'm fixing this by falling back to using a full path in this case.

This was caught by a failing spec, so I'm not adding new specs.

https://github.com/rubygems/rubygems/commit/3cb9b9ab7a
2023-09-25 07:13:21 +00:00
..
2023-06-28 16:37:10 +09:00
2023-08-21 21:45:55 -07:00
2023-09-22 13:00:32 +00:00
2023-04-21 06:22:52 +00:00
2023-04-25 01:58:12 +00:00
2023-06-29 01:07:52 +00:00
2023-04-25 01:55:57 +00:00
2023-04-03 02:45:42 +00:00
2023-05-25 16:09:29 +09:00
2023-03-21 15:05:29 +00:00
2023-04-03 05:19:00 +00:00
2023-04-03 02:40:37 +00:00
2023-07-10 19:21:47 +09:00
2023-04-14 01:49:51 +00:00
2023-04-14 01:49:51 +00:00
2023-09-21 21:08:28 +00:00
2023-04-25 01:58:12 +00:00
2023-04-13 18:51:18 +09:00
2023-04-13 18:51:18 +09:00
2023-06-23 03:52:03 +00:00
2023-04-03 02:41:44 +00:00
2023-04-13 09:47:22 +00:00
2023-04-13 09:47:22 +00:00