David Rodríguez
0e7536bf49
[rubygems/rubygems] Prefer squiggly heredocs over custom helper
...
258476c38a
2023-07-24 14:59:34 +09:00
David Rodríguez
3e7f5b02ae
[rubygems/rubygems] Improve error message in frozen mode edge case
...
When a top level dependency is missing from the lockfile, and we're in
frozen mode, we should also print a "frozen error".
3e82b835e3
2023-06-15 07:01:25 +09:00
David Rodríguez
e86f4c581b
[rubygems/rubygems] Improve frozen mode error message
...
This error message is also printed when using `bundler/setup` in frozen
model, so we're not necessarily installing any gems when it happens.
This new message play nicer with all situations.
6874bbacce
2023-06-15 07:01:25 +09: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
David Rodríguez
96e3f31c1e
[rubygems/rubygems] Make frozen mode spec also pass on Bundler 3
...
ad52f840f2
2023-06-15 07:01:20 +09:00
David Rodríguez
e1038f943f
[rubygems/rubygems] This spec is independent from global sources
...
d91c245921
2023-06-15 07:01:20 +09:00
David Rodríguez
03246719cc
[rubygems/rubygems] Fix path
vs deployment
precedence when path set through ENV
...
The `deployment` setting sets `path` to `vendor/bundle` implicitly, but
that should only apply if `path` is not set explicitly, at any level.
3552c064c1
2023-06-06 10:52:57 +09:00
David Rodríguez
7b317243ad
[rubygems/rubygems] Unexclude some specs on bundler 3
...
These should all be passing on Bundler 3.
4a8c172965
2023-06-06 10:52:56 +09:00
David Rodríguez
6353f1d5e8
[rubygems/rubygems] Fill in missing deployment specs
...
e16aa47b8f
2023-06-06 10:52:56 +09:00
David Rodríguez
603772440c
[rubygems/rubygems] Remove redundant specs
...
They are already tested above.
23073dcece
2023-06-06 10:52:55 +09:00
David Rodríguez
9492efbe71
[rubygems/rubygems] Remove unnecessary local
helper
...
27ed6870ce
2023-03-17 18:50:55 +09:00
David Rodríguez
0e60bc118b
[rubygems/rubygems] Ignore dependencies not actually locked from frozen check
...
Only needed if there can be no explicit global source (bundler < 3).
73923f4af5
2021-12-10 19:09:55 +09:00
David Rodríguez
4c5e862434
[rubygems/rubygems] Improve source gemfile/lockfile equivalence checks
...
Since we no longer have multiple global sources, each top level dependency is
always pinned to a single source, so it makes little sense to talk about
adding or removing a source. Instead, source changes always mean to
change the source one or more dependencies are pinned to. This logic can
now be much simpler.
f1d33fa0df
2021-12-03 20:00:51 +09:00
David Rodríguez
7d974cc56f
[rubygems/rubygems] Don't overwrite locked dependency sources too early
...
Otherwise we hide some useful message about dependency source changes.
c926673c5b
2021-12-03 20:00:50 +09:00
David Rodríguez
aa87780f8f
[rubygems/rubygems] Fix incorrect order in changed sources message
...
6f1b5f68de
2021-12-03 20:00:49 +09:00
Daniel Niknam
2f9e0cf181
[rubygems/rubygems] Explicitly define a global source for tests
...
This is in preparation for deprecating source-less gemfiles.
d6493fa3e2
2021-07-27 09:25:57 +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
69ed64949b
Track Bundler master(2.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20
2021-01-04 13:14:43 +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
David Rodríguez
2fafc08aa3
[rubygems/rubygems] Remove unneeded trailing conditions on exitstatus
...
27e0e4ecb6
2020-07-15 16:05:12 +09:00
David Rodríguez
ea4824ee0f
[rubygems/rubygems] s/run!/run
...
e3f60d8aec
2020-06-18 19:14:15 +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
8c686475c8
[rubygems/rubygems] Migrate some specs to use "the new way"
...
The commands these specs run were throwing warnings in bundler 2, and
failing on bundler 3, effectively testing a different scenario to what
they were supposed to.
97ac1ced49
2020-06-18 19:14:15 +09:00
David Rodríguez
117b504b98
Fix most exec specs
...
The `gem_command` helper was failing to require `support/hax.rb`, which
takes care of making sure rubygems actually picks up the right `ruby`
executable under ruby-core setup (`ENV["RUBY"]`). This caused binstubs
to be generated with a wrong shebang, and that caused `bundle exec` to
not work. The error message was pretty confusing though due to
https://bugs.ruby-lang.org/issues/16952 .
2020-06-15 12:38:39 +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
5a12fc7c7f
[rubygems/rubygems] Unskip "monorepo issues"
...
They seem to be passing?
a00d1e6896
2020-06-05 07:32:42 +09:00
Hiroshi SHIBATA
26367367ec
Marked the failing examples with the current master branch on ruby repository
2020-05-22 20:32:30 +09:00
Hiroshi SHIBATA
c7ebeb7eda
Sync Bundler PR #3624
2020-05-22 20:32:30 +09:00
Hiroshi SHIBATA
0e60b59d58
Update the bundler version with master branch
2020-05-13 07:54:37 +09:00
Hiroshi SHIBATA
13f4f07f21
Merge bundler-2.1.4
2020-01-08 18:00:32 +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
David Rodríguez
2b7e39f364
[bundler/bundler] Always set cache_all
via config during tests
...
So that the behavior is the same regardless of the tested bundler
version.
664549427a
2019-08-03 09:30:00 +09:00
David Rodríguez
c3ddd47ce7
[bundler/bundler] Normalize file:// handling in specs
...
5946d62ad0
2019-08-03 09:29:55 +09:00
Hiroshi SHIBATA
8f37629519
Merge bundler master from upstream.
...
Pick from 8dd59e3ba97eb80a599f8149f31bf40773b69dc0
2019-06-09 12:44:10 +09:00
hsbt
3ac518f9bd
Enabled to some bundler examples again.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-14 06:05:27 +00:00
hsbt
68ddd4d300
Merge Bundler 2.1.0.pre.1 as developed version from upstream.
...
a53709556b
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-14 06:01:35 +00:00
hsbt
e97741e12a
Merge Bundler 2.0.1 from upstream.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-04 13:10:58 +00:00
hsbt
91533d9ab1
Downgrade Bundler 1.17.x from 2.0.0.
...
We have the platform issue on heroku:
* https://gist.github.com/schneems/26452540f6e2bbbcf2ea144f45f6b305
* https://github.com/heroku/heroku-buildpack-ruby/issues/833
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-12-11 03:07:37 +00:00
hsbt
8f4aa4fd2a
Merge Bundler-2.0.0.pre1 from upstream.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65672 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-12 00:53:15 +00:00
hsbt
2fbbbba5bd
Merge upstream changes from 2-0-stable branch of bundler/bundler.
...
* It update bundler 2 mode to bundler 3.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-04 01:14:48 +00:00
hsbt
59c8d50653
Added bundler as default gems. Revisit [Feature #12733 ]
...
* bin/*, lib/bundler/*, lib/bundler.rb, spec/bundler, man/*:
Merge from latest stable branch of bundler/bundler repository and
added workaround patches. I will backport them into upstream.
* common.mk, defs/gmake.mk: Added `test-bundler` task for test suite
of bundler.
* tool/sync_default_gems.rb: Added sync task for bundler.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-02 23:07:56 +00:00
hsbt
7825e8363d
Postponing the Bundler merge.
...
I faced a big issue about Bundler with ruby core.
I have no time to resolve it issue before 2.5 final release.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-22 23:08:05 +00:00
hsbt
be7b592912
Update bundled bundler to 1.16.0.
...
* lib/bundler, spec/bundler: Merge bundler-1.16.0.
* common.mk: rspec examples of bundler-1.16.0 needs require option.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-01 23:29:38 +00:00
hsbt
08a0927c0c
Enabled temporary disabled examples of bundler rspec.
...
These are fails when merging at r59779. But these are
working now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-19 00:37:38 +00:00