Skip to content

Instantly share code, notes, and snippets.

@filipechagas
Created January 23, 2012 00:51
Show Gist options
  • Save filipechagas/1659692 to your computer and use it in GitHub Desktop.
Save filipechagas/1659692 to your computer and use it in GitHub Desktop.
Fix "Invalid gemspec date format" problem
(Insinde the gemspecs directory - $RUBYHOME/lib/ruby/gems/1.8/specifications)
Finding the problematics gemspecs:
grep -i *.gemspec -e '.*s\.date.*=.*%q{\(....-..-..\) \(.*Z\)}
Fixing the files:
sed -i -e 's/\(.*\)s\.date.*=.*%q{\(....-..-..\) \(.*Z\)}/\1s.date = %q\{\2}/p' ./*.gemspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment