Error installing some gems (Ruby 1.9.2)

Hi I am testing Ruby 1.9.2 and Rails 3.
Has anybody encountered this error:

web katz$ gem install rspec-rails


Thank you for installing rspec-rails-1.3.2

If you are upgrading, do this in each of your rails apps
that you want to upgrade:

$ ruby script/generate rspec

Please be sure to read History.rdoc and Upgrade.rdoc
for useful information about this release.


Successfully installed rspec-rails-1.3.2
1 gem installed
Installing ri documentation for rspec-rails-1.3.2…
ERROR: While executing gem … (NoMethodError)
undefined method `empty?’ for nil:NilClass

The same error occured when I installed the mail gem.

Would help if someone knows or would enlighten us about the causes of
this issue so users/developers can fix their gems.
Thanks.

I’d also like to add that this only occurs for 1.9.2.

Using Ruby 1.9.1 and Ruby 1.8.7, installing rspec-rails and mail gem
is just fine.

On Thu, Feb 18, 2010 at 3:30 PM, Katherine [email protected]
wrote:

I’d also like to add that this only occurs for 1.9.2.

Using Ruby 1.9.1 and Ruby 1.8.7, installing rspec-rails and mail gem
is just fine.

Katherine, here are my results for installing rspec and rspec-rails:

$ ruby -v
ruby 1.9.2dev (2010-02-18 trunk 26707) [powerpc-darwin9.8.0]
$ gem install rspec rspec-rails


Thank you for installing rspec-1.3.0

Please be sure to read History.rdoc and Upgrade.rdoc
for useful information about this release.


Successfully installed rspec-1.3.0


Thank you for installing rspec-rails-1.3.2

If you are upgrading, do this in each of your rails apps
that you want to upgrade:

$ ruby script/generate rspec

Please be sure to read History.rdoc and Upgrade.rdoc
for useful information about this release.


Successfully installed rspec-rails-1.3.2
2 gems installed
Installing ri documentation for rspec-1.3.0…
Installing ri documentation for rspec-rails-1.3.2…
Installing RDoc documentation for rspec-1.3.0…
Could not find main page README.rdoc
Installing RDoc documentation for rspec-rails-1.3.2…
Could not find main page README.rdoc

If you’re using RVM to manage your Ruby VMs, then I would recommend
doing
the following:

rvm install ruby-head

Note: If it is installed already installed, then the above command
would
perform an ‘svn update’ and rebuild things as normal.

Ruby 1.9.2 development branch is very active. Thus, if you want to stay
current, then you’ll need to upgrade every so often. Lastly, I also
tend to
use Ruby 1.9.1 (i.e. rvm install 1.9.1-head) in conjunction with Ruby
1.9.2
because it’s a bit more stable and it’s a good fallback in the event
Ruby
1.9.2 source update goes bad. However, I can wait until Ruby 1.9.2 is
released because it appears noticeably faster than 1.9.1.

Good luck,

-Conrad

Thanks… I guess it’s fine now. They also fixed bundler gem issues.

On Thu, Feb 18, 2010 at 6:38 PM, Conrad T. [email protected]
wrote:

$ ruby -v
Successfully installed rspec-1.3.0
for useful information about this release.

use Ruby 1.9.1 (i.e. rvm install 1.9.1-head) in conjunction with Ruby 1.9.2
because it’s a bit more stable and it’s a good fallback in the event Ruby
1.9.2 source update goes bad. However, I can wait until Ruby 1.9.2 is
released because it appears noticeably faster than 1.9.1.

Good luck,

-Conrad

Katherine, the installation of the documentation tends to error out or
hang
in some cases. Thus, I wouldn’t worry too much about it. However, I
would
recommend filing a ticket against the gem so that they are aware of the
issue.

-Conrad

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs