由于规范中的日期格式,gemspec无效 [英] Invalid gemspec because of the date format in specification
问题描述
当我包含一个我创建的宝石时,感谢Bundler(版本1.0.12),在一个Gemfile中,然后尝试捆绑或耙取,就像那样:
$ b
$ b $
$ rake [/Users/zagzag/.rvm/gems/ruby-1.9.2-p180@foobar/specifications/myplugin-1.0.0.gemspec]中的gemspec无效:规范中的无效日期格式:2011-04-21 00:00:00.000000000Z
m在上一个Mac OS X(10.6.4)中,包含:
$ ruby -v
ruby 1.9。 2p180(2011-02-18 revision 30909)[x86_64-darwin10.4.0]
和
p> $ gem -v
[/Users/zagzag/.rvm/gems/ruby-1.9.2- p180@foobar/specifications/myplugin-1.0.0.gemspec]:规范中无效的日期格式:2011-04-21 00:00:00.000000000Z
1.7.2
我真的不知道如何解决这个问题。感谢您的任何想法。
下面是我修复规范中的无效日期格式错误的方法:
<1>)转到位于以下位置的说明文件夹:
/ usr / local / lib / ruby / gems / 1.8 / specifications /
2。)找到导致问题的规范。
<3>)将
s.date =%q {2011-05-21 00:00:00.000000000Z} 更改为 s.date =%q {2011-05-21}
这对我来说是一场胜利!好运
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've got this error message:
Invalid gemspec in [/Users/zagzag/.rvm/gems/ruby-1.9.2-p180@foobar/specifications/myplugin-1.0.0.gemspec]: invalid date format in specification: "2011-04-21 00:00:00.000000000Z"
I'm on the last Mac OS X (10.6.4), with:
$ ruby -v
ruby 1.9.2p180 (2011-02-18 revision 30909) [x86_64-darwin10.4.0]
and:
$ gem -v
Invalid gemspec in [/Users/zagzag/.rvm/gems/ruby-1.9.2-p180@foobar/specifications/myplugin-1.0.0.gemspec]: invalid date format in specification: "2011-04-21 00:00:00.000000000Z"
1.7.2
I really don't see how to solve this issue. Thanks for any ideas.
解决方案 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
这篇关于由于规范中的日期格式,gemspec无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!