Project

General

Profile

Actions

Bug #10746

closed

ruby bundles files that requires minitest/testunit (removed from library on 2.2.0)

Added by luizluca (Luiz Angelo Daros de Luca) over 9 years ago. Updated about 8 years ago.

Status:
Rejected
Target version:
-
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [i486-linux-gnu]
[ruby-core:67613]

Description

Hello,

On ruby 2.2.0, there is some files shipped with ruby that generates errors when required. This is due to the removal of minitest/testunit from ruby library. I.e.:

# ruby -rrdoc/test_case 
/usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- minitest/autorun (LoadError)
        from /usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib/ruby/2.2/rdoc/test_case.rb:9:in `<top (required)>'
        from /usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require'

They are:

(minitest)
/usr/lib/ruby/2.2/rubygems/test_case.rb
/usr/lib/ruby/2.2/rubygems/package/tar_test_case.rb
/usr/lib/ruby/2.2/rubygems/installer_test_case.rb
/usr/lib/ruby/2.2/rdoc/test_case.rb
/usr/lib/ruby/2.2/rdoc/markup/formatter_test_case.rb
/usr/lib/ruby/2.2/rdoc/markup/text_formatter_test_case.rb

(test/unit)
/usr/lib/ruby/2.2/rake/runtest.rb

They might be useful for a "make test" but they are probably useless for the target system and might be OK to remove them from installation. Maybe it is interesting to remove them from {rdoc,rake}.gemspec too.

Updated by zenspider (Ryan Davis) over 9 years ago

  • Assignee set to drbrain (Eric Hodel)

Updated by luizluca (Luiz Angelo Daros de Luca) over 9 years ago

Even minitest/testunit removed from /usr/lib/ruby/2.2/, it is still present in /usr/lib/ruby/2.2/rubygems, which ruby looks for automatically.

My problem was that I got all gems uninstalled. Sorry.

If tests should be installed, please, close this as invalid.

Actions #3

Updated by nobu (Nobuyoshi Nakada) over 9 years ago

  • Description updated (diff)

Updated by hsbt (Hiroshi SHIBATA) about 8 years ago

  • Status changed from Open to Rejected
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0