RubyGems 1.3.0


#1

Note! Some versions of RubyGems have a bug that will prevent
automatic updates. If RubyGems says it has nothing to update, run:

$ gem install rubygems-update
$ update_rubygems

= Announce: RubyGems Release 1.3.0

Release 1.3.0 adds new features and fixes some bugs.

New features:

  • RubyGems doesn’t print LOCAL/REMOTE titles for gem query and
    friends if
    stdout is not a TTY, except with --both.
  • Added Gem.find_files, allows a gem to discover features provided by
    other
    gems.
  • Added pre/post (un)install hooks for packagers of RubyGems. (Not
    for gems
    themselves).
  • RubyGems now installs gems into ~/.gem if GEM_HOME is not writable.
    Use
    –no-user-install command-line switch to disable this behavior.
  • Fetching specs for update now uses If-Modified-Since requests.
  • RubyGems now updates the ri cache when the rdoc gem is installed and
    documentation is generated.

Deprecation Notices:

  • Gem::manage_gems now warns when called. It will be removed on or
    after March
    2009.

Bugs Fixed:

  • RubyGems 1.3.0+ now updates when no previous rubygems-update is
    installed.
    Bug #20775 by Hemant K…
  • RubyGems now uses the regexp we already have for gem list -- installed. Bug
    #20876 by Nick H…
  • Platform is now forced to Gem::Platform::RUBY when nil or blank in the
    indexer. Fixes various uninstallable gems.
  • Handle EINVAL on seek. Based on patch in bug #20791 by Neil W…
  • Fix HTTPS support. Patch #21072 by Alex Arnell.
  • RubyGems now loads all cache files even if latest has been loaded.
    Bug
    #20776 by Uwe K…
  • RubyGems checks for support of development dependencies for
    #to_ruby. Bug
    #20778 by Evan W…
  • Now specifications from the future can be loaded.
  • Binary script uninstallation fixed. Bug #21234 by Neil W…
  • Uninstallation with -i fixed. Bug #20812 by John C…
  • Gem::Uninstaller#remove_all now calls Gem::Uninstaller#uninstall_gem
    so hooks
    get called. Bug #21242 by Neil W…
  • Gem.ruby now properly escaped on windows. Fixes problem with
    extension
    compilation.
  • gem lock --strict works again. Patch #21814 by Sven Engelhardt.
  • Platform detection for Solaris was improved. Patch #21911 by Bob
    Remeika.

