aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems
Commit message (Collapse)AuthorAgeFilesLines
* [rubygems/rubygems] Bump rb-sys in ↵dependabot[bot]2022-12-122-5/+5
| | | | | | | | | | | | | | | | /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>
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2022-12-122-5/+5
| | | | | | | | | | | | | | 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>
* [rubygems/rubygems] Prefer RbConfig::CONFIG['EXEEXT'] over hardcorded '.exe'Nobuyoshi Nakada2022-12-121-2/+2
| | | | https://github.com/rubygems/rubygems/commit/bc84b2d262
* Merge RubyGems/Bundler masterHiroshi SHIBATA2022-12-124-61/+53
| | | | from https://github.com/rubygems/rubygems/commit/bfb0ae69776069155d2092702bfbb5a12617d85a
* [rubygems/rubygems] Remove remaining dev profile testIan Ker-Seymer2022-12-071-10/+0
| | | | https://github.com/rubygems/rubygems/commit/7d50e998b3
* [rubygems/rubygems] Better tests are betterIan Ker-Seymer2022-12-071-1/+2
| | | | https://github.com/rubygems/rubygems/commit/17abb80c2c
* [rubygems/rubygems] Fix string match in testIan Ker-Seymer2022-12-071-1/+1
| | | | https://github.com/rubygems/rubygems/commit/82554f2bfd
* [rubygems/rubygems] Always build in release modeIan Ker-Seymer2022-12-071-25/+0
| | | | https://github.com/rubygems/rubygems/commit/7b84fc1f19
* [rubygems/rubygems] Updates rb-sys to 0.9.46Ian Ker-Seymer2022-12-074-66/+46
| | | | https://github.com/rubygems/rubygems/commit/6c2e7aafd6
* [rubygems/rubygems] Delete partial file and re-raise on Errno::ENOSPC.Ellen Marie Dash2022-12-021-0/+31
| | | | | | Add test for not leaving empty files if ENOSPC is raised during 'gem install' https://github.com/rubygems/rubygems/commit/8e0e20f079
* [rubygems/rubygems] Stop installing everything under "lib" at the top in all ↵Nobuyoshi Nakada2022-11-251-8/+1
| | | | | | tests https://github.com/rubygems/rubygems/commit/f9772d62e1
* Merge RubyGems/Bundler master from ee2f8398324af4bc1b95f7565ce2fda98126e026v3_2_0_preview3Hiroshi SHIBATA2022-11-114-10/+10
|
* [rubygems/rubygems] Store last check even when upgrade is not available and ↵Josef Šimánek2022-11-111-2/+73
| | | | | | fix test. https://github.com/rubygems/rubygems/commit/bcffc2b0a5
* [rubygems/rubygems] Use file in XDG_STATE_HOME directory to store last ↵Josef Šimánek2022-11-112-5/+8
| | | | | | update check timestamp. https://github.com/rubygems/rubygems/commit/0fbc4ace8a
* [rubygems/rubygems] Add 'call for update' to RubyGems install command.Josef Šimánek2022-11-113-0/+157
| | | | https://github.com/rubygems/rubygems/commit/05811f8248
* [rubygems/rubygems] github source should default to secure protocolJason Karns2022-11-111-2/+2
| | | | | | | | Bundler 2 switched to secure https here https://github.com/rubygems/rubygems/commit/c2e81f8ff63613871cc8b52653c5e176f8dafde3 Insecure protocols should be avoided to prevent MITM attacks. https://github.com/rubygems/rubygems/commit/758413364a
* [rubygems/rubygems] Fix rubocop violationsPeter Zhu2022-11-071-2/+2
| | | | https://github.com/rubygems/rubygems/commit/cc12e68637
* [rubygems/rubygems] Drop support for HP-UXPeter Zhu2022-11-071-1/+0
| | | | | | Support for HP-UX was dropped in Ruby in ruby/ruby#5457. https://github.com/rubygems/rubygems/commit/a3a8df3582
* [rubygems/rubygems] Bump rb-sys in ↵dependabot[bot]2022-11-022-5/+5
| | | | | | | | | | | | | | | | | | | /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
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2022-11-012-5/+5
| | | | | | | | | | | | | | | | | 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
* [rubygems/rubygems] Bump rb-sys in ↵dependabot[bot]2022-10-252-7/+7
| | | | | | | | | | | | | | | | | | | /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
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2022-10-242-7/+7
| | | | | | | | | | | | | | | | | 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
* [rubygems/rubygems] Use [] instead of double-quotes Hiroshi SHIBATA2022-10-191-1/+1
|
* Bypass git submodule add/update with git config protocol.file.allow=always ↵Hiroshi SHIBATA2022-10-191-0/+5
| | | | | | option. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Merge RubyGems/Bundler masterHiroshi SHIBATA2022-10-1827-476/+470
| | | | https://github.com/rubygems/rubygems/commit/6214d00b2315ed37c76b1fbc1c72f61f92ba5a65
* [rubygems/rubygems] TestGemSecuritySigner#test_sign: Correct the expectation ↵Jarek Prokop2022-10-181-6/+6
| | | | | | for new cert. https://github.com/rubygems/rubygems/commit/bed360410d
* [rubygems/rubygems] TestGemSecurity#test_class_re_sign: Correct signature ↵Jarek Prokop2022-10-181-1/+1
| | | | | | algorithm. https://github.com/rubygems/rubygems/commit/e2d533591c
* [rubygems/rubygems] Set Subject Key Identifier in test to correspond to the ↵Jarek Prokop2022-10-181-4/+4
| | | | | | new certificate. https://github.com/rubygems/rubygems/commit/3a607f43d1
* [rubygems/rubygems] Bump rb-sysdependabot[bot]2022-10-112-5/+5
| | | | | | | | | | | | | | | | | 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
* [rubygems/rubygems] Bump rb-sys in ↵dependabot[bot]2022-10-112-5/+5
| | | | | | | | | | | | | | | | | | | /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
* [rubygems/rubygems] Revert "Cleaup unnecessary code"David Rodríguez2022-10-032-0/+20
| | | | | | | 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
* [rubygems/rubygems] Fix matching of eabihf platformsDavid Rodríguez2022-10-011-0/+8
| | | | https://github.com/rubygems/rubygems/commit/a03d30cd58
* [rubygems/rubygems] Fix matching of linux platforms with eabi modifiersDavid Rodríguez2022-10-011-0/+20
| | | | | | https://github.com/rubygems/rubygems/commit/89362c18ef Co-authored-by: Mike Dalessio <mike.dalessio@gmail.com>
* [rubygems/rubygems] Prevent a "warning: assigned but unused variable - data"Yusuke Endoh2022-09-301-1/+1
| | | | https://github.com/rubygems/rubygems/commit/ec3fd55d40
* [rubygems/rubygems] Refine error message to check the push URL instead of ↵Jenny Shen2022-09-293-6/+6
| | | | | | just the host https://github.com/rubygems/rubygems/commit/46990f3292
* [rubygems/rubygems] Refactor tests to use Net::HTTPResponse instances for ↵Jenny Shen2022-09-296-83/+87
| | | | | | | | fetcher.data[:path] https://github.com/rubygems/rubygems/commit/4d91cacb1f Co-authored-by: Jacques Chester <jacques.chester@shopify.com>
* [rubygems/rubygems] Surface entire redirect uri in permanent redirectionsJenny Shen2022-09-294-41/+104
| | | | https://github.com/rubygems/rubygems/commit/da7837630b
* [rubygems/rubygems] Add error message when api response is a permanent redirectJenny Shen2022-09-293-0/+86
| | | | | | https://github.com/rubygems/rubygems/commit/ccca30c77a Co-authored-by: Nick Schwaderer <nick.schwaderer@shopify.com>
* [rubygems/rubygems] Put bundler gemspec stub at the right placeDavid Rodríguez2022-09-291-25/+28
| | | | | | | 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
* [rubygems/rubygems] Only activate bundler when neededDavid Rodríguez2022-09-292-213/+266
| | | | | | | | | | 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
* [rubygems/rubygems] Test a pure RubyGems methodDavid Rodríguez2022-09-291-5/+5
| | | | | | `Gem::Specification#load_paths` is actually a Bundler thing. https://github.com/rubygems/rubygems/commit/d20b4d1950
* [rubygems/rubygems] Little refactor to keep things consistentDavid Rodríguez2022-09-292-4/+6
| | | | https://github.com/rubygems/rubygems/commit/3934deb4e4
* [rubygems/rubygems] Remove unnecessary `ensure`David Rodríguez2022-09-291-1/+0
| | | | https://github.com/rubygems/rubygems/commit/6c0c02c533
* [rubygems/rubygems] Require bundler consistentlyDavid Rodríguez2022-09-291-6/+1
| | | | | | | The `$LOAD_PATH` should be properly setup so that the local version is used. https://github.com/rubygems/rubygems/commit/03c0ab4082
* [rubygems/rubygems] Remove unnecessary constantDavid Rodríguez2022-09-291-2/+1
| | | | https://github.com/rubygems/rubygems/commit/4bd77488ad
* [rubygems/rubygems] Cleaup unnecessary codeDavid Rodríguez2022-09-292-20/+0
| | | | https://github.com/rubygems/rubygems/commit/2e05dadbc5
* [rubygems/rubygems] Unskip stuff that now works on JRubyDavid Rodríguez2022-09-291-9/+5
| | | | https://github.com/rubygems/rubygems/commit/d86a5ae2eb
* [rubygems/rubygems] Force "master" to be used regardless of ↵David Rodríguez2022-09-281-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `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
* [rubygems/rubygems] fix: Gem::Platform.match handles String argument properlyMike Dalessio2022-09-281-0/+7
| | | | | | | | | | | | | | 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
* [rubygems/rubygems] Mask the file mode when extracting filesKevin Newton2022-09-152-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When extracting files from the tarball, a mode is retrieved from the header. Occasionally you'll encounter a gem that was packaged on a system whose permission bits result in a value that is larger than the value that File.chmod will allow (anything >= 2^16). In that case the extraction fails with a RangeError, which is pretty esoteric. If you extract the tarball with the tar and gunzip utilities, the file permissions end up being just the bottom 16 bits masked off from the original value. I've mirrored that behavior here. Per the tar spec: > Modes which are not supported by the operating system restoring > files from the archive will be ignored. I think that basically means what I've done here. --- This commit also changes the behavior very slightly with regard to when the chmod is called. Previously it was called while the file descriptor was still open, but after the write call. When write flushes, the file permissions are changed to the mode value from the File.open call, undoing the changes made by FileUtils.chmod. CRuby appears to flush the buffer after the chmod call, whereas TruffleRuby flushes before the chmod call. So the file permissions can change depending on implementation. Both implementations end up getting the correct file permissions for the bottom 9 bits (user, group, world), but differ with regard to the sticky bit in the next 3. To get consistent behavior, this commit changes it to close the file descriptor before attempting to chmod anything, which makes it consistent because the write flushes in both cases. https://github.com/rubygems/rubygems/commit/22ce076e99