Граф коммитов

939 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 3e104b4419 [rubygems/rubygems] Clean up Indexer build files in tests
https://github.com/rubygems/rubygems/commit/5479d99a1d
2022-12-14 10:11:07 +00:00
dependabot[bot] 91050d3443 [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.46 to 0.9.48.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.46...v0.9.48)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-12 22:29:39 +00:00
dependabot[bot] 8e619b8e0e [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.46 to 0.9.48.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.46...v0.9.48)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-12-12 20:04:00 +00:00
Nobuyoshi Nakada e1f42844a0 [rubygems/rubygems] Prefer RbConfig::CONFIG['EXEEXT'] over hardcorded '.exe'
https://github.com/rubygems/rubygems/commit/bc84b2d262
2022-12-12 06:00:41 +00:00
Hiroshi SHIBATA bbe56a6437 Merge RubyGems/Bundler master
from bfb0ae6977
2022-12-12 10:49:43 +09:00
Ian Ker-Seymer 01fd1c482e [rubygems/rubygems] Remove remaining dev profile test
https://github.com/rubygems/rubygems/commit/7d50e998b3
2022-12-07 11:31:26 +00:00
Ian Ker-Seymer 88497b2167 [rubygems/rubygems] Better tests are better
https://github.com/rubygems/rubygems/commit/17abb80c2c
2022-12-07 11:31:25 +00:00
Ian Ker-Seymer ef50934721 [rubygems/rubygems] Fix string match in test
https://github.com/rubygems/rubygems/commit/82554f2bfd
2022-12-07 11:31:25 +00:00
Ian Ker-Seymer 554161236a [rubygems/rubygems] Always build in release mode
https://github.com/rubygems/rubygems/commit/7b84fc1f19
2022-12-07 11:31:25 +00:00
Ian Ker-Seymer 37d10caa0d [rubygems/rubygems] Updates rb-sys to 0.9.46
https://github.com/rubygems/rubygems/commit/6c2e7aafd6
2022-12-07 11:31:21 +00:00
Ellen Marie Dash 82b86b4c97 [rubygems/rubygems] Delete partial file and re-raise on Errno::ENOSPC.
Add test for not leaving empty files if ENOSPC is raised during 'gem install'

https://github.com/rubygems/rubygems/commit/8e0e20f079
2022-12-02 19:21:08 +00:00
Nobuyoshi Nakada 58dc9c931b [rubygems/rubygems] Stop installing everything under "lib" at the top in all tests
https://github.com/rubygems/rubygems/commit/f9772d62e1
2022-11-25 08:02:28 +00:00
Hiroshi SHIBATA 28611be6ee Merge RubyGems/Bundler master from ee2f8398324af4bc1b95f7565ce2fda98126e026 2022-11-11 17:24:08 +09:00
Josef Šimánek de159c5a85 [rubygems/rubygems] Store last check even when upgrade is not available and fix test.
https://github.com/rubygems/rubygems/commit/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.
https://github.com/rubygems/rubygems/commit/0fbc4ace8a
2022-11-11 17:24:08 +09:00
Josef Šimánek c7d043065c [rubygems/rubygems] Add 'call for update' to RubyGems install command.
https://github.com/rubygems/rubygems/commit/05811f8248
2022-11-11 17:24:08 +09:00
Jason Karns ceeefb5870 [rubygems/rubygems] github source should default to secure protocol
Bundler 2 switched to secure https here c2e81f8ff6

Insecure protocols should be avoided to prevent MITM attacks.

https://github.com/rubygems/rubygems/commit/758413364a
2022-11-11 17:24:08 +09:00
Peter Zhu 33bc398b73 [rubygems/rubygems] Fix rubocop violations
https://github.com/rubygems/rubygems/commit/cc12e68637
2022-11-07 10:52:15 +00:00
Peter Zhu 0fb7a1c77c [rubygems/rubygems] Drop support for HP-UX
Support for HP-UX was dropped in Ruby in ruby/ruby#5457.

https://github.com/rubygems/rubygems/commit/a3a8df3582
2022-11-07 10:52:13 +00:00
dependabot[bot] 875b7b3361 [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.34 to 0.9.35.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.34...v0.9.35)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

https://github.com/rubygems/rubygems/commit/19feb314cb
2022-11-02 10:31:18 +00:00
dependabot[bot] 4c59808a46 [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.34 to 0.9.35.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.34...v0.9.35)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

https://github.com/rubygems/rubygems/commit/73268e7af5
2022-11-01 00:10:52 +00:00
dependabot[bot] ba15fb709b [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.31 to 0.9.34.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.31...v0.9.34)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

