David Rodríguez
e67f595e8f
[rubygems/rubygems] Build bundler gem just once for specs
...
When we need to reset system gems during specs, there's no need to
rebuild bundler, we can copy over the original gem home.
7b4f80747b
2025-07-25 11:10:37 +09:00
David Rodríguez
9e566141cd
[rubygems/rubygems] Remove "double CI" for testing Bundler 4 mode
...
Since now every functionality that changes in Bundler 4 is under a
setting, we can enable that setting to test the new functionality,
without having to run our full CI twice.
This can actually be seen as increasing coverage, because Bundler 4
functionality will now be tested on Windows, MacOS, or any other
environment where previously "Bundler 4 mode" was not running.
1cb3e009fc
2025-06-30 12:56:50 +09:00
David Rodríguez
441f18df52
Skip to Bundler 4 directly
2025-06-19 10:23:36 +09:00
David Rodríguez
f3ea6c35cc
[rubygems/rubygems] Normalize Bundler version spec filters
...
28b6a7cf5e
2025-06-19 10:23:36 +09:00
David Rodríguez
51958bae66
[rubygems/rubygems] Prefer FileUtils.rm_r
to FileUtils.rm_rf
for specs
...
Because it does not swallow errors if it fails to remove the given
folders, making issues easier to debug.
0db12d7afc
2025-03-12 18:02:09 +09:00
David Rodríguez
f656d34f10
[rubygems/rubygems] Refactor specs to not try to remove folders that don't exist
...
This has the following benefits:
* Avoid duplicated work in some specs that first build a repo, and then
overwrite it with a completely different set of gems.
* Reduce RSpec nesting and improve readability.
* The change also made surfaces several specs that were incorrect since
they were unintentionally not testing the right thing.
ed430883e0
2025-03-12 18:02:09 +09:00
johnnyshields
e11401f799
[rubygems/rubygems] Deprecate legacy windows platforms (mswin, mingw) in the Bundler DSL, in favor of using platform :windows
...
This commit is only deprecation and does not change/remove any actual functionality.
0ca6dc3984
2025-02-14 16:13:27 +09:00
David Rodríguez
a3c05f27c3
[rubygems/rubygems] Remove spec filters
...
These should always run.
0818eb104f
2025-02-14 16:13:27 +09:00
David Rodríguez
e7720ef8d7
[rubygems/rubygems] Materializing specs for vendor/cache should not be strict
...
Platforms specific gems not compatible with the current Ruby should not
make `bundle cache` fail and should not get removed from the cache since
they still may be useful in other rubies.
717b43f565
2025-02-13 09:37:50 +09:00
David Rodríguez
1d97c46b35
[rubygems/rubygems] Minor Bundler spec improvements
...
While working on something else I noticed:
* Usage of uppercased "RUBY" and "JAVA" as platforms, when those don't
really exist.
* Usage of some test gems with "1.0" as gemspec version and "1.0.0" as
actual version.
This commit fixes both inconsistencies to make things more expectable.
e3ec32e247
2024-07-09 14:43:18 +00:00
David Rodríguez
98c923ff4b
Synchronize Bundler & RubyGems ( #11071 )
2024-06-28 10:12:29 -04:00
David Rodriguez
7857061ecd
[rubygems/rubygems] Fix regression when caching gems from secondary sources
...
If `cache_all_platforms` setting is enabled, the secondary source was
no longer considering cached gems.
That means that if the remote secondary source has removed its gems,
then this was now resulting in an error while before the previously
cached gem from the source would still be used.
This commit restores previous behavior.
2d2cd00255
2024-05-16 09:21:32 +00:00
David Rodríguez
2755cb1b2f
[rubygems/rubygems] Use modern hashes consistently
...
bb66253f2c
2023-12-07 22:29:33 +00:00
David Rodríguez
23ecaab8dd
[rubygems/rubygems] Use "frozen" rather than "deployment" in error message
...
I think it communicates better what's going on.
07a25767a4
2023-06-15 07:01:24 +09:00
johnnyshields
79ede4ae99
[rubygems/rubygems] Alias CurrentRuby#mswin?, mswin64?, mingw?, x64_mingw? to #windows?. (This is done instead of logging a deprecation warning.)
...
b9fcc7c0ab
2023-03-03 09:50:29 +00:00
David Rodríguez
517d7c3221
Sync latest Bundler & RubyGems
2022-02-01 08:09:23 +09:00
David Rodríguez
6e2240a2f9
Sync latest bundler & rubygems development version
2021-07-07 13:30:20 +09:00
David Rodríguez
5b0abba931
Sync bundler & rubygems
2021-05-11 11:29:41 +09:00
David Rodríguez
53468cc111
Sync latest development version of bundler & rubygems
2021-03-08 13:47:35 +09:00
Hiroshi SHIBATA
69ed64949b
Track Bundler master(2.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
2021-01-04 13:14:43 +09:00
David Rodríguez
2fafc08aa3
[rubygems/rubygems] Remove unneeded trailing conditions on exitstatus
...
27e0e4ecb6
2020-07-15 16:05:12 +09:00
David Rodríguez
696a50751b
[rubygems/rubygems] s/install_gemfile!/install_gemfile
...
4d1a0c465a
2020-06-18 19:14:15 +09:00
David Rodríguez
1436b5026c
[rubygems/rubygems] s/bundle!/bundle
...
746a4b3d74
2020-06-18 19:14:15 +09:00
David Rodríguez
61b6f53337
[rubygems/rubygems] Make helpers raise by default
...
ade0c441d5
2020-06-18 19:14:15 +09:00
David Rodríguez
e413e746af
[rubygems/rubygems] Remove forgotten_command_line_usages
from specs
...
Instead, use the non-deprecated option except when specifically testing
deprecated CLI flags. In that case, pass the flag directly and limit
the specs to `bundler < 3`.
3d5e186241
2020-06-05 07:32:42 +09:00
David Rodríguez
61b61f426a
[rubygems/rubygems] Reword specs to not mention deprecated flags
...
f878a81f22
2020-06-05 07:32:42 +09:00
David Rodríguez
99dc55987d
[rubygems/rubygems] Improve specs testing option remembering behavior
...
By making them more explicit.
9979c5a811
2020-06-05 07:32:42 +09:00
Hiroshi SHIBATA
0e60b59d58
Update the bundler version with master branch
2020-05-13 07:54:37 +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