Other Changes Include:

  • gem help install now describes version argument to executable
    stubs
  • gem help environment describes environment variables and ~/.gemrc
    and
    /etc/gemrc
  • On-disk gemspecs are now read in UTF-8 and written with a UTF-8
    magic comment
  • Rakefile
    • If the SETUP_OPTIONS environment variable is set, pass its
      contents as
      arguments to setup.rb
  • lib/rubygems/platform.rb
    • Remove deprecated constant warnings and really deprecate them.
      (WIN32,
      etc).
  • lib/rubygems/remote_fetcher.rb
    • Now uses ~/.gem/cache if the cache dir in GEM_HOME is not writable.
  • lib/rubygems/source_index.rb
    • Deprecate options to ‘search’ other than Gem::Dependency
      instances and
      issue warning until November 2008.
  • setup.rb
    • –destdir folder structure now built using Pathname, so it works
      for
      Windows platforms.
  • test/*
    • Fixes to run tests when under test/rubygems/. Patch by Yusuke
      ENDOH
      [ruby-core:17353].
  • test/test_ext_configure_builder.rb
    • Locale-free patch by Yusuke E. [ruby-core:17444].

For a full list of changes to RubyGems and the contributor for each
change, see
the ChangeLog file.

Special thanks to Chad Wooley for backwards compatibility testing and
Luis
Lavena for continuing windows support.

== How can I get RubyGems?

NOTE: If you have installed RubyGems using a package system you may
want to
install a new RubyGems through the same packaging system.

If you have a recent version of RubyGems (0.8.5 or later), then all
you need to do is:

$ gem update --system (you might need to be admin/root)

NOTE: RubyGems 1.1 and 1.2 have problems upgrading when there is no
rubygems-update installed. You will need to follow the second set of
update
instructions if you see “Nothing to update”.

NOTE: You may have to run the command twice if you have any previosly
installed rubygems-update gems.

If you have an older version of RubyGems installed, then you can still
do it in two steps:

$ gem install rubygems-update (again, might need to be admin/root)
$ update_rubygems (… here too)

If you don’t have any gems install, there is still the pre-gem
approach to getting software … doing it manually:

  1. DOWNLOAD FROM: http://rubyforge.org/frs/?group_id=126
  2. UNPACK INTO A DIRECTORY AND CD THERE
  3. INSTALL WITH: ruby setup.rb (you may need admin/root privilege)

== To File Bugs

The RubyGems bug tracker can be found on RubyForge at:
http://rubyforge.org/tracker/?func=add&group_id=126&atid=575

When filing a bug, gem env output will be helpful in diagnosing the
issue.

If you find a bug where RubyGems crashes, please provide debug output.
You can
do that with gem --debug the_command.

== Thanks

Keep those gems coming!

– Jim & Chad & Eric (for the RubyGems team)


#2

Eric H. wrote:

Note! Some versions of RubyGems have a bug that will prevent
automatic updates. If RubyGems says it has nothing to update, run:

$ gem install rubygems-update
$ update_rubygems
Yep. Doing sudo gem update on a MacOS X 10.5.5/Ruby 1.8.6/Gem 1.2.0
installation produced an error:

Updating rubygems-update
Successfully installed rubygems-update-1.3.0
ERROR: While executing gem … (NameError)
undefined local variable or method `remote_gemspecs’ for
#Gem::Commands::UpdateCommand:0x52a3b4

Subsequent gem update --system produced the “nothing to update” message.
Following the suggested workaround updated the system to 1.3.0
Cheers,
V.-


#3

Vassilis R. wrote:

Eric H. wrote:

Note! Some versions of RubyGems have a bug that will prevent
automatic updates. If RubyGems says it has nothing to update, run:

$ gem install rubygems-update
$ update_rubygems
Yep. Doing sudo gem update on a MacOS X 10.5.5/Ruby 1.8.6/Gem 1.2.0
installation produced an error:

Updating rubygems-update
Successfully installed rubygems-update-1.3.0
ERROR: While executing gem … (NameError)
undefined local variable or method `remote_gemspecs’ for
#Gem::Commands::UpdateCommand:0x52a3b4

FYI - I have this error on every Ruby install I’ve got: Mac, Windows,
Linux. All are Gems 1.2.0, but some are ruby 1.9, some are 1.8.7, some
are 1.8.6, and some are JRuby.


#4

Eric H. wrote:

On Sep 29, 2008, at 08:24 AM, Kevin W. wrote:

Updating rubygems-update
Successfully installed rubygems-update-1.3.0
ERROR: While executing gem … (NameError)
undefined local variable or method `remote_gemspecs’ for
#Gem::Commands::UpdateCommand:0x52a3b4

FYI - I have this error on every Ruby install I’ve got: Mac, Windows,
Linux. All are Gems 1.2.0, but some are ruby 1.9, some are 1.8.7, some
are 1.8.6, and some are JRuby.

Perhaps there are more bugs in 1.2 than I knew about. The above
procedure should get you up and running with 1.3.

anybody know if Rubyscript2exe works correctly with rubygems 1.3.0?


#5

On Sep 29, 2008, at 08:24 AM, Kevin W. wrote:

Updating rubygems-update
Successfully installed rubygems-update-1.3.0
ERROR: While executing gem … (NameError)
undefined local variable or method `remote_gemspecs’ for
#Gem::Commands::UpdateCommand:0x52a3b4

FYI - I have this error on every Ruby install I’ve got: Mac, Windows,
Linux. All are Gems 1.2.0, but some are ruby 1.9, some are 1.8.7, some
are 1.8.6, and some are JRuby.

Perhaps there are more bugs in 1.2 than I knew about. The above
procedure should get you up and running with 1.3.


#6

Kevin W. wrote:

Vassilis R. wrote:

Eric H. wrote:

Note! Some versions of RubyGems have a bug that will prevent
automatic updates. If RubyGems says it has nothing to update, run:

$ gem install rubygems-update
$ update_rubygems
Yep. Doing sudo gem update on a MacOS X 10.5.5/Ruby 1.8.6/Gem 1.2.0
installation produced an error:

Updating rubygems-update
Successfully installed rubygems-update-1.3.0
ERROR: While executing gem … (NameError)
undefined local variable or method `remote_gemspecs’ for
#Gem::Commands::UpdateCommand:0x52a3b4

FYI - I have this error on every Ruby install I’ve got: Mac, Windows,
Linux. All are Gems 1.2.0, but some are ruby 1.9, some are 1.8.7, some
are 1.8.6, and some are JRuby.

When you install the rubygems-update gem, make sure you install the
version that matches your current version of rubygems. The following
will do it:

gem install rubygems-update -v gem --version

Note that the quotes are backquotes (i.e. shift plus the tilde (~) key
on a standard US keyboard).

Paul


#7

I did exactly what Paul said, and I’m at 1.3.0 now (at least that’s what
gem
–version says).

Han H.


#8

On Sep 30, 2008, at 13:25 PM, Paul D. wrote:

are 1.8.6, and some are JRuby.

When you install the rubygems-update gem, make sure you install the
version that matches your current version of rubygems. The following
will do it:

gem install rubygems-update -v gem --version

Note that the quotes are backquotes (i.e. shift plus the tilde (~) key
on a standard US keyboard).

No.

This will leave you with whatever version of RubyGems you have, and
will not upgrade you to 1.3.0.


#9

On Sep 29, 2008, at 19:14 , James D. wrote:

anybody know if Rubyscript2exe works correctly with rubygems 1.3.0?

you DO realize that rubyscript2exe is just fundamentally flawed, right?

It will have problems time and again and you’re going to have to jump
through extra hoops to make it work when it does.


#10

On Oct 3, 3:56 am, Pokkai D. removed_email_address@domain.invalid wrote:

D:\workspace>gem env
ERROR: While executing gem … (NoMethodError)
undefined method `uid’ for nil:NilClass

any solution

This was reported in RubyGems developer mailing list.

The issue around it was fixed in the repository, but I missed the
release 1.3.0 by 1 day (daily work), sorry for that.

I only hope that Eric do a new release (1.3.1) soon enough to
workaround this issue.


#11

my os windows xp

D:\workspace>ruby -v
ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]

D:\workspace>gem -v
1.2.0

D:\workspace>gem env
RubyGems Environment:

  • RUBYGEMS VERSION: 1.2.0
  • RUBY VERSION: 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32]
  • INSTALLATION DIRECTORY: D:/pacs/ruby/lib/ruby/gems/1.8
  • RUBY EXECUTABLE: D:/pacs/ruby/bin/ruby.exe
  • EXECUTABLE DIRECTORY: D:/pacs/ruby/bin
  • RUBYGEMS PLATFORMS:
    • ruby
    • x86-mswin32-60
  • GEM PATHS:
    • D:/pacs/ruby/lib/ruby/gems/1.8
  • GEM CONFIGURATION:
    • :update_sources => true
    • :verbose => true
    • :benchmark => false
    • :backtrace => false
    • :bulk_threshold => 1000
  • REMOTE SOURCES:

D:\workspace>gem install rubygems-update-1.3.0.gem
Successfully installed rubygems-update-1.3.0
1 gem installed

D:\workspace>gem -v
1.2.0

D:\workspace>update_rubygems
Installing RubyGems 1.3.0
mkdir -p D:/pacs/ruby/lib/ruby/site_ruby/1.8
mkdir -p D:/pacs/ruby/bin
install -c -m 0644 rbconfig/datadir.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rbconfig/datadir.rb
install -c -m 0644 rubygems/builder.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/builder.rb
install -c -m 0644 rubygems/command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/command.rb
install -c -m 0644 rubygems/commands/build_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/build_command.rb
install -c -m 0644 rubygems/commands/cert_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/cert_command.rb
install -c -m 0644 rubygems/commands/check_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/check_command.rb
install -c -m 0644 rubygems/commands/cleanup_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/cleanup_command.rb
install -c -m 0644 rubygems/commands/contents_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/contents_command.rb
install -c -m 0644 rubygems/commands/dependency_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/dependency_command.rb
install -c -m 0644 rubygems/commands/environment_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/environment_command.rb
install -c -m 0644 rubygems/commands/fetch_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/fetch_command.rb
install -c -m 0644 rubygems/commands/generate_index_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/generate_index_command.rb
install -c -m 0644 rubygems/commands/help_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/help_command.rb
install -c -m 0644 rubygems/commands/install_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/install_command.rb
install -c -m 0644 rubygems/commands/list_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/list_command.rb
install -c -m 0644 rubygems/commands/lock_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/lock_command.rb
install -c -m 0644 rubygems/commands/mirror_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/mirror_command.rb
install -c -m 0644 rubygems/commands/outdated_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/outdated_command.rb
install -c -m 0644 rubygems/commands/pristine_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/pristine_command.rb
install -c -m 0644 rubygems/commands/query_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/query_command.rb
install -c -m 0644 rubygems/commands/rdoc_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/rdoc_command.rb
install -c -m 0644 rubygems/commands/search_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/search_command.rb
install -c -m 0644 rubygems/commands/server_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/server_command.rb
install -c -m 0644 rubygems/commands/sources_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/sources_command.rb
install -c -m 0644 rubygems/commands/specification_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/specification_command.rb
install -c -m 0644 rubygems/commands/stale_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/stale_command.rb
install -c -m 0644 rubygems/commands/uninstall_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/uninstall_command.rb
install -c -m 0644 rubygems/commands/unpack_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/unpack_command.rb
install -c -m 0644 rubygems/commands/update_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/update_command.rb
install -c -m 0644 rubygems/commands/which_command.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/commands/which_command.rb
install -c -m 0644 rubygems/command_manager.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager.rb
install -c -m 0644 rubygems/config_file.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/config_file.rb
install -c -m 0644 rubygems/custom_require.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb
install -c -m 0644 rubygems/defaults.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/defaults.rb
install -c -m 0644 rubygems/dependency.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/dependency.rb
install -c -m 0644 rubygems/dependency_installer.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/dependency_installer.rb
install -c -m 0644 rubygems/dependency_list.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/dependency_list.rb
install -c -m 0644 rubygems/digest/digest_adapter.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/digest/digest_adapter.rb
install -c -m 0644 rubygems/digest/md5.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/digest/md5.rb
install -c -m 0644 rubygems/digest/sha1.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/digest/sha1.rb
install -c -m 0644 rubygems/digest/sha2.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/digest/sha2.rb
install -c -m 0644 rubygems/doc_manager.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/doc_manager.rb
install -c -m 0644 rubygems/exceptions.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/exceptions.rb
install -c -m 0644 rubygems/ext/builder.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/ext/builder.rb
install -c -m 0644 rubygems/ext/configure_builder.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/ext/configure_builder.rb
install -c -m 0644 rubygems/ext/ext_conf_builder.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/ext/ext_conf_builder.rb
install -c -m 0644 rubygems/ext/rake_builder.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/ext/rake_builder.rb
install -c -m 0644 rubygems/ext.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/ext.rb
install -c -m 0644 rubygems/format.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/format.rb
install -c -m 0644 rubygems/gem_openssl.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_openssl.rb
install -c -m 0644 rubygems/gem_path_searcher.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_path_searcher.rb
install -c -m 0644 rubygems/gem_runner.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/gem_runner.rb
install -c -m 0644 rubygems/indexer.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/indexer.rb
install -c -m 0644 rubygems/installer.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/installer.rb
install -c -m 0644 rubygems/install_update_options.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/install_update_options.rb
install -c -m 0644 rubygems/local_remote_options.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/local_remote_options.rb
install -c -m 0644 rubygems/old_format.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/old_format.rb
install -c -m 0644 rubygems/package/f_sync_dir.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/package/f_sync_dir.rb
install -c -m 0644 rubygems/package/tar_header.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/package/tar_header.rb
install -c -m 0644 rubygems/package/tar_input.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/package/tar_input.rb
install -c -m 0644 rubygems/package/tar_output.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/package/tar_output.rb
install -c -m 0644 rubygems/package/tar_reader/entry.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader/entry.rb
install -c -m 0644 rubygems/package/tar_reader.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/package/tar_reader.rb
install -c -m 0644 rubygems/package/tar_writer.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/package/tar_writer.rb
install -c -m 0644 rubygems/package.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/package.rb
install -c -m 0644 rubygems/platform.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/platform.rb
install -c -m 0644 rubygems/remote_fetcher.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/remote_fetcher.rb
install -c -m 0644 rubygems/requirement.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/requirement.rb
install -c -m 0644 rubygems/require_paths_builder.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/require_paths_builder.rb
install -c -m 0644 rubygems/rubygems_version.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/rubygems_version.rb
install -c -m 0644 rubygems/security.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/security.rb
install -c -m 0644 rubygems/server.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/server.rb
install -c -m 0644 rubygems/source_index.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb
install -c -m 0644 rubygems/source_info_cache.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/source_info_cache.rb
install -c -m 0644 rubygems/source_info_cache_entry.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/source_info_cache_entry.rb
install -c -m 0644 rubygems/specification.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/specification.rb
install -c -m 0644 rubygems/spec_fetcher.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/spec_fetcher.rb
install -c -m 0644 rubygems/test_utilities.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/test_utilities.rb
install -c -m 0644 rubygems/timer.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/timer.rb
install -c -m 0644 rubygems/uninstaller.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/uninstaller.rb
install -c -m 0644 rubygems/user_interaction.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/user_interaction.rb
install -c -m 0644 rubygems/validator.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/validator.rb
install -c -m 0644 rubygems/version.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/version.rb
install -c -m 0644 rubygems/version_option.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/version_option.rb
install -c -m 0644 rubygems.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb
install -c -m 0644 ubygems.rb
D:/pacs/ruby/lib/ruby/site_ruby/1.8/ubygems.rb
cp gem C:/DOCUME~1/R0052/LOCALS~1/Temp/gem
install -c -m 0755 C:/DOCUME~1/R0052/LOCALS~1/Temp/gem
D:/pacs/ruby/bin/gem
rm C:/DOCUME~1/R0052/LOCALS~1/Temp/gem
install -c -m 0755 C:/DOCUME~1/R0052/LOCALS~1/Temp/gem.bat
D:/pacs/ruby/bin/gem.bat
rm C:/DOCUME~1/R0052/LOCALS~1/Temp/gem.bat
Removing old RubyGems RDoc and ri
rm -rf D:/pacs/ruby/lib/ruby/gems/1.8/doc/rubygems-1.2.0
Installing rubygems-1.3.0 ri into
D:/pacs/ruby/lib/ruby/gems/1.8/doc/rubygems-1.3.0/ri
./lib/rubygems.rb:713:in set_paths': undefined methoduid’ for
nil:NilClass (NoMethodError)
from ./lib/rubygems.rb:711:in each' from ./lib/rubygems.rb:711:inset_paths’
from ./lib/rubygems.rb:518:in path' from ./lib/rubygems/source_index.rb:66:ininstalled_spec_directories’
from ./lib/rubygems/source_index.rb:56:in from_installed_gems' from ./lib/rubygems.rb:726:insource_index’
from ./lib/rubygems.rb:138:in activate' from ./lib/rubygems.rb:49:ingem’
from setup.rb:279:in `run_rdoc’
from setup.rb:296

D:\workspace>gem -v
1.3.0

D:\workspace>gem env
ERROR: While executing gem … (NoMethodError)
undefined method `uid’ for nil:NilClass

D:\workspace>
D:\workspace>rails -v
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:713:in set_paths': undefined methoduid’ for nil:NilClass (NoMethodError)
from D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:711:in
each' from D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:711:inset_paths’
from D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:518:in
path' from D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:66:ininstalled_spec_directories’
from
D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:56:in
from_installed_gems' from D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:726:insource_index’
from D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:138:in
activate' from D:/pacs/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:49:ingem’
from D:/pacs/ruby/bin/rails:18

D:\workspace>

any solution


#12

Owein H. wrote:

Hello,

Can anyone tell me what I can do about this?


$ gem search html --remote

*** REMOTE GEMS ***

C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:400: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-mswin32]

Are you trying to run RubyGems in the old and broken 1.8.6 without
patchlevel? Please try with Ruby 1.8.6-p114 at least (186-26 was the
release on RubyForge).

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.

$ gem --debug search html --remote
Exception `NameError’ at
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:134 - uninitialized constant Gem::Commands::SearchCommand

*** REMOTE GEMS ***

Exception `Gem::LoadError’ at
C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:628 - C
ould not find RubyGem sources (> 0.0.1)

C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:400: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-mswin32]

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.

“gem env” output is more helpful.


I’m guessing that things are not where they are supposed to be, but I am
not sure. ruby is in C:\ruby\bin and the rubygem stuff is in
c:\ruby\rubygems.

ruby is 1.8.6 -0 and gem is 1.3.0

I have a Windows Vista box sp3.

What you mean with rubygems stuff is in a different folder? When
RubyGems is installed it goes into the same folder structure used by
Ruby.

Please try a newer version of Ruby and stay with RubyGems 1.2 since
1.3.0 release contains a bug on Windows.

HTH,

Luis L.


#13

Hello,

Can anyone tell me what I can do about this?


$ gem search html --remote

*** REMOTE GEMS ***

C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:400: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-mswin32]

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.

$ gem --debug search html --remote
Exception `NameError’ at
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:134 - uninitialized constant Gem::Commands::SearchCommand

*** REMOTE GEMS ***

Exception `Gem::LoadError’ at
C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:628 - C
ould not find RubyGem sources (> 0.0.1)

C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:400: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-mswin32]

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.

$ gem --debug list --remote
Exception `NameError’ at
C:/ruby/lib/ruby/site_ruby/1.8/rubygems/command_manager
.rb:134 - uninitialized constant Gem::Commands::ListCommand

*** REMOTE GEMS ***

Exception `Gem::LoadError’ at
C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:628 - C
ould not find RubyGem sources (> 0.0.1)

C:/ruby/lib/ruby/site_ruby/1.8/rubygems.rb:400: [BUG] Segmentation fault
ruby 1.8.6 (2007-03-13) [i386-mswin32]

This application has requested the Runtime to terminate it in an unusual
way.
Please contact the application’s support team for more information.


I’m guessing that things are not where they are supposed to be, but I am
not sure. ruby is in C:\ruby\bin and the rubygem stuff is in
c:\ruby\rubygems.

ruby is 1.8.6 -0 and gem is 1.3.0

I have a Windows Vista box sp3.


#14

Thank you for your assistance, Luis, that appears to have worked.


#15

Luis L. wrote:

On Oct 3, 3:56�am, Pokkai D. removed_email_address@domain.invalid wrote:

D:\workspace>gem env
ERROR: �While executing gem … (NoMethodError)
� � undefined method `uid’ for nil:NilClass

any solution

This was reported in RubyGems developer mailing list.

The issue around it was fixed in the repository, but I missed the
release 1.3.0 by 1 day (daily work), sorry for that.

I only hope that Eric do a new release (1.3.1) soon enough to
workaround this issue.

Thanks Luis
anyway i have an old copy of my ruby env which is in gem -v 1.2.0
now my projects are running in that.
Thanks again

by
mokkai