Commit graph

9 commits

Author SHA1 Message Date
alpha0x00
3222c67262 [rubygems/rubygems] Fix line comment issue for map
7ca06e139b
2024-07-19 03:03:16 +00:00
David Rodríguez
82b68bc358 [rubygems/rubygems] Move Bundler settings specific logic to Bundler
7d1e8be2ce
2024-06-06 18:53:29 +00:00
Hiroshi SHIBATA
723deec9cf [rubygems/rubygems] Keep compatibility of past versions
54b67fb251
2024-01-24 09:11:53 +00:00
Hiroshi SHIBATA
1018dca09a [rubygems/rubygems] Skip to load commented out words
e6a9148ba2
2024-01-24 09:11:53 +00:00
Mau Magnaguagno
57178a9720 [rubygems/rubygems] Prefer String#split with block in Gem::YAMLSerializer#load
String#split supports a block since Ruby 2.6, avoiding intermediate array.

69cdf9e9d4
2023-12-05 14:28:39 +09:00
David Rodríguez
a4d80eee17 [rubygems/rubygems] Let RuboCop target Ruby 3.0
70243b1d72
2023-11-13 11:06:10 +09:00
Hiroshi SHIBATA
5c4978c11c [rubygems/rubygems] Handle empty array
7c0afdd9af
2023-10-24 16:31:43 +00:00
Samuel Giddins
c423d6e0e4 [rubygems/rubygems] Stop allocating the same settings keys repeatedly
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

e64debb6ae
2023-09-15 17:54:01 +00:00
Hiroshi SHIBATA
40d1a00040 [rubygems/rubygems] Copy YAMLSerializer from Bundler
6a97346708
2023-04-19 06:56:23 +00:00