| Age | Commit message (Collapse) | Author |
|
This specifies the lockfile location. This allows for easy support
of different lockfiles per Ruby version or platform.
https://github.com/ruby/rubygems/commit/b54d65bc0a
Co-authored-by: Sutou Kouhei <kou@cozmixng.org>
Co-authored-by: Colby Swandale <996377+colby-swandale@users.noreply.github.com>
|
|
- In https://github.com/ruby/rubygems/commit/31d67ecc056fb5a9193bc66a6e69e21576a87702
we enforced the new behaviour where running `bundle` no longer
installs gems but displays the help.
Users now have a way to configure their preferred default command using
the `BUNDLE_DEFAULT_CLI_COMMAND` flag.
With the preview of Ruby 4.0 now being released, some people will
start to see this new change.
The problem is that the previous behaviour had existed for like an
eternity and we didn't warn users about this change in advance.
I'd like to provide a deprecation/warning cycle because this is
confusing users already and this breaks various CI setup that now
needs to be changed immediately.
https://github.com/ruby/rubygems/commit/e415480ac5
|
|
https://github.com/rubygems/rubygems/commit/631a55be91
|
|
https://github.com/rubygems/rubygems/commit/31d67ecc05
|
|
https://github.com/rubygems/rubygems/commit/bfe15a4712
Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
|
|
https://github.com/rubygems/rubygems/commit/ced8ef3a12
Co-authored-by: David Rodríguez <2887858+deivid-rodriguez@users.noreply.github.com>
|
|
And make it a standard setting.
https://github.com/rubygems/rubygems/commit/17e356fa94
|
|
https://github.com/rubygems/rubygems/commit/47c3dc19ee
Co-authored-by: Jonathan Barquero <jonbarlo@hotmail.com>
|
|
And let the feature always be enabled, so I'm not sure why we'd need
this configurable.
https://github.com/rubygems/rubygems/commit/5a27f0c1e3
|
|
https://github.com/rubygems/rubygems/commit/573ffad3ea
|
|
There are several issues with these which I'm not sure I'll have time to
address properly. I prefer to keep our default branch in a releasable
state just in case. Once they are fixed, this can be reverted.
|
|
https://github.com/rubygems/rubygems/commit/4b8570ae15
|
|
It only affected the `--path` flag which is actually getting removed, so
I don't think it makes sense to make such change. The current behavior
is reasonable and I tried to codify it with a few more specs.
https://github.com/rubygems/rubygems/commit/6f520eb146
|
|
The previous default can already be configured with `bundle config
path.system true`.
https://github.com/rubygems/rubygems/commit/cb483b79db
|
|
There already different ways of toggling off this behavior, like setting
`bundle config clean false`, or configuring Bundler to install to system
gems with `bundle config path.system true`.
https://github.com/rubygems/rubygems/commit/6daa09f60a
|
|
commands
https://github.com/rubygems/rubygems/commit/0aa1be946f
|
|
https://github.com/rubygems/rubygems/commit/1ffd83f6c2
|
|
I don't think it makes sense to make this tiny behavior change
configurable. If someone wants to parse version output, and we have a
public setting, they are going to need to accommodate their regexps to
both values of the setting.
In addition to this, I plan to enhance version output with a note about
"simulated version", and in that case, "print_only_version_number" would
no longer hold, since what we print will be more than that anyways.
So, I'd like to remove the setting and change the output in Bundler 4
with no way to opt out.
https://github.com/rubygems/rubygems/commit/d84e9dcf09
|
|
https://github.com/rubygems/rubygems/commit/b16511598e
|
|
checksums in fresh lockfiles
https://github.com/rubygems/rubygems/commit/50b9ef8589
|
|
It gives better errors.
https://github.com/rubygems/rubygems/commit/bedae080ef
|
|
used in config
https://github.com/rubygems/rubygems/commit/a0af1baa2b
|
|
I don't think we should add more of these.
https://github.com/rubygems/rubygems/commit/9eee9948cc
|
|
https://github.com/rubygems/rubygems/commit/7d1e8be2ce
|
|
https://github.com/rubygems/rubygems/commit/31cb15d03f
|
|
The `normalize_uri` method always gives back a String.
https://github.com/rubygems/rubygems/commit/246953010c
|
|
https://github.com/rubygems/rubygems/commit/e31df2d6ef
|
|
Gemfile as "local app"
https://github.com/rubygems/rubygems/commit/6aa2ac337f
|
|
https://github.com/rubygems/rubygems/commit/e8a363713e
|
|
https://github.com/rubygems/rubygems/commit/c4a8d2a930
|
|
https://github.com/rubygems/rubygems/commit/5d6a8f2fb4
|
|
https://github.com/rubygems/rubygems/commit/bb66253f2c
|
|
https://github.com/rubygems/rubygems/commit/9ab1136036
|
|
https://github.com/rubygems/rubygems/commit/70243b1d72
|
|
Running `bundle update --bundler` on a rails app locally:
```
==> memprof.after.txt <==
Total allocated: 301.90 kB (3794 objects)
Total retained: 73.24 kB (698 objects)
==> memprof.before.txt <==
Total allocated: 14.47 MB (196378 objects)
Total retained: 25.93 kB (202 objects)
```
So for a slight increase in retained memory (all keys are now retained),
we go from about 200k allocations in the settings file to under 4k
https://github.com/rubygems/rubygems/commit/e64debb6ae
|
|
https://github.com/rubygems/rubygems/commit/75ffa8ef76
Co-authored-by: Martin Emde <martinemde@users.noreply.github.com>
|
|
memory usage
I previously identified and improved this method over in https://github.com/rubygems/rubygems/pull/6884
but while reviewing another memory_profiler profile, I realized another
gain we can eek out.
This method keeps comes up in part because `configs` is allocating a new
Hash every time. My last change took advantage of that by using `map!`
on it. `configs` is called quite often, including in this `[]` method,
so there's a benefit to memoizing it.
Back in `[]`, logically we are trying to find the first Hash in `configs`
that has a value for the given key. Currently, we end up `map` and
`compact` to just get that value.
Instead, we can use a loop over `configs`, and break when we find the
value for the key.
https://github.com/rubygems/rubygems/commit/b913cfc87b
|
|
https://github.com/rubygems/rubygems/commit/75c0f27b7e
|
|
https://github.com/rubygems/rubygems/commit/46745885e8
|
|
still include that
https://github.com/rubygems/rubygems/commit/235d9b38d8
|
|
https://github.com/rubygems/rubygems/commit/e79ccdafd8
|
|
.prepend to avoid allocating a new string.
https://github.com/rubygems/rubygems/commit/2ac35a661f
|
|
when it's a symbol
https://github.com/rubygems/rubygems/commit/535feb817c
|
|
allocating a matchdata, which is not used
https://github.com/rubygems/rubygems/commit/cbf9ac93d7
|
|
it's a symbol.
https://github.com/rubygems/rubygems/commit/f8167db8a2
|
|
allocating it multiple times
https://github.com/rubygems/rubygems/commit/8eac49c429
|
|
boundaries
https://github.com/rubygems/rubygems/commit/d7cde68034
|
|
individual keys are also new, so we can use ! methods on each individual one as well.
https://github.com/rubygems/rubygems/commit/f2e912b9bb
|
|
multiple times. This saves allocating 2 arrays
https://github.com/rubygems/rubygems/commit/48c03b33b7
|
|
that means we can use bang methods to avoid allocating new copies
https://github.com/rubygems/rubygems/commit/8bc13fa55f
|