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.
https://github.com/rubygems/rubygems/commit/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.
https://github.com/rubygems/rubygems/commit/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
https://github.com/rubygems/rubygems/commit/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
https://github.com/rubygems/rubygems/commit/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 .
https://github.com/rubygems/rubygems/commit/eeafba72fc
2023-07-12 12:29:29 +00:00
Nobuyoshi Nakada
348412c7fa
[rubygems/rubygems] Use indented heredoc
...
https://github.com/rubygems/rubygems/commit/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.
https://github.com/rubygems/rubygems/commit/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
...
https://github.com/rubygems/rubygems/commit/c242311158
2023-01-04 13:13:19 +00:00
yoka
87c17a141d
[rubygems/rubygems] Enhance bundle open with --path option
...
https://github.com/rubygems/rubygems/commit/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
https://github.com/rubygems/rubygems/commit/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
https://github.com/rubygems/rubygems/commit/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.
https://github.com/rubygems/rubygems/commit/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.
https://github.com/rubygems/rubygems/commit/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.
https://github.com/rubygems/rubygems/commit/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
...
https://github.com/rubygems/rubygems/commit/49fc54e87d
2022-08-21 17:53:40 +09:00
David Rodríguez
35c65e7ba6
[rubygems/rubygems] Fix conservative updates regardless of `--strict`
...
https://github.com/rubygems/rubygems/commit/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>'
```
````
https://github.com/rubygems/rubygems/commit/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.
https://github.com/rubygems/rubygems/commit/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
...
https://github.com/rubygems/rubygems/commit/d695c8da3e
2022-07-30 04:24:24 +09:00
moe
c3d9849df9
[rubygems/rubygems] Add ignore_funding_requests config flag
...
https://github.com/rubygems/rubygems/commit/ab302f72c9
2022-07-27 05:39:40 +09:00
David Rodríguez
4f5eb48dea
[rubygems/rubygems] Fix `bundle package --no-install` no longer skipping install
...
This is a regression from https://github.com/rubygems/rubygems/commit/cf749f8ffabd . The
funny thing is that we have a spec for this feature, so it was unclear
how we regressed here. It turns out there was a bug in one of our
negative matchers checking that gems ARE NOT included in a bundle.
This commit fixes the bug in the negative matcher and reverts
https://github.com/rubygems/rubygems/commit/cf749f8ffabd (with a slightly simpler diff).
https://github.com/rubygems/rubygems/commit/3f9a4ff32a
2022-06-23 18:17:08 +09:00
David Rodríguez
95f5194b3c
[rubygems/rubygems] Move `no_install` setting check to a more sensible place
...
It's only related to the `bundle cache` command, so it should be checked
there.
https://github.com/rubygems/rubygems/commit/cf749f8ffa
2022-06-11 18:43:25 +09:00
Hiroshi SHIBATA
aeea88174d
Merge RubyGems and Bundler HEAD
...
125415593e
2022-05-20 17:32:19 +09:00
Hiroshi SHIBATA
678d58c850
Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5
2022-04-28 19:08:49 +09:00
David Rodríguez
156079a85d
[rubygems/rubygems] Make `--strict` flag of `update` and `outdated` commands consistent
...
Previously they had slightly different behavior when combined with
conservative updating flags.
The correct behavior is the `--update-strict` option, so `--script` now
does that, The `--update-strict` option is left there for now but I will
deprecate it later.
https://github.com/rubygems/rubygems/commit/ab42046229
2022-03-06 22:17:00 +09:00
Hiroshi SHIBATA
ff3d7b720e
Merge RubyGems and Bundler master
2022-02-28 11:39:20 +09:00
Dan Jensen
0b2f6b942b
[rubygems/rubygems] Skip "seller shipped" notification after delivery
...
If a Shipment has been delivered, there is no point in notifying the
buyer that the seller shipped. Instead, we should simply notify the
buyer that the shipment was delivered. This is relevant in cases where
the seller is late to mark a Shipment as shipped, so the first EasyPost
Tracker update marks it as delivered, or in cases where the seller
fails to mark as shipped and the buyer marks it as delivered.
This fixes a Shipment event handler so the buyer notification for
shipment is no longer invoked if the Shipment is already delivered.
https://github.com/rubygems/rubygems/commit/09c2cadc86
2022-02-01 20:07:18 +09:00
Ngan Pham
42ef3fcaef
[rubygems/rubygems] Use Gem::Platform.local instead of RUBY_PLATFORM
...
In certain places, we want to display the platform name with
`Gem::Platform.local` instead of `RUBY_PLATFORM`.
Fixes https://github.com/rubygems/rubygems/issues/5264
https://github.com/rubygems/rubygems/commit/bdd1848ae8
2022-01-26 02:24:30 +09:00
Yusuke Nakamura
7353f950c3
[rubygems/rubygems] Change generated namespaced test class name in minitest
...
* `foo` => `TestFoo`
* `foo_bar` => `TestFooBar`
* `foo-bar` => `Foo::TestBar`
https://github.com/rubygems/rubygems/commit/353cdd61c3
2022-01-20 01:04:53 +09:00
Yusuke Nakamura
4451313252
[rubygems/rubygems] Update generated minitest file style
...
foo => test/test_foo.rb
foo-bar => test/foo/test_bar.rb
foo_bar => test/test_foo_bar.rb
https://github.com/rubygems/rubygems/commit/c795e5d40d
2022-01-20 01:04:52 +09:00
Yusuke Nakamura
4e955b2e37
[rubygems/rubygems] Create minitest file to underscored path in "bundle gem" command
...
...with dashed gem name
In "bundle gem" command with dashed name gem (e.g. foo-bar) generates
`test/test_foo/bar.rb`, but this file contains undefined class `TestFoo`
and moreover, does not include in "bundle exec rake test" target.
Therefore, intentially the first test after gem created is fail, but in
case of gem name contains dash character is not.
The change doings...
(when "bundle gem foo-bar" called)
* create `test/test_foo_bar.rb`
* define `TestFooBar` class in `test/test_foo_bar.rb`
https://github.com/rubygems/rubygems/commit/5d9a69fc0f
2022-01-20 01:04:52 +09:00
Hiroshi SHIBATA
d22511fd75
Merge rubygems/rubygems HEAD.
...
Picked at 12aeef6ba9a3be0022be9934c1a3e4c46a03ed3a
2022-01-19 15:01:44 +09:00
Vyacheslav Alexeev
d0a0637948
[rubygems/rubygems] Use `Fiddle` in `bundle doctor` to check for dynamic library presence
...
https://github.com/rubygems/rubygems/commit/ecd495ce1b
2022-01-13 18:16:05 +09:00
Hiroshi SHIBATA
da6a5e3ed1
Merge RubyGems-3.3.3 and Bundler-2.3.3
2021-12-25 07:40:52 +09:00
Hiroshi SHIBATA
69dc2ea465
Merge RubyGems-3.3.0 and Bundler-2.3.0
2021-12-21 15:27:05 +09:00
Josef Šimánek
25423f0918
[rubygems/rubygems] Add --version parameter to bundle info command.
...
https://github.com/rubygems/rubygems/commit/7d9fdd908d
2021-12-06 18:03:54 +09:00
David Rodríguez
248fae0ec4
[rubygems/rubygems] Improve sources representation
...
We have two representations of a source. Once used for sorting, which
should not depend on the source's state, but solely on its static
information, like remotes. Another one used for error and informational
messages, which should properly inform about the exact state of the
source when the message is printed.
This commit makes the latter be the default implementation of `to_s`, so
that error and informational messages are more accurate by default.
https://github.com/rubygems/rubygems/commit/b5f2b88957
2021-12-03 20:00:50 +09:00
Hiroshi SHIBATA
0b53a8895f
Merge rubygems master fd676ac464491afaa0baf5435cb11b3f86229cbd
2021-12-01 11:00:10 +09:00
ooooooo-q
af59d35570
[rubygems/rubygems] Fix escape of filenames in `bundle doctor`
...
https://github.com/rubygems/rubygems/commit/3ede1435ea
2021-11-30 01:29:34 +09:00
David Rodríguez
f3320f164f
[rubygems/rubygems] Fix `bundle info` sometimes claiming that bundler has been deleted
...
https://github.com/rubygems/rubygems/commit/fe1a31db31
2021-11-26 08:50:52 +09:00
David Rodriguez
9fbf3a1f6f
Unify issue template and ISSUES.md document
...
Some crucial information to ease maintainers work, like the advice of
upgrading rubygems and bundler, was one step away from the issue
template, making it easier for some users to miss.
Now all relevant information is written directly in the bug report
template.
2021-10-25 20:48:51 +09:00