capistrano/capistrano — Issue #153: Invalid YAML in capistrano-2.9.0.gem's manifest file
Author: tarcieri
Created: 2012-02-13 23:14:20+00:00
State: open

Hi there. If you download:

wget https://rubygems.org/gems/capistrano-2.9.0.gem
tar -xvf capistrano-2.9.0.gem
gunzip manifest.gz

You will find the following line:

date: 2011-09-24 00:00:00.000000000Z

Unfortunately, this causes the following problem with RubyGems:

Invalid gemspec in [/Users/tony/.rvm/gems/ree-1.8.7-2011.12/specifications/capistrano-2.9.0.gemspec]: invalid date format in specification: "2011-09-24 00:00:00.000000000Z"

The issue is that the date format does not comply with the YAML specification. A correct date looks like one of the following:

date: 2011-09-24 00:00:00 Z
date: 2011-09-24 00:00:00.000000000 Z

(Note the space between the end of the 0's and Z)

Building the gem with Ruby 1.9.3 should avoid this problem in the future.