[前][次][番号順一覧][スレッド一覧]

ruby-changes:49302

From: hsbt <ko1@a...>
Date: Sat, 23 Dec 2017 09:38:58 +0900 (JST)
Subject: [ruby-changes:49302] hsbt:r61419 (trunk): Avoid to warnings about gemspec loadings in rubygems tests.

hsbt	2017-12-23 09:38:52 +0900 (Sat, 23 Dec 2017)

  New Revision: 61419

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=61419

  Log:
    Avoid to warnings about gemspec loadings in rubygems tests.

  Modified files:
    trunk/test/rubygems/test_gem_commands_setup_command.rb
Index: test/rubygems/test_gem_commands_setup_command.rb
===================================================================
--- test/rubygems/test_gem_commands_setup_command.rb	(revision 61418)
+++ test/rubygems/test_gem_commands_setup_command.rb	(revision 61419)
@@ -41,7 +41,8 @@ class TestGemCommandsSetupCommand < Gem: https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_setup_command.rb#L41
     end
 
     open(File.join(Gem::Specification.default_specifications_dir, "bundler-1.15.4.gemspec"), 'w') do |io|
-      io.puts '# bundler'
+      gemspec.version = "1.15.4"
+      io.puts gemspec.to_ruby
     end
 
     FileUtils.mkdir_p File.join(Gem.default_dir, "specifications")

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]