每当我尝试从命令行使用任何gem操作时,我都会在执行操作之前收到此错误。目前我在运行heroku命令时收到了这个,但是在显示以下错误后,heroku命令确实成功运行。如何摆脱以下错误显示 -
Invalid gemspec in [/home/murtaza/.rvm/gems/ruby-1.9.3-p194/specifications/mail-2.3.3.gemspec]: invalid date format in specification: "2012-03-14 00:00:00.000000000Z" Invalid gemspec in [/home/murtaza/.rvm/gems/ruby-1.9.3-p194/specifications/jquery-rails-1.0.19.gemspec]: invalid date format in specification: "2011-11-26 00:00:00.000000000Z" Invalid gemspec in [/home/murtaza/.rvm/gems/ruby-1.9.3-p194/specifications/multipart-post-1.1.5.gemspec]: invalid date format in specification: "2012-02-13 00:00:00.000000000Z" Invalid gemspec in [/home/murtaza/.rvm/gems/ruby-1.9.3-p194/specifications/uuid-2.3.5.gemspec]: invalid date format in specification: "2012-01-23 00:00:00.000000000Z" Invalid gemspec in [/home/murtaza/.rvm/gems/ruby-1.9.3-p194/specifications/oauth2-0.5.2.gemspec]: invalid date format in specification: "2012-01-04 00:00:00.000000000Z" Invalid gemspec in [/home/murtaza/.rvm/gems/ruby-1.9.3-p194/specifications/rack-cache-1.0.3.gemspec]: invalid date format in specification: "2011-08-27 00:00:00.000000000Z"
答案 0 :(得分:2)
gem-pristine -all解决了这个问题!