[Rubygems-developers] New setup.rb

Berger, Daniel Daniel.Berger at qwest.com
Fri Sep 28 13:04:40 EDT 2007


> -----Original Message-----
> From: rubygems-developers-bounces at rubyforge.org 
> [mailto:rubygems-developers-bounces at rubyforge.org] On Behalf 
> Of Eric Hodel
> Sent: Friday, September 28, 2007 10:27 AM
> To: rubygems-developers at rubyforge.org
> Subject: [Rubygems-developers] New setup.rb
> 
> 
> I replaced the giant setup.rb with a small one we can easily debug.   
> It seems to fix all the issues people have been having.
> 
> Please test it out on windows, I do not have one of those set up for  
> development.
> 
> It also comes with --no-rdoc and --no-ri, and the gem updater has  
> been hooked into those options (and --prefix).  I still need to set  
> up and test updating through `gem update --system`, its a bit 
> more work.
> 
> What's not well-documented is the difference between --prefix and  
> GEM_HOME, defining both to be the same is certainly not what people  
> want.  (This is true with all versions of RubyGems.) 

Assuming setup.rb has its own tests in the test suite somewhere, here's
the latest results (Ruby 1.8.6 one click, rake 0.7.3, Windows XP Pro SP
2).

Failures 5-9 look easy enough. I'm not sure what's happening with 1-4
yet, though.

And, if setup.rb does NOT have separate tests, how/what would you like
me to test?

C:\Documents and Settings\djberge\workspace\rubygems>rake test
(in C:/Documents and Settings/djberge/workspace/rubygems)
./test/test_gem_specification.rb:478: warning: ambiguous first argument;
put parentheses or even spaces
./test/test_gem_specification.rb:487: warning: ambiguous first argument;
put parentheses or even spaces
Loaded suite
C:/ruby/lib/ruby/gems/1.8/gems/rake-0.7.2/lib/rake/rake_test_loader
Started
..........................................................C:/ruby/lib/ru
by/1.8/openssl/x509.rb:24: warning: instance var
iable @config not initialized
C:/ruby/lib/ruby/1.8/openssl/x509.rb:24: warning: instance variable
@config not initialized
C:/ruby/lib/ruby/1.8/openssl/x509.rb:24: warning: instance variable
@config not initialized
...............................C:/ruby/lib/ruby/1.8/rdoc/parsers/parse_c
.rb:204: warning: method redefined; discarding o
ld progress
..EWARNING:  Unable to use symlinks on win32, installing wrapper
.WARNING:  Unable to use symlinks on win32, installing wrapper
.WARNING:  Unable to use symlinks on win32, installing wrapper
..............................................WARNING:  Unable to use
symlinks on win32, installing wrapper
............WARNING:  Unable to use symlinks on win32, installing
wrapper
......................................EEE....F..........................
......FFF........................F..............
........................................................................
................................................
........................................................................
...........
Finished in 102.587 seconds.

  1) Error:
test_execute(TestGemCommandsMirrorCommand):
RuntimeError: Compressed file
C:/DOCUME~1/djberge/LOCALS~1/Temp/gem_generate_index_3976/Marshal.Z does
not match uncompr
essed file
C:/DOCUME~1/djberge/LOCALS~1/Temp/gem_generate_index_3976/Marshal
    ./lib/rubygems/indexer/master_index_builder.rb:40:in `paranoid'
    ./lib/rubygems/indexer/master_index_builder.rb:24:in `cleanup'
    ./lib/rubygems/indexer/abstract_index_builder.rb:42:in `build'
    ./lib/rubygems/indexer.rb:47:in `build_index'
    ./lib/rubygems/indexer/abstract_index_builder.rb:39:in `build'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `open'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `build'
    ./lib/rubygems/indexer.rb:46:in `build_index'
    ./lib/rubygems/indexer/abstract_index_builder.rb:39:in `build'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `open'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `build'
    ./lib/rubygems/indexer.rb:45:in `build_index'
    ./lib/rubygems/indexer.rb:105:in `generate_index'
    ./test/test_gem_commands_mirror_command.rb:28:in `test_execute'
    ./lib/rubygems/user_interaction.rb:45:in `use_ui'
    ./lib/rubygems/user_interaction.rb:27:in `use_ui'
    ./test/test_gem_commands_mirror_command.rb:27:in `test_execute'

  2) Error:
test_generate_index(TestGemIndexer):
RuntimeError: Compressed file
C:/DOCUME~1/djberge/LOCALS~1/Temp/gem_generate_index_3976/Marshal.Z does
not match uncompr
essed file
C:/DOCUME~1/djberge/LOCALS~1/Temp/gem_generate_index_3976/Marshal
    ./lib/rubygems/indexer/master_index_builder.rb:40:in `paranoid'
    ./lib/rubygems/indexer/master_index_builder.rb:24:in `cleanup'
    ./lib/rubygems/indexer/abstract_index_builder.rb:42:in `build'
    ./lib/rubygems/indexer.rb:47:in `build_index'
    ./lib/rubygems/indexer/abstract_index_builder.rb:39:in `build'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `open'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `build'
    ./lib/rubygems/indexer.rb:46:in `build_index'
    ./lib/rubygems/indexer/abstract_index_builder.rb:39:in `build'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `open'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `build'
    ./lib/rubygems/indexer.rb:45:in `build_index'
    ./lib/rubygems/indexer.rb:105:in `generate_index'
    ./test/test_gem_indexer.rb:34:in `test_generate_index'
    ./lib/rubygems/user_interaction.rb:45:in `use_ui'
    ./lib/rubygems/user_interaction.rb:27:in `use_ui'
    ./test/test_gem_indexer.rb:33:in `test_generate_index'

  3) Error:
