Commit graph

102 commits

Author SHA1 Message Date
Dmitriy Ivliev
6dc0086d20 [rubygems/rubygems] fix s3 source configuration issue
356726bd1a
2024-07-11 02:27:46 +00:00
Hiroshi SHIBATA
0930231361 [rubygems/rubygems] Allow to use String keys some of configuration
ee0bef2786
2024-04-04 11:30:02 +09:00
Hiroshi SHIBATA
0be7133b7f [rubygems/rubygems] Re-order configuraiton keys
b2a88983db
2024-04-04 11:30:01 +09:00
Hiroshi SHIBATA
f75b9dbf7d [rubygems/rubygems] Keep Gem.install_extension_in_lib for compatibility
b2bf239147
2024-02-20 05:33:16 +00:00
Hiroshi SHIBATA
a551d93655 [rubygems/rubygems] Now install extension in lib is true
bbcad80772
2024-02-20 05:33:15 +00:00
Hiroshi SHIBATA
94dd4dc3b2 [rubygems/rubygems] Gem.install_extension_in_lib is now under the Gem.configuration
c394375b28
2024-02-20 05:33:14 +00:00
Hiroshi SHIBATA
83148f8342 [rubygems/rubygems] Allow to set install_extension_in_lib as Gem configuration
c59d40f425
2024-02-20 05:33:13 +00:00
David Rodríguez
3757d9027c [rubygems/rubygems] Remove now unnecessary dups
56ce2a6445
2023-11-13 11:06:10 +09:00
David Rodríguez
54511303a4 [rubygems/rubygems] Drop support for Ruby 2.6 and Ruby 2.7 in RubyGems
10c26a483d
2023-11-13 11:06:10 +09:00
Jenny Shen
061e01ee50 [rubygems/rubygems] Remove forward slash in key regardless if it contains __
33a02eec00
2023-05-23 18:37:09 +00:00
Jenny Shen
e854b050cc [rubygems/rubygems] Modify invalid key check to accept keys with colons
413033198b

Co-authored-by: Eric Herscovich <eric.herscovich@shopify.com>
2023-05-23 18:37:08 +00:00
Hiroshi SHIBATA
ce38ad6963 [rubygems/rubygems] util/rubocop -A
784e5e2fe5
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA
b42f0094ce [rubygems/rubygems] Support Symbol and URL keys
3bda049c73
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA
4bb0e01da2 [rubygems/rubygems] warn message when RubyGems handle invalid yaml like 'invalid: foo: bar'
b8d0c25b7e
2023-04-20 01:57:17 +00:00
Hiroshi SHIBATA
40d1a00040 [rubygems/rubygems] Copy YAMLSerializer from Bundler
6a97346708
2023-04-19 06:56:23 +00:00
Hiroshi SHIBATA
8b95b33a9d [rubygems/rubygems] Bundler::YAMLSerializer.load couldn't raise error when invalid yaml was provided
cfcfde04c7
2023-04-19 06:56:22 +00:00
Hiroshi SHIBATA
ef54a9aeb6 [rubygems/rubygems] Introduce self.load_with_rubygems_config_hash
9175b8cf2a
2023-04-19 06:56:21 +00:00
Hiroshi SHIBATA
644d7df021 [rubygems/rubygems] Introduce self.dump_with_rubygems_yaml
3d3b0d80a1
2023-04-19 06:56:21 +00:00
Hiroshi SHIBATA
45655089da [rubygems/rubygems] Removed trailing-slash for domain
81ba58f445
2023-04-19 06:56:20 +00:00
Hiroshi SHIBATA
cdc2e3de10 [rubygems/rubygems] Wrap self.convert_rubygems_config_hash from Bundler::YAMLSerializer.load
080880ac23
2023-04-19 06:56:20 +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
e684eb9e61 [rubygems/rubygems] Added missing require for Bundler::YAMLSerializer
55ef32fdd7
2023-04-19 06:56:16 +00:00
Hiroshi SHIBATA
6f50ecfe66 [rubygems/rubygems] Try to use pure-ruby YAML serializer for configuration
3268d40974
2023-04-19 06:56:13 +00:00
Hiroshi SHIBATA
d89cc317c6
util/rubocop -A --only Style/NumericLiteralPrefix 2023-04-11 19:12:28 +09:00
Hiroshi SHIBATA
a881b33818 [rubygems/rubygems] util/rubocop -A --only Performance/RegexpMatch
52ae4452c2
2023-04-04 12:20:43 +00:00
Hiroshi SHIBATA
f24a86d83f util/rubocop -A --only Layout/EmptyLineAfterMagicComment 2023-03-23 17:18:49 +09:00
Hiroshi SHIBATA
5211900d37 util/rubocop -A --only Style/SymbolProc 2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
3e1f767cd5 util/rubocop -A --only Layout/DotPosition 2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
66bd2c1a1c [rubygems/rubygems] util/rubocop -A --only Style/CommentAnnotation
4e77a1d1d5
2023-03-17 18:50:55 +09:00
Hiroshi SHIBATA
0b632b9cdd [rubygems/rubygems] util/rubocop -A --only Style/ClassCheck
1c3356a872
2023-03-17 18:50:55 +09:00
Josef Šimánek
de159c5a85 [rubygems/rubygems] Store last check even when upgrade is not available and fix test.
bcffc2b0a5
2022-11-11 17:24:08 +09:00
Josef Šimánek
7ce0f81fbb [rubygems/rubygems] Use file in XDG_STATE_HOME directory to store last update check timestamp.
0fbc4ace8a
2022-11-11 17:24:08 +09:00
Josef Šimánek
c7d043065c [rubygems/rubygems] Add 'call for update' to RubyGems install command.
05811f8248
2022-11-11 17:24:08 +09:00
Hiroshi SHIBATA
44264b4fee Merge rubygems/bundler HEAD.
Pick from dfbb5a3811
2022-08-09 12:05:19 +09:00
David Rodríguez
f310ac1cb2 [rubygems/rubygems] Include backtrace with crashes by default
3cc3bfd371
2022-08-05 16:37:03 +09:00
Takuya Noguchi
d7ffd3fea4
RubyGems: Enable Style/StringLiterals cop
Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
2022-07-22 12:07:23 +09:00
David Rodríguez
f04954d95c
[rubygems/rubygems] Normalize end alignment style with Bundler
f7f504b24c
2022-01-19 11:20:36 +09:00
David Rodríguez
54ae3f587e [rubygems/rubygems] Prefer require_relative to require for internal requires
c74fc58695
2021-08-31 19:06:14 +09:00
Masafumi Koba
650a65c6fc
[rubygems/rubygems] Add missing require 'fileutils' in Gem::ConfigFile
c4004fadd9
2021-07-16 15:40:08 +09:00
David Rodríguez
6e2240a2f9 Sync latest bundler & rubygems development version 2021-07-07 13:30:20 +09:00
David Rodríguez
53468cc111 Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
Hiroshi SHIBATA
b717f73402
Revert "Manually merged from https://github.com/rubygems/rubygems/pull/2636"
31a6eaabc1 is obsoleted with
  https://github.com/rubygems/rubygems/pull/3820
