Grant Heffernan <[email protected]> wrote: > Anyone come across this one before? > > Refreshing Gem list
> error reloading config_file=/data/servers/patch-fe-apache/conf/unicorn.rb: > TypeError can't convert Hash into Integer > /opt/bcs/packages/ruby-gems-1.8/lib/site_ruby/1.8/rubygems/source_index.rb:89:in > `read' Which version of RubyGems are you using? Looking at my RubyGems 1.3.7 install, I see this: 88 spec_code = if defined? Encoding then 89 File.read file_name, :encoding => 'UTF-8' 90 else 91 File.read file_name 92 end.untaint I bet you have an "Encoding" constant defined by your application, and that's tricking RubyGems into thinking you're running Ruby 1.9, which you're not. You don't get this error the first time you load your code because it hasn't loaded your Encoding constant, yet, but HUP will cause RubyGems to refresh its list of gems. So rename whatever you're calling "Encoding" since it confuses RubyGems and will break under Ruby 1.9 -- Eric Wong _______________________________________________ Unicorn mailing list - [email protected] http://rubyforge.org/mailman/listinfo/mongrel-unicorn Do not quote signatures (like this one) or top post when replying