https://github.com/rubygems/rubygems/commit/6af714b02c
2022-10-25 06:56:59 +00:00
dependabot[bot] fcb1a49812 [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.31 to 0.9.34.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.31...v0.9.34)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

https://github.com/rubygems/rubygems/commit/1882ad876f
2022-10-24 23:33:53 +00:00
Hiroshi SHIBATA 86096a91d5 [rubygems/rubygems] Use [] instead of double-quotes 2022-10-19 13:03:47 +00:00
Hiroshi SHIBATA dae843f6b7 Bypass git submodule add/update with git config protocol.file.allow=always option.
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
2022-10-19 20:34:45 +09:00
Hiroshi SHIBATA f5df47d1f3 Merge RubyGems/Bundler master
6214d00b23
2022-10-18 16:33:15 +09:00
Jarek Prokop 2ab7bb8969 [rubygems/rubygems] TestGemSecuritySigner#test_sign: Correct the expectation for new cert.
https://github.com/rubygems/rubygems/commit/bed360410d
2022-10-18 16:33:15 +09:00
Jarek Prokop b7debaa801 [rubygems/rubygems] TestGemSecurity#test_class_re_sign: Correct signature algorithm.
https://github.com/rubygems/rubygems/commit/e2d533591c
2022-10-18 16:33:15 +09:00
Jarek Prokop cbddc913d9 [rubygems/rubygems] Set Subject Key Identifier in test to correspond to the new certificate.
https://github.com/rubygems/rubygems/commit/3a607f43d1
2022-10-18 16:33:15 +09:00
dependabot[bot] 5ffbb2be18 [rubygems/rubygems] Bump rb-sys
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.30 to 0.9.31.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.30...v0.9.31)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

