0

I can't seem to install the twitter gem in my shoes app.

When I try...

Shoes.setup do
  gem 'twitter'
end

require 'twitter'

I get

hoe requires RubyGems version >= 1.3.1

Is this a bug in Shoes or Hoe? Any ideas on a work-around?

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Scott
  • 21
  • 3

3 Answers3

2
sudo gem install rubygems-update # install the latest (1.3.5 at the moment)

or

sudo gem install rubygems-update -v 1.3.1 # or specifically 1.3.1

It also depends on what version your rubygems is on right now - sometimes you can't update directly to 1.3.5; you have to update to 1.3.1 before upgrading to the latest one.

Furthermore, it is generally recommended to install rubygems from source the first time, and update it using the above commands.

A.Ali
  • 749
  • 6
  • 14
  • First 1.3.1 and then latest, worked for me to update the rubygems that ship with Leopard OSX. – akuhn Sep 19 '09 at 20:53
1

@ John Topley: RubyGems may not be aware of Shoes, but Shoes has its own way of handling RubyGems. It copies/installs them to its own directory, I've been told this is because Shoes includes its own Ruby interpreter

0

I had this exact problem yesterday with a Rails application. The solution was to download and install RubyGems 1.3.1 from source. I used the command:

wget http://rubyforge.org/frs/download.php/45905/rubygems-1.3.1.tgz

John Topley
  • 113,588
  • 46
  • 195
  • 237