ruby/lib/bundler
David Rodríguez 641c3830df [rubygems/rubygems] Use `Array#concat` in `SpecSet#for` to save memory
On `rails/rails` repository Gemfile, running the following script

```
# script.rb
require "bundler/setup"
```

#### Before

```
➜  rails git:(main) ✗ BUNDLER_VERSION=2.4.0.dev ruby-memory-profiler --pretty --no-detailed --allocated-strings=0 --retained-strings=0 script.rb
Total allocated: 24.37 MB (207937 objects)
Total retained:  2.98 MB (34152 objects)
```

#### After

```
➜  rails git:(main) ✗ BUNDLER_VERSION=2.4.0.dev ruby-memory-profiler --pretty --no-detailed --allocated-strings=0 --retained-strings=0 script.rb
Total allocated: 22.27 MB (206856 objects)
Total retained:  2.98 MB (34152 objects)
```

https://github.com/rubygems/rubygems/commit/2ea2523afd

Co-authored-by: Josh Nichols <josh.nichols@gusto.com>
2022-05-16 17:24:14 +09:00
..
cli Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5 2022-04-28 19:08:49 +09:00
compact_index_client Merge rubygems/rubygems HEAD. 2022-01-19 15:01:44 +09:00
fetcher Merge rubygems/rubygems HEAD. 2022-01-19 15:01:44 +09:00
installer [rubygems/rubygems] Fix `Gemfile.lock` versions leaking to `bundler/inline` install output 2022-05-13 15:23:56 +09:00
man [rubygems/rubygems] Update man page for `require` option in `bundle add` command 2022-05-06 18:02:35 +09:00
plugin [rubygems/rubygems] Fix `Gemfile.lock` versions leaking to `bundler/inline` install output 2022-05-13 15:23:56 +09:00
resolver Merge 3f7d0352e8 2022-04-28 19:08:49 +09:00
settings Added bundler as default gems. Revisit [Feature #12733] 2018-11-02 23:07:56 +00:00
source [rubygems/rubygems] Fix `Gemfile.lock` versions leaking to `bundler/inline` install output 2022-05-13 15:23:56 +09:00
templates Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5 2022-04-28 19:08:49 +09:00
ui [rubygems/rubygems] Error tracing should be printed to stderr 2021-12-20 06:49:49 +09:00
vendor Merge 3f7d0352e8 2022-04-28 19:08:49 +09:00
.document [DOC] Exclude Bundler only [ci skip] 2021-12-13 19:47:52 +09:00
build_metadata.rb Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5 2022-04-28 19:08:49 +09:00
bundler.gemspec Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
capistrano.rb [bundler/bundler] Fix comments and messages to refer to https url 2019-09-18 18:26:32 +09:00
cli.rb Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5 2022-04-28 19:08:49 +09:00
compact_index_client.rb Merge rubygems/rubygems HEAD. 2022-01-19 15:01:44 +09:00
constants.rb Added bundler as default gems. Revisit [Feature #12733] 2018-11-02 23:07:56 +00:00
current_ruby.rb [rubygems/rubygems] Add modern rubies to the platforms 2022-04-16 08:23:21 +09:00
definition.rb [rubygems/rubygems] Also speed up the case when nothing changed 2022-05-04 06:45:16 +09:00
dep_proxy.rb Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
dependency.rb [rubygems/rubygems] Add modern rubies to the platforms 2022-04-16 08:23:21 +09:00
deployment.rb Merge bundler master from upstream. 2019-06-09 12:44:10 +09:00
deprecate.rb Added bundler as default gems. Revisit [Feature #12733] 2018-11-02 23:07:56 +00:00
digest.rb [rubygems/rubygems] Fix Bundler::Digest#sha1 on big-endian systems 2021-10-26 01:51:05 +09:00
dsl.rb Track RubyGems 3.4.0dev and Bundler 2.4.0dev 2021-12-27 10:45:36 +09:00
endpoint_specification.rb [rubygems/rubygems] Fix missing required rubygems version when using old APIs 2022-04-28 15:44:02 +09:00
env.rb [rubygems/rubygems] Use Gem::Platform.local instead of RUBY_PLATFORM 2022-01-26 02:24:30 +09:00
environment_preserver.rb [rubygems/rubygems] Don't replace ENV twice on non Windows platforms 2021-11-25 04:02:19 +09:00
errors.rb [rubygems/rubygems] Show proper error when previous installation of gem can't be deleted 2021-10-25 20:48:51 +09:00
feature_flag.rb Sync latest bundler & rubygems development version 2021-07-07 13:30:20 +09:00
fetcher.rb [rubygems/rubygems] Report Github Actions CI provider within user agent string 2022-03-15 04:44:33 +09:00
friendly_errors.rb Unify issue template and ISSUES.md document 2021-10-25 20:48:51 +09:00
gem_helper.rb [rubygems/rubygems] Append a newline to the checksum file 2022-01-04 14:59:17 +09:00
gem_helpers.rb Merge RubyGems 3.2.3 and Bundler 2.2.3 2020-12-23 10:17:41 +09:00
gem_tasks.rb Merge bundler master from upstream. 2019-06-09 12:44:10 +09:00
gem_version_promoter.rb Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
graph.rb Merge bundler-2.2.0.rc.2 2020-10-15 17:19:02 +09:00
index.rb Merge RubyGems/Bundler master from 8459ebd6ad65ce3397233416dc64083ae7572bb9 2021-07-14 10:48:07 +09:00
injector.rb [rubygems/rubygems] Add `github` and `ref` options to `bundle add` 2021-12-11 00:13:25 +09:00
inline.rb Merge the master branch of Bundler 2021-04-15 15:36:15 +09:00
installer.rb [rubygems/rubygems] Fix `Gemfile.lock` versions leaking to `bundler/inline` install output 2022-05-13 15:23:56 +09:00
lazy_specification.rb [rubygems/rubygems] Fix error message on metadata mismatches 2022-05-11 16:55:49 +09:00
lockfile_generator.rb Merge rubygems/rubygems HEAD. 2022-01-19 15:01:44 +09:00
lockfile_parser.rb Merge RubyGems-3.3.0 and Bundler-2.3.0 2021-12-21 15:27:05 +09:00
match_platform.rb Merge bundler master from upstream. 2019-06-09 12:44:10 +09:00
mirror.rb Merge bundler-2.2.0.rc.2 2020-10-15 17:19:02 +09:00
plugin.rb [rubygems/rubygems] Make plugin installation idempotent 2021-08-31 19:06:14 +09:00
process_lock.rb Track Bundler master(2.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20 2021-01-04 13:14:43 +09:00
remote_specification.rb [rubygems/rubygems] Fix regression with old marshaled specs having null required_rubygems_version 2022-01-19 11:20:36 +09:00
resolver.rb Merge 3f7d0352e8 2022-04-28 19:08:49 +09:00
retry.rb Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
ruby_dsl.rb Added bundler as default gems. Revisit [Feature #12733] 2018-11-02 23:07:56 +00:00
ruby_version.rb Merge 3f7d0352e8 2022-04-28 19:08:49 +09:00
rubygems_ext.rb Merge 3f7d0352e8 2022-04-28 19:08:49 +09:00
rubygems_gem_installer.rb Merge RubyGems-3.3.1 and Bundler-2.3.1 2021-12-23 09:44:45 +09:00
rubygems_integration.rb [rubygems/rubygems] Cleanup old legacy code 2022-05-09 21:25:23 +09:00
runtime.rb [rubygems/rubygems] Cleanup old legacy code 2022-05-09 21:25:23 +09:00
self_manager.rb Merge rubygems/rubygems HEAD. 2022-01-19 15:01:44 +09:00
settings.rb Merge RubyGems and Bundler master 2022-02-28 11:39:20 +09:00
setup.rb [rubygems/rubygems] Remove unnecessary escape sequences 2021-08-31 19:06:14 +09:00
shared_helpers.rb Merge rubygems master 1e4eda741d732ca1bd7031aef0a16c7348adf7a5 2022-04-28 19:08:49 +09:00
similarity_detector.rb Merge bundler-2.2.0.rc.2 2020-10-15 17:19:02 +09:00
source.rb [rubygems/rubygems] Fix `Gemfile.lock` versions leaking to `bundler/inline` install output 2022-05-13 15:23:56 +09:00
source_list.rb [rubygems/rubygems] Improve sources representation 2021-12-03 20:00:50 +09:00
source_map.rb [rubygems/rubygems] Fix corrupted lockfile when using `gemspec` and multiple sources 2022-02-11 18:20:20 +09:00
spec_set.rb [rubygems/rubygems] Use `Array#concat` in `SpecSet#for` to save memory 2022-05-16 17:24:14 +09:00
stub_specification.rb Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
ui.rb Merge bundler master from upstream. 2019-06-09 12:44:10 +09:00
uri_credentials_filter.rb Merge prepare version of Bundler 2.2.0 2020-12-08 17:30:02 +09:00
vendored_fileutils.rb [bundler/bundler] No need to activate the `fileutils` default gem 2019-08-18 13:45:45 +09:00
vendored_molinillo.rb Merge bundler master from upstream. 2019-06-09 12:44:10 +09:00
vendored_persistent.rb [rubygems/rubygems] Remove now unneeded code 2020-07-31 21:07:19 +09:00
vendored_thor.rb [bundler/bundler] Migrate two more requires to be relative 2019-08-03 09:29:55 +09:00
vendored_tmpdir.rb Merge prepare version of Bundler 2.2.0 2020-12-08 17:30:02 +09:00
vendored_tsort.rb Support gemification of tsort 2021-10-29 17:32:52 +09:00
vendored_uri.rb Prepare to release bundler-2.1.0 2019-12-15 16:41:10 +09:00
version.rb Track RubyGems 3.4.0dev and Bundler 2.4.0dev 2021-12-27 10:45:36 +09:00
version_ranges.rb Merge Bundler 2.1.0.pre.1 as developed version from upstream. 2019-04-14 06:01:35 +00:00
vlad.rb Merge bundler master from upstream. 2019-06-09 12:44:10 +09:00
worker.rb [rubygems/rubygems] Fix interrupt handling in Bundler workers 2021-07-27 09:25:55 +09:00
yaml_serializer.rb Merge bundler-2.2.0.rc.2 2020-10-15 17:19:02 +09:00