# frozen_string_literal: true require 'rubygems/test_case' require 'rubygems/indexer' require 'rubygems/commands/generate_index_command' class TestGemCommandsGenerateIndexCommand < Gem::TestCase def setup super @cmd = Gem::Commands::GenerateIndexCommand.new @cmd.options[:directory] = @gemhome end def test_execute use_ui @ui do @cmd.execute end specs = File.join @gemhome, "specs.4.8.gz" assert File.exist?(specs), specs end def test_execute_no_modern @cmd.options[:modern] = false use_ui @ui do @cmd.execute end specs = File.join @gemhome, "specs.4.8.gz" assert File.exist?(specs), specs end def test_handle_options_directory return if win_platform? refute_equal '/nonexistent', @cmd.options[:directory] @cmd.handle_options %w[--directory /nonexistent] assert_equal '/nonexistent', @cmd.options[:directory] end def test_handle_options_directory_windows return unless win_platform? refute_equal '/nonexistent', @cmd.options[:directory] @cmd.handle_options %w[--directory C:/nonexistent] assert_equal 'C:/nonexistent', @cmd.options[:directory] end def test_handle_options_update @cmd.handle_options %w[--update] assert @cmd.options[:update] end def test_handle_options_modern use_ui @ui do @cmd.handle_options %w[--modern] end assert_equal \ "WARNING: The \"--modern\" option has been deprecated and will be removed in Rubygems 4.0. Modern indexes (specs, latest_specs, and prerelease_specs) are always generated, so this option is not needed.\n", @ui.error end def test_handle_options_no_modern use_ui @ui do @cmd.handle_options %w[--no-modern] end assert_equal \ "WARNING: The \"--no-modern\" option has been deprecated and will be removed in Rubygems 4.0. The `--no-modern` option is currently ignored. Modern indexes (specs, latest_specs, and prerelease_specs) are always generated.\n", @ui.error end end f43a'>refslogtreecommitdiff
path: root/tool/update-deps
AgeCommit message (Expand)Author
2023-09-27Rename YARP symbols to prismKevin Newton
2023-08-25Update sync script to handle yarp/version.hKevin Newton
2023-08-22Render YARP templates into the build directory (#8266)Takashi Kokubun
2023-08-18Revert "Fix tool/update-deps for YARP files"Takashi Kokubun
2023-08-18Fix tool/update-deps for YARP filesTakashi Kokubun
2023-07-27Clean up OPT_STACK_CACHING (#8132)Takashi Kokubun
2023-07-21Try to fix NoMethodError on update-depsTakashi Kokubun
2023-07-21Suppress flaky update-deps failures for any win32 filesTakashi Kokubun
2023-07-20Add a missing *Takashi Kokubun
2023-07-20Ignore win32/file.o on update-depsTakashi Kokubun
2023-06-21[Feature #19741] Add yarp to buildsJemma Issroff
2023-06-12[Feature #19719] Universal Parseryui-knk
2023-03-06Remove obsoleted mjit_sp_inc.inc.erbTakashi Kokubun
2023-02-21Fix detection of compiler_wd in tool/update-depsMatt Valentine-House
2023-01-27YJIT: Fix shared/static library symbol leaksAlan Wu
2022-11-29MJIT: Rename mjit_compile_attr to mjit_sp_incTakashi Kokubun
2022-11-16Remove duplicate `.rbinc` on `.rb` dependenciesNobuyoshi Nakada
2022-11-16Depending on revision.h with VPATHNobuyoshi Nakada
2022-09-04Ruby MJIT (#6028)Takashi Kokubun
2022-07-13Bundled gem extensions are out of scope of update-depsNobuyoshi Nakada
2021-04-06update-deps: prepare to run if not yet doneNobuyoshi Nakada
2021-01-05[DOC] Fix grammar: "is same as" -> "is the same as"Marcus Stollsteimer
2020-09-05update-deps: ruby-runner is not a targetNobuyoshi Nakada