SOLUTION: gemcutter "gem migrate" gives "Too many authentication failures"

Gary McGhee - Thursday, December 03, 2009
When trying to migrate my gems from rubyforge to gemcutter I got the following error :
GarysMac:yore gary$ gem migrate yore
Starting migration of yore from RubyForge...
A migration token has been created.
Uploading the migration token to buzzware.rubyforge.org.
There was a problem uploading your token: disconnected: Too many authentication failures for buzzware (2)
Asking Gemcutter to verify the upload...
Gemcutter is still looking for your migration token.
GarysMac:yore gary$
I've seen this before with ssh on my Mac - it seems I have too many hosts set up in ~/.ssh/config, and unless it has a host setup that matches perfectly (or something) it gives up before trying all possibilities. I also seem to remember "IdentitiesOnly yes" to help in reducing the number of configurations tried.

Anyway, I debugged it by doing "rdebug gem migrate yore" and then "b migrate.rb:66" to debug the upload_token method.
When it got to the point of uploading the token, I used the token string it was going to upload, and by fiddling with ~/.ssh/config, eventually uploaded it myself. Then when I let the debugger continue, it succeeded. The following setting in ~/.ssh/config also succeeded with my other gems :
Host buzzware.rubyforge.org
        IdentitiesOnly yes
        User buzzware
        PreferredAuthentications password
Hooray!

My core libraries on GitHub

Gary McGhee - Friday, September 18, 2009
I finally got my core libraries up on GitHub

Don't underestimate Radiant CMS

Gary McGhee - Tuesday, January 20, 2009

I hereby confess that I underestimated Radiant CMS. I was looking at the website some years ago, and without digging in too far, concluded that it was a small project to create a CMS in Ruby on Rails, and hadn't really got a lot of traction. I'd be better off with one of the big name CMS's, probably one written in PHP I thought. Well now I'm freelancing and trying to consolidate my favoured technologies to increase re-use, reduce learning time and increase productivity. Choosing a CMS however hasn't been easy, there are so many out there its bewildering, and so many people seem disgruntled with them.

I know enough languages to pick up PHP if I have to, and I already know enough to modify existing code, but like most languages, or even more than most, it hurts my eyes after a few years with Ruby. Now from playing with Magento, I've decided the Zend Framework is where I'll focus when I have to do PHP, so I looked for a Zend based CMS, and the only serious contender seems to be http://www.digitalus.nl. It may well be good, but its in its early stages.

So the other night I stayed up trying to answer the question "Can I seriously use a Ruby-based CMS ie Radiant as my CMS of choice ?", and I came to the conclusion that yes, Radiant is something worth making that kind of investment in. The kicker was the slides from this presentation Pragmatic Content Management with Radiant from Sean Cribbs. It succinctly explains the pages, parts, snippets and layouts. In particular, the idea that a page should have more than one location to be filled by dynamic content is something I implemented in a Flex templating system I wrote. It seem so obvious, yet many systems apparently don't allow it.

Also the extension system, in typical Ruby style seems extremely powerful and useable even on jobs with a tight deadline. And of course, you have the full power of Ruby available as required.