test_generate_index_contents(TestGemIndexer):
RuntimeError: Compressed file
C:/DOCUME~1/djberge/LOCALS~1/Temp/gem_generate_index_3976/Marshal.Z does
not match uncompr
essed file
C:/DOCUME~1/djberge/LOCALS~1/Temp/gem_generate_index_3976/Marshal
    ./lib/rubygems/indexer/master_index_builder.rb:40:in `paranoid'
    ./lib/rubygems/indexer/master_index_builder.rb:24:in `cleanup'
    ./lib/rubygems/indexer/abstract_index_builder.rb:42:in `build'
    ./lib/rubygems/indexer.rb:47:in `build_index'
    ./lib/rubygems/indexer/abstract_index_builder.rb:39:in `build'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `open'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `build'
    ./lib/rubygems/indexer.rb:46:in `build_index'
    ./lib/rubygems/indexer/abstract_index_builder.rb:39:in `build'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `open'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `build'
    ./lib/rubygems/indexer.rb:45:in `build_index'
    ./lib/rubygems/indexer.rb:105:in `generate_index'
    ./test/test_gem_indexer.rb:72:in `test_generate_index_contents'
    ./lib/rubygems/user_interaction.rb:45:in `use_ui'
    ./lib/rubygems/user_interaction.rb:27:in `use_ui'
    ./test/test_gem_indexer.rb:71:in `test_generate_index_contents'

  4) Error:
test_generate_index_ui(TestGemIndexer):
RuntimeError: Compressed file
C:/DOCUME~1/djberge/LOCALS~1/Temp/gem_generate_index_3976/Marshal.Z does
not match uncompr
essed file
C:/DOCUME~1/djberge/LOCALS~1/Temp/gem_generate_index_3976/Marshal
    ./lib/rubygems/indexer/master_index_builder.rb:40:in `paranoid'
    ./lib/rubygems/indexer/master_index_builder.rb:24:in `cleanup'
    ./lib/rubygems/indexer/abstract_index_builder.rb:42:in `build'
    ./lib/rubygems/indexer.rb:47:in `build_index'
    ./lib/rubygems/indexer/abstract_index_builder.rb:39:in `build'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `open'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `build'
    ./lib/rubygems/indexer.rb:46:in `build_index'
    ./lib/rubygems/indexer/abstract_index_builder.rb:39:in `build'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `open'
    ./lib/rubygems/indexer/abstract_index_builder.rb:36:in `build'
    ./lib/rubygems/indexer.rb:45:in `build_index'
    ./lib/rubygems/indexer.rb:105:in `generate_index'
    ./test/test_gem_indexer.rb:57:in `test_generate_index_ui'
    ./lib/rubygems/user_interaction.rb:45:in `use_ui'
    ./lib/rubygems/user_interaction.rb:27:in `use_ui'
    ./test/test_gem_indexer.rb:56:in `test_generate_index_ui'

  5) Failure:
test_app_script_text(TestGemInstaller)
[./test/test_gem_installer.rb:91]:
<"#!C:/ruby/bin/ruby\n#\n# This file was generated by RubyGems.\n#\n#
The application 'a' is installed as part of a gem,
 and\n# this file is here to facilitate running it.\n#\n\nrequire
'rubygems'\n\nversion = \">= 0\"\n\nif ARGV.first =~ /
^_(.*)_$/ and Gem::Version.correct? $1 then\n  version = $1\n
ARGV.shift\nend\n\ngem 'a', version\nload 'my_exec'\n"> e
xpected but was
<"#!C:/ruby/bin/ruby.exe\n#\n# This file was generated by
RubyGems.\n#\n# The application 'a' is installed as part of a
gem, and\n# this file is here to facilitate running it.\n#\n\nrequire
'rubygems'\n\nversion = \">= 0\"\n\nif ARGV.first
=~ /^_(.*)_$/ and Gem::Version.correct? $1 then\n  version = $1\n
ARGV.shift\nend\n\ngem 'a', version\nload 'my_exec'\n
">.

  6) Failure:
test_shebang(TestGemInstaller) [./test/test_gem_installer.rb:645]:
<"#!C:/ruby/bin/ruby"> expected but was
<"#!C:/ruby/bin/ruby.exe">.

  7) Failure:
test_shebang_arguments(TestGemInstaller)
[./test/test_gem_installer.rb:653]:
<"#!C:/ruby/bin/ruby -ws"> expected but was
<"#!C:/ruby/bin/ruby.exe -ws">.

  8) Failure:
test_shebang_empty(TestGemInstaller) [./test/test_gem_installer.rb:660]:
<"#!C:/ruby/bin/ruby"> expected but was
<"#!C:/ruby/bin/ruby.exe">.

  9) Failure:
test_fetch_path_system_call_error(TestGemRemoteFetcher)
[./test/test_gem_remote_fetcher.rb:257]:
<"Errno::ECONNREFUSED: Connection refused - connect(2) reading uri">
expected but was
<"Errno::ECONNREFUSED: No connection could be made because the target
machine actively refused it. - connect(2) reading
uri">.

475 tests, 1580 assertions, 5 failures, 4 errors

Regards,

Dan


This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.


More information about the Rubygems-developers mailing list