summaryrefslogtreecommitdiff
path: root/test/rubygems/helper.rb
AgeCommit message (Collapse)Author
2025-12-16[ruby/rubygems] Reset MAKEFLAGS option for build jobs testsHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/09e6031a11
2025-11-21[ruby/rubygems] Respect `BUNDLE_VERSION` config at Gem::BundlerVersionFinderHiroshi SHIBATA
If we use "system" variable in BUNDLE_VERSION on Bundler configuration, we can use bundler version provided by system installation. But the current logic returns the first activated version of bundler like 2.7.2. It makes to confuse users. https://github.com/ruby/rubygems/commit/4eb66d9549
2025-10-28[ruby/rubygems] Added install_default_gem method for testingHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/81dbd42abf
2025-10-28[ruby/rubygems] Completely removed install_as_default featureHiroshi SHIBATA
https://github.com/ruby/rubygems/commit/15e46a3a68
2025-09-03[rubygems/rubygems] Improve source list management testingDavid Rodríguez
This approach better simulate that ["http://gems.example.com/"] is the default list of sources, rather than ["https://rubygems.org/"]. https://github.com/rubygems/rubygems/commit/55130c259a
2025-08-18[rubygems/rubygems] Use spaces around optional parameter valuesDavid Rodríguez
https://github.com/rubygems/rubygems/commit/b58829a868
2025-07-22[rubygems/rubygems] Define dummy module for mise pluginHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/64bdff1e1e
2025-06-17[rubygems/rubygems] Refactor some logic to create extconf files for testsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/9a859078ab
2025-06-06Move most of Bundler::GemHelpers to Gem::PlatformSamuel Giddins
This will help centralize wheel platform selection logic eventually Signed-off-by: Samuel Giddins <segiddins@segiddins.me>
2025-02-19[rubygems/rubygems] Remove no longer necessary JRuby specific test ENVDavid Rodríguez
It does not seem noisy anymore. https://github.com/rubygems/rubygems/commit/060c5e960a
2024-08-29Removed redundant require for TestGemRequireHiroshi SHIBATA
Notes: Merged: https://github.com/ruby/ruby/pull/11490
2024-06-14[rubygems/rubygems] Never remove executables that may belong to a default gemDavid Rodríguez
https://github.com/rubygems/rubygems/commit/ed585f2fca
2024-06-14[rubygems/rubygems] Reuse `write_file` helperDavid Rodríguez
https://github.com/rubygems/rubygems/commit/339f099870
2024-05-15[rubygems/rubygems] Do not override `@orig_env`Nobuyoshi Nakada
It is saved in `setup` and restored in `teardown`. https://github.com/rubygems/rubygems/commit/880c5de667
2024-05-14[rubygems/rubygems] Make `Gem.clear_paths` test less implementation dependentDavid Rodriguez
https://github.com/rubygems/rubygems/commit/b545daa95d
2024-05-14[rubygems/rubygems] Simplify test teardownDavid Rodriguez
If we move test directory removal to the very end, I think we should not leak anything. https://github.com/rubygems/rubygems/commit/fb3d8944b5
2024-05-06[rubygems/rubygems] Remove more unnecessary compatibility codeDavid Rodriguez
https://github.com/rubygems/rubygems/commit/00d91f141b
2024-04-16[rubygems/rubygems] Honor a specified path as the temporary diretory if givenNobuyoshi Nakada
## The problem Currently the tests are executed in the fixed name directory "tmp" under the top source directory. However it makes the tests fail when the source path contains symlinks. Or unable to even start if the top source directory is read-only, e.g., remote-mounting in read-only mode from virtual machines. Also, with the fixed directory, there is no way to avoid `pend` in `TestGemPackage#test_extract_symlink_parent_doesnt_delete_user_dir`. ## The fix Instead of creating the fixed name directory, this PR allows to use a different path given with the environment variable "GEM_TEST_TMPDIR". The default path is, as well as the current behavior, "tmp" from the top source directory. ### Caveat It is the caller's responsibility to make the directory safe (owned, world unwritable, or sticky) when setting the environment variable. https://github.com/rubygems/rubygems/commit/bf00850656
2024-03-25[rubygems/rubygems] Fix: vendor_gem takes a blockMartin Emde
https://github.com/rubygems/rubygems/commit/50cda56fc3
2024-03-04[rubygems/rubygems] Clear `RUBY_CODESIGN` env var while running testsYuta Saito
The `RUBY_CODESIGN` environment variable is used by mkmf-generated Makefile to sign extension bundles on macOS. The variable specifies a key identifier to use for signing given by the user. However, the key is usually stored in `$HOME/Library/Keychains` directory, and the test suite creates a fake `$HOME` directory. This causes the test suite to try to find the specified key from the fake home directory, which results in a failure. https://github.com/rubygems/rubygems/commit/ddcfc65bf7
2024-02-26[rubygems/rubygems] The temporary directory must been removedNobuyoshi Nakada
On Windows, open files cannot be removed and `FileUtils.rm_rf` just silently fails. This means also handle leaks, not only temporary file leaks. https://github.com/rubygems/rubygems/commit/80a9c3ec08
2024-02-26[rubygems/rubygems] Get rid of too long pathsNobuyoshi Nakada
This is a fix-up of #7483. Test method names in Rubygems are often very long, and the path under the temporary directory generated from them can easily exceed system limits. Even without including the method name in the path name, by saving the method and path name pair, it is possible to find the method from the remaining path name. https://github.com/rubygems/rubygems/commit/de55064a3d
2024-02-26Revert "Revert rubygems tempdir check"Hiroshi SHIBATA
This reverts commit 6aa5067ab970e70693529cde5102fab587158f7f.
2024-02-21Revert rubygems tempdir checkNobuyoshi Nakada
This check was added to check if other tests still remain tempdir, and these tests do on Windows. * `TestGemCommandsSetupCommand#test_destdir_flag_does_not_try_to_write_to_the_default_gem_home` * `TestGemInstaller#test_install_build_root_when_gem_home_not_writable_does_not_fallback_to_user_install_inside_build_root` Also some tests fail due to too long path names.
2024-02-21[rubygems/rubygems] Reset `Gem.state_file` along with `Gem.state_home`Nobuyoshi Nakada
As `Gem.state_file` is placed under `Gem.state_home` directory, when the latter is reset, also the former should be reset. If left unreset, the file for a previously run test will be re-created and will not be deleted. https://github.com/rubygems/rubygems/commit/1378d07afd
2024-01-29Vendor uri gem in RubyGemsDavid Rodríguez
2024-01-11[rubygems/rubygems] Update comment for minitest helperHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/77b0805474
2024-01-11[rubygems/rubygems] bin/rubocop -A test/rubygems/helper.rbHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/07ebc9f844
2024-01-11[rubygems/rubygems] Removed redundant blockHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d059b9ec4d
2023-12-13[rubygems/rubygems] Use match? when regexp match data is unusedSamuel Giddins
Improved performance / reduced allocations https://github.com/rubygems/rubygems/commit/b04726c9a7
2023-12-07[rubygems/rubygems] Use modern hashes consistentlyDavid Rodríguez
https://github.com/rubygems/rubygems/commit/bb66253f2c
2023-11-15[rubygems/rubygems] Make temp gem home independent of pwdDavid Rodríguez
https://github.com/rubygems/rubygems/commit/5c36556d2e
2023-11-13[rubygems/rubygems] Explicitly define `@default_specifications_dir` for testsVít Ondruch
Resetting `@default_specifications_dir` to `nil` means that the `Gem.default_specifications_dir` needs to be invoked. However, given that this method might be overridden by operating_system.rb and similar, this might lead to various test failures. Providing the default value makes the issues go away. https://github.com/rubygems/rubygems/commit/59626cb650
2023-11-13[rubygems/rubygems] Drop support for Ruby 2.6 and Ruby 2.7 in RubyGemsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/10c26a483d
2023-11-09[rubygems/rubygems] Use `extension_in_lib` helper instead of custom codeVít Ondruch
`extension_in_lib` helper improves readibility and it also uses `stub` on on background instead of custom code. https://github.com/rubygems/rubygems/commit/aacc8ac22c
2023-04-19Hide Gem::MockGemUi. It's only used by testsHiroshi SHIBATA
2023-04-19[rubygems/rubygems] Introduce self.load_with_rubygems_config_hashHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/9175b8cf2a
2023-04-19[rubygems/rubygems] Wrap self.convert_rubygems_config_hash from ↵Hiroshi SHIBATA
Bundler::YAMLSerializer.load https://github.com/rubygems/rubygems/commit/080880ac23
2023-04-19[rubygems/rubygems] Move all changes only in RubyGemsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d842e2092f
2023-04-19[rubygems/rubygems] Added guard condition for replacing __ variable in YAML keysHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/e7d31405ea
2023-04-19[rubygems/rubygems] Replaced load_yaml_file with Bundler::YAMLSerializerHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/1ed5fc018e
2023-04-13[rubygems/rubygems] Downcase camel like cases of instance variableHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/4eaac27107
2023-04-11util/rubocop -A --only Style/NumericLiteralPrefixHiroshi SHIBATA
2023-04-07[rubygems/rubygems] util/rubocop -A --only Style/FormatStringHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/132a56569d
2023-04-05[rubygems/rubygems] Removed unused Gem::Deprecate from Gem::TestCaseHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d8a75a5f84
2023-04-05[rubygems/rubygems] Extract class method used by self.methodHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/d900453ca2
2023-04-05[rubygems/rubygems] We don't use process_based_port and self.process_based_portHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f1a20c4c69
2023-04-05[rubygems/rubygems] We don't use self.make_commandHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/241f376c32
2023-04-05[rubygems/rubygems] Unify win_platform? to Gem.win_platform?Hiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/b18a4ef076
2023-04-05[rubygems/rubygems] Unify java_platform? to Gem.java_platform?Hiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/7f27ab32b8