Invalid gemspec because of the date format in specification

后端 未结 15 990
悲&欢浪女
悲&欢浪女 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:29

    Don't specify the time... just the date. 2011-04-21 should work fine.

    0 讨论(0)
  • 2020-11-28 02:31

    Here is the way I fix the "invalid date format in specification" error:

    1.) Go to the specifications folder located at:

    /usr/local/lib/ruby/gems/1.8/specifications/

    2.) Find the spec that is causing the problem.

    3.) Change s.date = %q{2011-05-21 00:00:00.000000000Z} to s.date = %q{2011-05-21}

    That's a WIN for me! Good Luck

    0 讨论(0)
  • 2020-11-28 02:31

    On my slicehost server the specifications folder was located in a different spot. Here is the path:

    /usr/lib/ruby/gems/1.8/specifications

    The error provided should give the path to the specifications folder.

    0 讨论(0)
提交回复
热议问题