2020-09-23 22:01:44 +09:00
Hiroshi SHIBATA
31a6eaabc1
Manually merged from https://github.com/rubygems/rubygems/pull/2636
Enable Style/EmptyLinesAroundClassBody rubocop cop.
2020-09-23 21:02:56 +09:00
David Rodríguez
a89665b7b1 Enforce no empty lines around class body in rubygems
To normalize the code style with `bundler`.
2020-07-31 21:07:19 +09:00
David Rodríguez
955f1837a1 Use space inside block braces everywhere
To make rubygems code style consistent with bundler.
2020-06-15 21:20:37 +09:00
Hiroshi SHIBATA
5c6269c459
Support XDG_* (#2174)
* Support XDG_CONFIG_HOME for gemrc.

* Support XDG_DATA_HOME for .gem

* Added test for XDG_DATA_HOME

* Do not reuse environmental variable.

* Unify .rdoc path to RDoc.home.

* Support XDG_DATA_HOME for .rdoc

* Ignore exists?

* Extracted config_home path

* Use XDG_CONFIG_HOME for default credential path

* Fixed inconsistency location.

* Fixed the broken tests.

* Support XDG_CONFIG_HOME for irbrc

* Introduce Gem.cache_home as XDG_CACHE_HOME

* Use Gem.cache_home instead of Gem.config_home for the credential file of RubyGems.

* Initialized the old configurations

* Fixed test failure related the configuration initialization

* restore XDG_DATA_HOME

* Fixed the broken examples of bundler with XDG_*

* Do not modify environmental variable on test file

* Use XDG_DATA_HOME insted of XDG_CACHE_HOME for credential file

* stub out Gem.data_home

* Move dir accessor to defaults.rb file

* Use XDG_DATA_HOME for signed gem features

* Use XDG_DATA_HOME for spec cache

* Do not rely on Gem.user_home

* Gem.user_home is always exists. Don't need to use FileUitls.mkdir_p

* Bump support version to RubyGems 3.2.0+

* Removed the needless fallback configuration

* Fixed the inconsistency methods that are find_config_file and config_file

* Use Gem.configuration.credentials_path instead of hard-coded path

* gem_path is always provided

* Removed the duplicated code of find_home

* Also removed the duplicated code of user_home

* use Gem::UNTAINT instead of untaint for surpressing the warnings

* Use File.directory

* Restore XDG_DATA_HOME

* Use File.write
2020-04-23 19:16:06 +09:00
Hiroshi SHIBATA
7d463e360b Merge RubyGems 3.1.0.pre3
* Fix gem pristine not accounting for user installed gems. Pull request
    #2914 by Luis Sagastume.
  * Refactor keyword argument test for Ruby 2.7. Pull request #2947 by
    SHIBATA Hiroshi.
  * Fix errors at frozen Gem::Version. Pull request #2949 by Nobuyoshi
    Nakada.
  * Remove taint usage on Ruby 2.7+. Pull request #2951 by Jeremy Evans.
  * Check Manifest.txt is up to date. Pull request #2953 by David Rodríguez.
  * Clarify symlink conditionals in tests. Pull request #2962 by David
    Rodríguez.
  * Update command line parsing to work under ps. Pull request #2966 by
    David Rodríguez.
  * Properly test `Gem::Specifications.stub_for`. Pull request #2970 by
    David Rodríguez.
  * Fix Gem::LOADED_SPECS_MUTEX handling for recursive locking. Pull request
    #2985 by MSP-Greg.
2019-11-11 16:59:49 +09:00
bronzdoc
89bd1df895
[rubygems/rubygems] Add a blank line after private to be consistent with the current style
df7c0e4223
2019-07-31 07:47:00 +08:00