https://github.com/rubygems/rubygems/commit/4ad57bacea
2022-10-11 21:29:13 +09:00
dependabot[bot] ccf61c01d5 [rubygems/rubygems] Bump rb-sys in /test/rubygems/test_gem_ext_cargo_builder/custom_name
Bumps [rb-sys](https://github.com/oxidize-rb/rb-sys) from 0.9.30 to 0.9.31.
- [Release notes](https://github.com/oxidize-rb/rb-sys/releases)
- [Commits](https://github.com/oxidize-rb/rb-sys/compare/v0.9.30...v0.9.31)

---
updated-dependencies:
- dependency-name: rb-sys
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

https://github.com/rubygems/rubygems/commit/476490d529
2022-10-11 21:29:01 +09:00
David Rodríguez b7a61cb485 [rubygems/rubygems] Revert "Cleaup unnecessary code"
Unclear why, but https://github.com/rubygems/rubygems/commit/2e05dadbc5de created some
warnings in ruby-core CI, so let's revert it.

https://github.com/rubygems/rubygems/commit/729ce3a6e1
2022-10-03 19:54:24 +09:00
David Rodríguez f04d249e83 [rubygems/rubygems] Fix matching of eabihf platforms
https://github.com/rubygems/rubygems/commit/a03d30cd58
2022-10-01 05:46:40 +09:00
David Rodríguez 8252ea2140 [rubygems/rubygems] Fix matching of linux platforms with eabi modifiers
https://github.com/rubygems/rubygems/commit/89362c18ef

Co-authored-by: Mike Dalessio <mike.dalessio@gmail.com>
2022-10-01 05:46:40 +09:00
Yusuke Endoh 962f9932af [rubygems/rubygems] Prevent a "warning: assigned but unused variable - data"
https://github.com/rubygems/rubygems/commit/ec3fd55d40
2022-09-30 15:50:46 +09:00
Jenny Shen 28840d74c2 [rubygems/rubygems] Refine error message to check the push URL instead of just the host
https://github.com/rubygems/rubygems/commit/46990f3292
2022-09-29 17:56:36 +09:00
Jenny Shen 0522e31d57 [rubygems/rubygems] Refactor tests to use Net::HTTPResponse instances for fetcher.data[:path]
https://github.com/rubygems/rubygems/commit/4d91cacb1f

Co-authored-by: Jacques Chester <jacques.chester@shopify.com>
2022-09-29 17:56:36 +09:00
Jenny Shen 17b783ad9e [rubygems/rubygems] Surface entire redirect uri in permanent redirections
https://github.com/rubygems/rubygems/commit/da7837630b
2022-09-29 17:56:35 +09:00
Jenny Shen 1cbf0fd863 [rubygems/rubygems] Add error message when api response is a permanent redirect
https://github.com/rubygems/rubygems/commit/ccca30c77a

Co-authored-by: Nick Schwaderer <nick.schwaderer@shopify.com>
2022-09-29 17:56:34 +09:00
David Rodríguez ac56e5c1ab [rubygems/rubygems] Put bundler gemspec stub at the right place
So that it's found when needed, rather than dynamically modifying
loaded stubs and thus messing with RubyGems internals.

https://github.com/rubygems/rubygems/commit/cd3e7cb9e5
2022-09-29 03:41:53 +09:00
David Rodríguez 668e78f01b [rubygems/rubygems] Only activate bundler when needed
Loading Bundler beforehand was actually replacing ENV with a backup of
the pre-Bundler environment through `Bundler::EnvironmentPreserver`. I
think that was making a bug in `ENV.replace` not bite our tests, because
Bundler includes proper patches to workaround that issue. So this commit
also includes these patches in RubyGems tests.

https://github.com/rubygems/rubygems/commit/8e079149b9
2022-09-29 03:41:52 +09:00
David Rodríguez 20eff52087 [rubygems/rubygems] Test a pure RubyGems method
`Gem::Specification#load_paths` is actually a Bundler thing.

https://github.com/rubygems/rubygems/commit/d20b4d1950
2022-09-29 03:41:52 +09:00
David Rodríguez 00a040dda3 [rubygems/rubygems] Little refactor to keep things consistent
https://github.com/rubygems/rubygems/commit/3934deb4e4
2022-09-29 03:41:51 +09:00
David Rodríguez 874a2bf17c [rubygems/rubygems] Remove unnecessary `ensure`
https://github.com/rubygems/rubygems/commit/6c0c02c533
2022-09-29 03:41:51 +09:00
David Rodríguez c7232a2a0a [rubygems/rubygems] Require bundler consistently
The `$LOAD_PATH` should be properly setup so that the local version is
used.

https://github.com/rubygems/rubygems/commit/03c0ab4082
2022-09-29 03:41:50 +09:00
David Rodríguez b9c426eaea [rubygems/rubygems] Remove unnecessary constant
https://github.com/rubygems/rubygems/commit/4bd77488ad
2022-09-29 03:41:50 +09:00
David Rodríguez 1e5597532a [rubygems/rubygems] Cleaup unnecessary code
https://github.com/rubygems/rubygems/commit/2e05dadbc5
2022-09-29 03:41:49 +09:00
David Rodríguez 5222a89ab6 [rubygems/rubygems] Unskip stuff that now works on JRuby
https://github.com/rubygems/rubygems/commit/d86a5ae2eb
2022-09-29 03:41:49 +09:00
David Rodríguez 3c3bd03a7c [rubygems/rubygems] Force "master" to be used regardless of `init.defaultBranch` config
Otherwise, if you have `init.defaultBranch main` configured, like I do,
a bunch of tests fail with things like:

```
============================================================================================================================================================================================================
Error: test_checkout_submodules(TestGemSourceGit): Gem::Exception: unable to find reference master in /Users/deivid/Code/rubygems/rubygems/tmp/test_rubygems_20220928-13878-xog1je/git/a
/Users/deivid/Code/rubygems/rubygems/lib/rubygems/source/git.rb:188:in `rev_parse'
/Users/deivid/Code/rubygems/rubygems/lib/rubygems/source/git.rb:143:in `dir_shortref'
/Users/deivid/Code/rubygems/rubygems/lib/rubygems/source/git.rb:158:in `install_dir'
/Users/deivid/Code/rubygems/rubygems/lib/rubygems/source/git.rb:94:in `checkout'
/Users/deivid/Code/rubygems/rubygems/test/rubygems/test_gem_source_git.rb:78:in `test_checkout_submodules'
     75:       system @git, "commit", "--quiet", "-m", "add submodule b"
     76:     end
     77:
  => 78:     source.checkout
     79:
     80:     assert_path_exist File.join source.install_dir, "a.gemspec"
     81:     assert_path_exist File.join source.install_dir, "b/b.gemspec"
============================================================================================================================================================================================================
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: ambiguous argument 'master': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
E
```

In the future, I'd like to change things to use `main`, but the
straighforward fix now is to keep "master" and make the running
environment's git configuration not get in the middle.

https://github.com/rubygems/rubygems/commit/b09b1416f1
2022-09-28 23:01:20 +09:00
Mike Dalessio 8f7f12ad64 [rubygems/rubygems] fix: Gem::Platform.match handles String argument properly
Previously 9eead86 introduced non-commutativity of platforms, and
later commit 1b9f7f50 changed the behavior of `Gem::Platform.match` to
ensure the callee of `#=~` was the gem platform.

However, when the platform argument is a String, then the callee and
argument of `#=~` are flipped (see docs for `String#=~`), which works
against the fix from 1b9f7f50.

Closes #5938

https://github.com/rubygems/rubygems/commit/3b1fb562e8
2022-09-28 05:55:28 +09:00