# Undefined method \`refresh' after rubygem 0.9.1 upgrade

**URL:** <https://www.ruby-forum.com/t/undefined-method-refresh-after-rubygem-0-9-1-upgrade/82542>\
**Category:** Ruby\
**Created:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/undefined-method-refresh-after-rubygem-0-9-1-upgrade/82542 "2007-01-19T16:31:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![stepheneb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Post date:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/undefined-method-refresh-after-rubygem-0-9-1-upgrade/82542/1 "2007-01-19T16:31:13Z")

</div>

I upgraded RubyGems to 0.9.1 using Eric’s instructions here:

[http://blog.segment7.net/articles/2007/01/18/rubygems-0-9-1](http://blog.segment7.net/articles/2007/01/18/rubygems-0-9-1)

basically:

gem update  
gem pristine --all

but now I get this error:

gem update sexp  
Updating installed gems…  
ERROR: While executing gem … (NoMethodError)  
undefined method `refresh’ for #Hash:0x1055db4

I tried re-installing manually, downloading the archive and running  
ruby setup.rb all and get the same error.

system: macos 10.4.8, ruby 1.8.4 (2005-12-24) [i686-darwin8.6.1]  
Anybody have a clue about what to do?

---

<div class="post-metadata">

**Author:** ![stepheneb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Post date:** [January 19, 2007, 4:31pm UTC](https://www.ruby-forum.com/t/undefined-method-refresh-after-rubygem-0-9-1-upgrade/82542/2 "2007-01-19T16:31:32Z")

</div>

On Jan 18, 2007, at 13:31, Stephen B. wrote:

> I tried re-installing manually, downloading the archive and running  
> ruby setup.rb all and get the same error.
> 
> system: macos 10.4.8, ruby 1.8.4 (2005-12-24) [i686-darwin8.6.1]  
> Anybody have a clue about what to do?

Run these:

gem sources  
sudo gem sources

then send me a copy of your user (~/.gem/source\_cache) and system (/  
path/to/ruby/lib/gem/1.8/source\_cache) indexes.

Then delete both of those indexes.

–  
Eric H. - removed\_email\_address@domain.invalid - [http://blog.segment7.net](http://blog.segment7.net)

I LIT YOUR GEM ON FIRE!

---

<div class="post-metadata">

**Author:** ![stepheneb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/71e660/32.png) [@stepheneb](https://www.ruby-forum.com/u/stepheneb)\
**Post date:** [September 25, 2007, 10:40pm UTC](https://www.ruby-forum.com/t/undefined-method-refresh-after-rubygem-0-9-1-upgrade/82542/3 "2007-09-25T22:40:37Z")

</div>

On Jan 18, 2007, at 4:31 PM, Stephen B. wrote:

> I upgraded RubyGems to 0.9.1

and had this problem

> Updating installed gems…  
> ERROR: While executing gem … (NoMethodError)  
> undefined method `refresh’ for #Hash:0x1055db4

My mail delivery was messed up so I didn’t notice that there was a  
previous thread on this topic.

I archived and then deleted:

/usr/local/lib/ruby/gems/1.8/source\_cache  
~/,gems/source\_cache

and gem install is now working.
