1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/lib/rubygems
ko1 f033cfa381 refresh Gem at the end of teardown.
* lib/rubygems/test_case.rb (teardown): call `Gem::refresh()` at the
  end of `teardown`.
  On parallel test sometimes fails test process. The reason
  is:
  (1) previous tests remains `Gem::Specification@@stubs` value
      which points to temporary directories and the directories
      are removed by `teardown` method of previous test.
  (2) `require 'rubygems/gem_runner'` in `test_gem_gem_runner.rb`
      tries to require test utility file. However, with strange `@@stubs`
      RubyGems tries to load specification from removed directory.
      `StubSpecification#to_spec` returns `nil` and error will occur.
  The solution this patch employs is to refresh all of parameters
  includes `Gem::Specification@@stubs` by `Gem::refresh()`.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@58736 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-05-15 14:40:07 +00:00
..
commands Merge rubygems-2.6.12 from rubygems/rubygems. 2017-05-01 11:40:46 +00:00
core_ext release monitor correctly. 2017-04-20 15:02:55 +00:00
ext Update Rubygems 2.6.10 2017-01-24 02:38:57 +00:00
package * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems 2016-06-18 05:11:55 +00:00
request
request_set Merge rubygems-2.6.11 2017-03-17 01:29:22 +00:00
resolver Merge rubygems-2.6.11 2017-03-17 01:29:22 +00:00
security * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems 2016-06-18 05:11:55 +00:00
source
ssl_certs * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems 2016-06-18 05:11:55 +00:00
util
available_set.rb
basic_specification.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.3. 2016-04-06 06:01:14 +00:00
command.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1. 2016-03-04 00:29:40 +00:00
command_manager.rb
compatibility.rb
config_file.rb rubygems 2.6.7 2016-09-28 00:57:53 +00:00
defaults.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: 2016-06-24 04:13:11 +00:00
dependency.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update 2016-10-30 06:32:48 +00:00
dependency_installer.rb
dependency_list.rb Merge rubygems-2.6.12 from rubygems/rubygems. 2017-05-01 11:40:46 +00:00
deprecate.rb
doctor.rb
errors.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.4. 2016-04-28 00:33:08 +00:00
exceptions.rb rubygems 2.6.7 2016-09-28 01:16:43 +00:00
ext.rb
gem_runner.rb
gemcutter_utilities.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1. 2016-03-04 00:29:40 +00:00
indexer.rb
install_default_message.rb
install_message.rb
install_update_options.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.3. 2016-04-06 06:01:14 +00:00
installer.rb Merge rubygems-2.6.12 from rubygems/rubygems. 2017-05-01 11:40:46 +00:00
installer_test_case.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.2. 2016-03-28 02:26:39 +00:00
LICENSE.txt
local_remote_options.rb
mock_gem_ui.rb
name_tuple.rb
package.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems 2016-06-18 05:11:55 +00:00
package_task.rb
path_support.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1. 2016-03-04 00:29:40 +00:00
platform.rb Merge rubygems-2.6.12 from rubygems/rubygems. 2017-05-01 11:40:46 +00:00
psych_additions.rb
psych_tree.rb
rdoc.rb
remote_fetcher.rb rubygems 2.6.7 2016-09-28 00:57:53 +00:00
request.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update 2016-10-30 06:32:48 +00:00
request_set.rb rubygems 2.6.7 2016-09-28 01:16:43 +00:00
requirement.rb
resolver.rb Merge rubygems-2.6.11 2017-03-17 01:29:22 +00:00
security.rb Merge rubygems-2.6.12 from rubygems/rubygems. 2017-05-01 11:40:46 +00:00
server.rb Merge rubygems-2.6.12 from rubygems/rubygems. 2017-05-01 11:40:46 +00:00
source.rb rubygems 2.6.7 2016-09-28 01:16:43 +00:00
source_list.rb * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.6.1. 2016-03-04 00:29:40 +00:00
source_local.rb
source_specific_file.rb
spec_fetcher.rb rubygems 2.6.7 2016-09-28 01:16:43 +00:00
specification.rb confirm current process equals to gemhome's pid 2017-05-10 07:23:06 +00:00
stub_specification.rb Update Rubygems 2.6.10 2017-01-24 02:38:57 +00:00
syck_hack.rb
test_case.rb refresh Gem at the end of teardown. 2017-05-15 14:40:07 +00:00
test_utilities.rb
text.rb
uninstaller.rb
uri_formatter.rb
user_interaction.rb rubygems 2.6.7 2016-09-28 01:16:43 +00:00
util.rb
validator.rb
version.rb Update Rubygems 2.6.10 2017-01-24 02:38:57 +00:00
version_option.rb