Hiroshi SHIBATA
4bbeed6134
Merge RubyGems/Bundler master from 4076391fce5847689bf2ec402b17133fe4e32285
2023-05-30 21:50:07 +09:00
Hiroshi SHIBATA
0ef6e718d9
Merge https://github.com/rubygems/rubygems/pull/6655 manually.
2023-05-10 15:02:29 +09:00
David Rodríguez
c257380965
Revert "Refactor incomplete specs handling"
...
This reverts commit 69580f8b72f41c58cae57d1ada4db909922b3891.
2023-04-06 13:07:16 +09:00
Josef Šimánek
9cfd8330ca
[rubygems/rubygems] Onboard Rubocop Naming/MemoizedInstanceVariableName rule to Bundler.
...
d768be0c65
2023-03-28 15:25:44 +09:00
David Rodríguez
ebebc90ec2
Refactor incomplete specs handling
...
Recent bugs fixed made me realize we were relying on state too much
here. We only need to keep incomplete specs to be able to expire them
and retry resolution without them locked. If we use a separate class, we
can do that more transparently and handle them just like we handle
"missing specs".
2023-03-23 17:18:49 +09:00
David Rodríguez
ddc4fd5644
Normalize git sources
...
Just like gem sources, a "style-only" change, like adding a trailing
slash, should not expire them.
2023-03-17 18:50:55 +09:00
Mercedes Bernard
583137fe56
[rubygems/rubygems] make Bundler.load_marshal private
...
4909d071d2
2023-02-23 08:50:03 +00:00
Mercedes Bernard
d5994eb436
[rubygems/rubygems] safe marshal gem specs when inflating
...
5c5d0c5350
2023-02-23 08:50:02 +00:00
Mercedes Bernard
3d5ec8401f
[rubygems/rubygems] safe marshal gem versions when fetching Marshal.specs.4.8.gz
...
23880353c1
2023-02-23 08:50:02 +00:00
Hiroshi SHIBATA
a43f1d90c2
Merge RubyGems and Bundler master
...
from 0635c1423d
2023-01-10 15:53:07 +09:00
Hiroshi SHIBATA
b7ad60a794
Merge RubyGems/Bundler master
...
from 72fd3dd209
2022-12-26 15:09:21 +09:00
Hiroshi SHIBATA
f6620037ba
Merge RubyGems-3.4.0 and Bundler-2.4.0
2022-12-24 16:57:07 +09:00
Josef Šimánek
f270aa3eda
[rubygems/rubygems] Use safe Marshal deserialization for dependency API response. - adds Bundler#safe_load_marshal and Bundler::SAFE_MARSHAL_CLASSES listing safe classes to deserialize
...
e947c608cc
2022-12-20 13:15:02 +09:00
Nobuyoshi Nakada
e1f42844a0
[rubygems/rubygems] Prefer RbConfig::CONFIG['EXEEXT'] over hardcorded '.exe'
...
bc84b2d262
2022-12-12 06:00:41 +00:00
Hiroshi SHIBATA
0a9d51ee9d
Migrate our resolver engine to PubGrub
...
https://github.com/rubygems/rubygems/pull/5960
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
2022-11-12 07:40:31 +09:00
Hiroshi SHIBATA
f5df47d1f3
Merge RubyGems/Bundler master
...
6214d00b23
2022-10-18 16:33:15 +09:00
Hiroshi SHIBATA
3eca1e438d
Merge 16c3535413
2022-09-05 14:37:12 +09:00
Takuya Noguchi
22a416a3bb
[rubygems/rubygems] Bundler: update the link suggested on error with the new one
...
Also typo is fixed.
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
9c1ea52ddf
2022-08-23 14:28:47 +09:00
Hiroshi SHIBATA
f69244cee8
Merge rubygems/bundler HEAD
...
Pick from 6b3a5a9ab0
2022-08-23 10:45:57 +09:00
David Rodríguez
b30fc03e92
[rubygems/rubygems] Centralize loading Bundler::MatchPlatform
mixin
...
It's explicitly loaded when monkeypatching RubyGems, which we do very
early. So neither autoloading it, nor explicitly loading it anywhere
else is necessary.
fbc7a57161
2022-08-23 10:45:57 +09:00
Hiroshi SHIBATA
9e6d07f346
Merge rubygems/bundler HEAD
...
Merge from 2af2520b4a
2022-07-26 14:38:17 +09:00
Hiroshi SHIBATA
437a5ae9d6
Merge RubyGems and Bundler master
2022-07-13 14:11:55 +09:00
David Rodríguez
ea31c5bcd1
[rubygems/rubygems] Fix crash when installing gems with symlinks
...
If BUNDLE_PATH is configured to a symlinked path, installing gems with
symlinks would crash with an error like this:
```
Gem::Package::SymlinkError: installing symlink 'man/man0/README.markdown' pointing to parent path /usr/home/stevewi/srv/mail/lib/tools/.vendor/ruby/3.1.0/gems/binman-5.1.0/README.markdown of /srv/mail/lib/tools/.vendor/ruby/3.1.0/gems/binman-5.1.0 is not allowed
```
This commit fixes the problem by changing the bundle path to be the
realpath of the configured value, right after we're sure the path has
been created.
3cd3dd142a
2022-05-30 17:42:39 +09:00
Dominik Bauernfeind
d79e0832a5
[rubygems/rubygems] Fix typo in documentation
...
800a973e00
2022-05-06 18:03:00 +09:00
Hiroshi SHIBATA
678d58c850
Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5
2022-04-28 19:08:49 +09:00
David Rodríguez
d32fa986c3
[rubygems/rubygems] Make rescue
clause more specific
...
This is hiding a real bundler issue as a "network error". It's more
helpful to get a proper bug report, with stack trace and so on.
So stop re-raising errors when evaluating unmarshaled responses as
network errors, and only raise Marshal errors when the Marshal format is
invalid, not whenever marshalled gemspecs can't be loaded because that
may hide actual client errors, like missing `YAML` constants.
05ea907e1c
2022-03-23 23:31:05 +09:00
Hiroshi SHIBATA
ff3d7b720e
Merge RubyGems and Bundler master
2022-02-28 11:39:20 +09:00
Hiroshi SHIBATA
69dc2ea465
Merge RubyGems-3.3.0 and Bundler-2.3.0
2021-12-21 15:27:05 +09:00
Jean Boussier
5af3f7f357
[rubygems/rubygems] Vendor a pure ruby implementation of SHA1
...
This allows `Source::Git` to no longer load the `digest` gem as it is causing
issues on Ruby 3.1.
c19a9f2ff7
2021-10-25 20:24:32 +09:00
David Rodríguez
4bc87cb1fb
[rubygems/rubygems] Remove syck
traces from bundler
...
Same reason as in the previous commit.
f00a6c8516
2021-08-31 19:06:14 +09:00
David Rodríguez
c119dd2b5a
[rubygems/rubygems] Fix bundle plugin install
misdetection of installed versions
...
9c88db949d
2021-08-31 19:06:14 +09:00
David Rodríguez
c044f818ca
[rubygems/rubygems] Move Bundler.rubygems.clear_paths
to a better place
...
Since it clears both home and path.
fadf5e03ea
2021-08-31 19:06:14 +09:00
David Rodríguez
8c79486e7e
[rubygems/rubygems] Bundle path is already expanded
...
a296052670
2021-08-31 19:06:14 +09:00
David Rodríguez
71b937d3d7
[rubygems/rubygems] Normalize setting GEM_PATH
...
4188ebd568
2021-08-31 19:06:14 +09:00
David Rodríguez
d0da3a2a7f
[rubygems/rubygems] Remove more unused code
...
986e889a79
2021-08-31 19:06:14 +09:00
David Rodríguez
8d32f46d04
[rubygems/rubygems] Remove unnecessary line
...
a7023c6c21
2021-08-31 19:06:14 +09:00
Daniel Niknam
90899c50c2
[rubygems/rubygems] Remove LoadError message in regards to requiring a relative file
...
Ruby 1.9.2 removed "." from LOAD_PATH for robustness and security reasons.
This code was introduced by 56fc830e19
commit
to helping users understand the issue and had a guard condition to include the message for `RUBY_VERSION >= "1.9"`.
However, the guard condition was removed as part of the "Ruby version leftover" cleanup by
8c9cf76e41
Ruby 1.9 development was ended a long time ago and this message is not useful anymore.
a23609b15a
2021-07-27 09:25:55 +09:00
Hiroshi SHIBATA
896bbb9fad
Merge RubyGems/Bundler master from 8459ebd6ad65ce3397233416dc64083ae7572bb9
2021-07-14 10:48:07 +09:00
Hiroshi SHIBATA
c082c6eb7c
Sync RubyGems and Bundler with upstream
2021-07-07 15:31:52 +09:00
David Rodríguez
6e2240a2f9
Sync latest bundler & rubygems development version
2021-07-07 13:30:20 +09:00
Hiroshi SHIBATA
ed149dbf46
Merge the master branch of Bundler
2021-04-15 15:36:15 +09:00
David Rodríguez
53468cc111
Sync latest development version of bundler & rubygems
2021-03-08 13:47:35 +09:00
Hiroshi SHIBATA
339227363c
Merge RubyGems 3.2.3 and Bundler 2.2.3
2020-12-23 10:17:41 +09:00
Hiroshi SHIBATA
2fa9f3c032
Prepare to release rubygems-3.2.1 and bundler-2.2.1
2020-12-15 10:54:09 +09:00
Hiroshi SHIBATA
473f9d2df0
Merge prepare version of Bundler 2.2.0
2020-12-08 17:30:02 +09:00
Hiroshi SHIBATA
d386a58f6f
Merge bundler-2.2.0.rc.2
2020-10-15 17:19:02 +09:00
Hiroshi SHIBATA
0e60b59d58
Update the bundler version with master branch
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
38002a8adb
Prepare to release bundler-2.1.0
2019-12-15 16:41:10 +09:00
Hiroshi SHIBATA
7585bc3187
Merge Bundler 2.1.0.pre.3
...
Features:
- Add caller information to some deprecation messages to make them easier to fix [#7361 ](https://github.com/bundler/bundler/pull/7361 )
- Reconcile `bundle cache` vs `bundle package` everywhere. Now in docs, CLI help and everywhere else `bundle cache` is the preferred version and `bundle package` remains as an alias [#7389 ](https://github.com/bundler/bundler/pull/7389 )
- Display some basic `bundler` documentation together with ruby's RDoc based documentation [#7394 ](https://github.com/bundler/bundler/pull/7394 )
Bugfixes:
- Fix typos deprecation message and upgrading docs [#7374 ](https://github.com/bundler/bundler/pull/7374 )
- Deprecation warnings about `taint` usage on ruby 2.7 [#7385 ](https://github.com/bundler/bundler/pull/7385 )
- Fix `--help` flag not correctly delegating to `man` when used with command aliases [#7388 ](https://github.com/bundler/bundler/pull/7388 )
- `bundle add` should cache newly added gems if an application cache exists [#7393 ](https://github.com/bundler/bundler/pull/7393 )
- Stop using an insecure folder as a "fallback home" when user home is not defined [#7416 ](https://github.com/bundler/bundler/pull/7416 )
- Fix `bundler/inline` warning about `Bundler.root` redefinition [#7417 ](https://github.com/bundler/bundler/pull/7417 )
2019-11-11 18:56:25 +09:00
Takayuki Nakata
c27aaf1a8f
[bundler/bundler] Fix comments and messages to refer to https url
...
a86b49f1b9
2019-09-18 18:26:32 +09:00