Commit graph

25 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
a3cd7b3e27 [rubygems/rubygems] Prefer String#split with block in Bundler::YAMLSerializer#load
String#split supports a block since Ruby 2.6, avoiding intermediate array.

5b324969cd
2023-12-05 14:28:38 +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
7b959f6288 [rubygems/rubygems] Move all changes only in RubyGems
d842e2092f
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA
30b3290f26 [rubygems/rubygems] Added guard condition for replacing __ variable in YAML keys
e7d31405ea
2023-04-19 06:56:19 +00:00
Hiroshi SHIBATA
bf8d8ce1ee [rubygems/rubygems] Keep compatiblity of Bundler specs
b211eeacba
2023-04-19 06:56:18 +00:00
Hiroshi SHIBATA
364c2fea34 [rubygems/rubygems] Replaced empty hash to nil value in YAML
8771fbf53d
2023-04-19 06:56:17 +00:00
Hiroshi SHIBATA
7e537e9613 [rubygems/rubygems] Only convert old URL key name when it's contained double underscore
a4bfa2ef94
2023-04-19 06:56:17 +00:00
Hiroshi SHIBATA
9365492f63 [rubygems/rubygems] Fix regexp for Symbol
9a3ed682a0
2023-04-19 06:56:16 +00:00
Hiroshi SHIBATA
2c91ec0869 [rubygems/rubygems] We need to convert empty string for nil value
348c82311f
2023-04-19 06:56:15 +00:00
Hiroshi SHIBATA
fd981ebf4c [rubygems/rubygems] Handle Symbol value
c98677d073
2023-04-19 06:56:14 +00:00
Hiroshi SHIBATA
2014dc5e3a [rubygems/rubygems] Handle Symbol key and Interger and Boolean values
63efdac045
2023-04-19 06:56:14 +00:00
Hiroshi SHIBATA
d386a58f6f Merge bundler-2.2.0.rc.2 2020-10-15 17:19:02 +09:00
David Rodríguez
7ed1fc527e
[bundler/bundler] Bump rubocop to 0.74.0
And reenable exclusion because the bug why we added them has been fixed.
See https://github.com/rubocop-hq/rubocop/issues/6861.

bda63fcffc
2019-08-03 09:30:00 +09:00
Hiroshi SHIBATA
8f37629519 Merge bundler master from upstream.
Pick from 8dd59e3ba97eb80a599f8149f31bf40773b69dc0
2019-06-09 12:44:10 +09:00
hsbt
68ddd4d300 Merge Bundler 2.1.0.pre.1 as developed version from upstream.
a53709556b

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67539 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-04-14 06:01:35 +00:00
hsbt
59c8d50653 Added bundler as default gems. Revisit [Feature #12733]
* bin/*, lib/bundler/*, lib/bundler.rb, spec/bundler, man/*:
    Merge from latest stable branch of bundler/bundler repository and
    added workaround patches. I will backport them into upstream.
  * common.mk, defs/gmake.mk: Added `test-bundler` task for test suite
    of bundler.
  * tool/sync_default_gems.rb: Added sync task for bundler.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@65509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-11-02 23:07:56 +00:00
hsbt
7825e8363d Postponing the Bundler merge.
I faced a big issue about Bundler with ruby core.
  I have no time to resolve it issue before 2.5 final release.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-12-22 23:08:05 +00:00
hsbt
be7b592912 Update bundled bundler to 1.16.0.
* lib/bundler, spec/bundler: Merge bundler-1.16.0.
  * common.mk: rspec examples of bundler-1.16.0 needs require option.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-11-01 23:29:38 +00:00
hsbt
8598f8c2dc Merge bundler to standard libraries.
rubygems 2.7.x depends bundler-1.15.x. This is preparation for
  rubygems and bundler migration.

  * lib/bundler.rb, lib/bundler/*: files of bundler-1.15.4
  * spec/bundler/*: rspec examples of bundler-1.15.4. I applied patches.
    * https://github.com/bundler/bundler/pull/6007
    * Exclude not working examples on ruby repository.
    * Fake ruby interpriter instead of installed ruby.
  * Makefile.in: Added test task named `test-bundler`. This task is only
    working macOS/linux yet. I'm going to support Windows environment later.
  * tool/sync_default_gems.rb: Added sync task for bundler.

  [Feature #12733][ruby-core:77172]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59779 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-08 08:45:41 +00:00