Masato Ohba
933ede5d76
[rubygems/rubygems] Remove travis_removal_info
...
`travis_removal_info` is added by https://github.com/rubygems/rubygems/pull/6150 . According to the comment, it's supposed to be removed at bundler v2.5.0 but it hasn't.
e18797d43f
2024-01-29 05:39:13 +00:00
Masato Ohba
0bac390e07
[rubygems/rubygems] Bump Ruby version to be used in bundle gem
template
...
since 2.6 and 2.7 are EOL and bundler dropped their support by https://github.com/rubygems/rubygems/pull/7116 .
b562d9a822
2024-01-27 15:50:24 +00:00
Hiroshi SHIBATA
443e417885
[rubygems/rubygems] bin/rubocop -A --only Style/RedundantParentheses
...
7cc647c8f3
2024-01-11 13:51:52 +09:00
David Rodríguez
b45c1523a8
[rubygems/rubygems] Gem::Specification.find_all_by_name is always defined now
...
1d61c7686b
2023-12-14 20:22:48 +08:00
Martin Emde
c1f4bfd41f
[rubygems/rubygems] Revert "Merge pull request #7167 from nevinera/add-json-output-option-to-bundle-outdated"
...
This reverts commit a4ac5116b8
, reversing
changes made to 8a6b180d0a
.
a1efe4015d
2023-12-13 22:50:45 +00:00
Samuel Giddins
baf2ec2ca8
[rubygems/rubygems] Use match? when regexp match data is unused
...
Improved performance / reduced allocations
b04726c9a7
2023-12-13 22:00:26 +00:00
David Rodríguez
1a7aa5560f
[rubygems/rubygems] Refactor bundle info
...
0e919eaa87
2023-12-13 13:02:22 +09:00
David Rodríguez
70428247c6
[rubygems/rubygems] Remove dead code
...
fad186df39
2023-12-13 13:02:21 +09:00
Samuel Giddins
e223dde329
[rubygems/rubygems] Allow bundle pristine to run in parallel
...
Also fix running when BUNDLE_NO_INSTALL happens to be set, same as with install/update commands
a555fd6ccd
2023-12-12 02:10:53 +00:00
Franz Liedke
0653fb026c
[rubygems/rubygems] Refactor: Move filesystem access into Definition class
...
2720da2659
2023-12-12 01:08:20 +00:00
Franz Liedke
0ec88b54f3
[rubygems/rubygems] bundle lock: Always touch the lockfile
...
fd2e71dfdb
2023-12-12 01:08:19 +00:00
Yuji Yaginuma
8bb90f4d77
[rubygems/rubygems] Use Minitest::TestTask
in a template file for minitest
...
`minitest` has introduced a rake task for running test on 5.16.0.
https://github.com/minitest/minitest/blob/master/History.rdoc#5160--2022-06-14-
This has some tasks related to running tests and it's useful for
`minitest` user I think.
https://github.com/minitest/minitest#rake-tasks-
This PR changed to use the task in a template file for `minitest`
7a86d13062
2023-12-08 03:25:43 +00:00
David Rodríguez
2755cb1b2f
[rubygems/rubygems] Use modern hashes consistently
...
bb66253f2c
2023-12-07 22:29:33 +00:00
Eric Mueller
73440e1ef2
[rubygems/rubygems] Many major_deprecations supply :removed_message
...
Generally the removed message is very similar, but often it needs to
specify that the feature has "been removed" instead of "will be
removed", or "been deprecated". And a few chunks of text needed more
substantial updates. And a number of them seemed to have been carefully
crafted to make sense in either context, so I left those alone.
8d42cf9104
2023-12-01 17:52:38 +00:00
Eric Mueller
055a4f09ca
[rubygems/rubygems] Don't require 'json' unless it's actually needed
...
97ee203fd5
2023-11-23 18:03:17 +00:00
Eric Mueller
c424d15cb9
[rubygems/rubygems] Add --json bundle-outdated flag to produce json-parseable output
...
65efa44bc0
2023-11-23 18:03:17 +00:00
Eric Mueller
a54c98a29f
[rubygems/rubygems] Factor group-filtering to a private method to reduce repetition
...
We're about to expand the repeated bit of code, so drying it up a little
is warranted.
e69c658be6
2023-11-23 18:03:16 +00:00
David Rodríguez
a4d80eee17
[rubygems/rubygems] Let RuboCop target Ruby 3.0
...
70243b1d72
2023-11-13 11:06:10 +09:00
Hiroshi SHIBATA
c5861903ac
[rubygems/rubygems] Handle CI configuration on ignore list for Gem::Specification#files
...
4bb0ef3e55
2023-10-25 00:46:09 +00:00
David Rodríguez
a05904c8ce
[rubygems/rubygems] The lock
command should not be affected by frozen setting
...
The `lock` command is specifically designed to manage the lockfile, so
running it should take precedence over any "frozen" setting.
Besides that, "frozen" is not specifically designed as "lockfile cannot
be updated" but as "installation of gems should be prevented if gemfile
is not in sync with the lockfile".
The lock command does not install any gems and preserves the property of
the lockfile being in sycn with its gemfile, so I think frozen should
not influence it.
The current behavior is quite confusing when frozen is set. On an app
where rubocop can get lockfile updates
```
$ bundle lock --update rubocop
Writing lockfile to /path/to/Gemfile.lock
```
Completely silent, it makes you think that it has written the lockfile,
but still no updates.
In verbose mode, it gives a bit more information, but still confusing
and unexpected, and does not change the lockfile:
```
$ bundle lock --update rubocop --verbose
Running `bundle lock --update "rubocop" --verbose` with bundler 2.4.20
Frozen, using resolution from the lockfile
Writing lockfile to /path/to/Gemfile.lock
```
With this commit, it updates the lockfile as expected.
1d501ae8ea
2023-10-16 13:52:12 +09:00
David Rodríguez
4dbee36f84
[rubygems/rubygems] Use instantiated definition directly
...
bc233af4d2
2023-10-16 13:52:11 +09:00
Peter Boling
16a97c7bbb
[rubygems/rubygems] 🚨 Rubocop Linting
...
2851e051c3
2023-10-03 16:13:18 +09:00
Ry Biesemeyer
bece880874
[rubygems/rubygems] Centralize logic using Pathname#relative_path_from
...
To avoid potential crashes when trying to jump from a drive to another
on Windows, and take the change refactor things a bit.
7c9a9a431a
2023-09-27 05:20:58 +00:00
David Rodriguez
a812f1fed0
[rubygems/rubygems] Reword a couple of error messages
...
When a path does not make a lot of sense.
d173c79e9a
2023-09-27 05:20:57 +00:00
Samuel Giddins
812c8196b6
[rubygems/rubygems] Remove usage of Dir.chdir that just execute a subprocess
...
Preferring instead to spawn the subprocess in the correct directory
ad5abd6a45
2023-09-21 18:30:37 +00:00
Samuel Giddins
7a5df9d0ed
[rubygems/rubygems] Fix bundle update --redownload
...
It now does the redownloading/installing just like bundle install --redownload
3b058e5eca
2023-08-29 19:31:36 +00:00
Koichi ITO
4fbfc116ca
[rubygems/rubygems] Update GitHub organization of Standard Ruby
...
## What was the end-user or developer problem that led to this PR?
The old URL https://github.com/testdouble/standard is mentioned.
## What is your fix for the problem, implemented in this PR?
This PR updates to the new URL https://github.com/standardrb/standard .
eeafba72fc
2023-07-12 12:29:29 +00:00
Nobuyoshi Nakada
348412c7fa
[rubygems/rubygems] Use indented heredoc
...
085d2776d8
2023-03-22 21:21:08 +00:00
Hiroshi SHIBATA
38fa8eb4cb
Merge rubygems/bundler master
...
Pick from e9304aed7e
2023-02-21 19:28:12 +09:00
Daniel Colson
8429134d0d
[rubygems/rubygems] Don't warn on bundler binstubs --standalone --all
...
Prior to this commit `bundle binstubs --standalone --all` would output a
warning about not being able to generate a standalone binstub for
bundler.
This warning predates the `--all` option, and I don't think it makes
sense in this context. The warning makes good sense when explicitly
trying to generate a bundler standalone binstub with `bundle binstubs
bundler --standalone`, since that command won't do what the user might
have expected. But `--all` is not specifically asking for bundler, and
having it report each time that the bundler binstubs could not be
generated does not seem particularly helpful. The only way to make that
warning go away would be to stop using `--standalone --all`.
This commit skips the warning when running with the `--all` option.
e6a72e19eb
2023-01-27 21:06:39 +00:00
yoka
799d805e21
[rubygems/rubygems] Raise invalid option when bundle open --path is called without a value
...
c242311158
2023-01-04 13:13:19 +00:00
yoka
87c17a141d
[rubygems/rubygems] Enhance bundle open with --path option
...
3bf8e59304
2023-01-04 13:13:19 +00: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
Hiroshi SHIBATA
18ba89093a
Merge RubyGems/Bundler master
...
Pick from ba3adad4d8
2022-12-20 13:15:02 +09:00
Mark Burns
870bcc96ba
[rubygems/rubygems] fix
...
https://github.com/rubygems/rubygems/pull/6147 when --parseable and
--groups used
together
3b0b95c509
2022-12-20 13:15:02 +09:00
Josef Šimánek
8eb6618013
[rubygems/rubygems] Turn --ext
option into string. Deprecate usage without explicit value.
...
- this is preparation for onboarding Rust based extension gem generator
d32801bdbc
2022-12-20 13:15:02 +09:00
Michael Siegfried
2bc4f1dea5
[rubygems/rubygems] Support for pre flag in bundle update
...
Passing this flag allows bumping to the current version, even if that
version is prerelease. This works in concert with the current flags.
a6409e3509
2022-12-20 13:15:02 +09:00
Alyssa Ross
d4315284e9
[rubygems/rubygems] Add bundle lock --update --bundler
...
bundle lock --update can do everything that bundle update can do, but
it doesn't actually install gems. This is especially useful for
generating a lockfile on a machine that doesn't have the libraries
available to be able to build native extensions.
But, there was no parallel for bundle update --bundler. So let's add
one.
7fc00bd2a5
2022-12-18 19:17:42 +00:00
Hiroshi SHIBATA
bbe56a6437
Merge RubyGems/Bundler master
...
from bfb0ae6977
2022-12-12 10:49:43 +09: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
Victor Gama
bc6c1e0e25
[rubygems/rubygems] Copy template contents instead of file and perms
...
This allows the file to be created without copying permissions
from Bundler's installation source. The previous behaviour was
noticed after installing Ruby through brew, and using bundle
init, which yielded a read-only Gemfile.
839a06851d
2022-10-03 20:41:45 +09:00
David Rodríguez
24fd2f73d0
Resync Bundler & RubyGems
2022-09-08 11:25:03 +09:00
Hiroshi SHIBATA
3eca1e438d
Merge 16c3535413
2022-09-05 14:37:12 +09:00
David Rodríguez
b87ddd7538
[rubygems/rubygems] Fix bundle platform
crash when there's a lockfile with no Ruby locked
...
49fc54e87d
2022-08-21 17:53:40 +09:00
David Rodríguez
35c65e7ba6
[rubygems/rubygems] Fix conservative updates regardless of --strict
...
c9a1d69a8d
2022-08-03 16:33:52 +09:00
Hiroshi SHIBATA
71794a75db
Merge rubygems/bundler HEAD
...
Pick from 8331e63263
2022-08-03 13:14:10 +09:00
David Rodríguez
13305bf0c9
[rubygems/rubygems] Fix crash when running bundle outdated
in debug mode
...
Previously it would crash like this:
````
$ /Users/deivid/.asdf/installs/ruby/3.1.2/bin/ruby -I/Users/deivid/Code/rubygems/rubygems/bundler/spec -r/Users/deivid/Code/rubygems/rubygems/bundler/spec/support/artifice/fail.rb -r/Users/deivid/Code/rubygems/rubygems/bundler/spec/support/hax.rb /Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/bin/bundle outdated --patch --strict --filter-patch
Running `bundle outdated --filter-patch --patch --strict` with bundler 2.4.0.dev
Found changes from the lockfile, re-resolving dependencies because bundler is unlocking Using a local server, bundler won't use the CompactIndex API
Fetching source index from file:///Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/remote4/
Resolving dependencies...
--- ERROR REPORT TEMPLATE -------------------------------------------------------
```
RuntimeError: LazySpecification has not been materialized yet (calling :loaded_from [])
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/lazy_specification.rb:147:in `method_missing'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/cli/outdated.rb:214:in `gem_column_for'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/cli/outdated.rb:174:in `block in print_gems_table'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/cli/outdated.rb:173:in `map'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/cli/outdated.rb:173:in `print_gems_table'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/cli/outdated.rb:123:in `run'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/cli.rb:420:in `outdated'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/cli.rb:31:in `dispatch'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/cli.rb:25:in `start'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/exe/bundle:48:in `block in <top (required)>'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/lib/bundler/friendly_errors.rb:120:in `with_friendly_errors'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/gems/bundler-2.4.0.dev/exe/bundle:36:in `<top (required)>'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/bin/bundle:25:in `load'
/Users/deivid/Code/rubygems/rubygems/bundler/tmp/1/gems/system/bin/bundle:25:in `<main>'
```
````
23c46f3b57
2022-08-01 23:14:23 +09:00
David Rodríguez
030050cdfa
[rubygems/rubygems] Make --standalone
play nice with --local
...
I'm not sure if using relative paths in the generated script is best for
this case, since it makes the script not movable, but that can be
improved later.
7f5bdbb842
2022-07-30 04:24:25 +09:00
David Rodríguez
b515fdcc32
[rubygems/rubygems] No need to set anything at all unless standalone is given
...
d695c8da3e
2022-07-30 04:24:24 +09:00