Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8619927
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T06:27:30+00:00 2026-06-12T06:27:30+00:00

I recently updated my Mac Mini to OS 10.8 Mountain Lion, and using Ruby

  • 0

I recently updated my Mac Mini to OS 10.8 Mountain Lion, and using Ruby gems with RVM 1.16.8, Ruby 1.9.3p194 no longer works.

Here is the concise version of the error:

`load_api_keys': undefined method `key?' for #<String:0x007f865a928a28> (NoMethodError)

When I run any command like gem install bundler or gem -v I get the error below:

➜  ~ gem
/Users/brettchalupa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:227:in `load_api_keys': undefined method `key?' for #<String:0x007f865a928a28> (NoMethodError)
from /Users/brettchalupa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/config_file.rb:208:in `initialize'
from /Users/brettchalupa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:78:in `new'
from /Users/brettchalupa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:78:in `do_configuration'
from /Users/brettchalupa/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/gem_runner.rb:51:in `run'
from /Users/brettchalupa/.rvm/rubies/ruby-1.9.3-p194/bin/gem:25:in `<main>'

➜  ~ ruby -v
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-darwin12.2.0]

➜  ~ rvm -v

rvm 1.16.8 (master) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]

I have gone in and commented out the conflicting method call load_api_keys which makes things function properly, but it then breaks any interaction with rubygems.org.

The issue is line :227, if @api_keys.key? :rubygems_api_key then

def load_api_keys
  @api_keys = if File.exist? credentials_path then
                load_file(credentials_path)
              else
                @hash
              end
  if @api_keys.key? :rubygems_api_key then
    @rubygems_api_key = @api_keys[:rubygems_api_key]
    @api_keys[:rubygems] = @api_keys.delete :rubygems_api_key unless @api_keys.key? :rubygems
  end
end

After removing RVM and attempting to install different Rubies, I have not found a solution to this issue. I do not want to simply comment out something that removes functionality that I use.

If anyone could give any insight as to what is causing this and how to fix it, it would be much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T06:27:31+00:00Added an answer on June 12, 2026 at 6:27 am

    Remove (or move) /Users/brettchalupa/.gem/credentials and let it use the default credentials.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okie dokie - IT recently updated my system to lion, fresh install. I followed
i recently updated my mac to Snow Leopard. But due to it all my
I just recently updated my IntelliJ Idea installation on my Mac to 10.5. I
I recently updated to iPhone SDK 4.0 and are no longer able to build
We recently updated our WPF application to perform its data synchronisation (using sync framework)
I recently updated my Snow Leopard to Lion and today, I went to open
Hi I recently updated the java version on my mac to 1.6.0_29 and now
We've recently updated to Oracle 11g and our DBA has suggested using result caching
I recently updated my Rails to 3.1. Here's a part where I added: <%=
I'm running on OSX Mountain Lion. I recently installed the latest version of Eclipse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.