Created
January 23, 2012 00:51
-
-
Save filipechagas/1659692 to your computer and use it in GitHub Desktop.
Fix "Invalid gemspec date format" problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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