Invalid gemspec because of the date format in specification

后端 未结 15 1158
悲&欢浪女
悲&欢浪女 2020-11-28 01:41

When I include a gem that I made, thanks to Bundler (version 1.0.12), in a Gemfile and then I try to bundle or to rake just like that:

$ rake

I\

15条回答
  •  情话喂你
    2020-11-28 02:26

    Here is the command to fix this for all your gems:

    perl -p -i -e 's/ 00:00:00.000000000Z//' ~/gems/specifications/*.gemspec
    

    It converts s.date = %q{2011-05-21 00:00:00.000000000Z} to s.date = %q{2011-05-21} and should fix your issue.

提交回复
热议问题