今天早些時候,我在應用中添加了mongoid gem版本'2.0'。從那時起,我用gem命令我碰到下面的錯誤任何時候:Mongoid每當我使用gem命令時都會導致錯誤
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/mongoid-2.1.0.gemspec]: invalid date format in specification: "2011-07-31 00:00:00.000000000 %:z"
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/mongoid-2.1.7.gemspec]: invalid date format in specification: "2011-08-08 00:00:00.000000000Z"
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/mongoid-2.1.0.gemspec]: invalid date format in specification: "2011-07-31 00:00:00.000000000 %:z"
Invalid gemspec in [/Library/Ruby/Gems/1.8/specifications/mongoid-2.1.7.gemspec]: invalid date format in specification: "2011-08-08 00:00:00.000000000Z"
任何想法如何解決這一問題?
我跑了「寶石卸載mongoid」,但我似乎無法擺脫錯誤消息。卸載後是否繼續收到該消息? – John
哦,我忘了,我還手動刪除所有gemspecs文件,然後再重新安裝: rm /Library/Ruby/Gems/1.8/specifications/mongoid-2.1.7.gemspec – Blacksad