warnings in new code

232 views
Skip to first unread message

kbrock

unread,
Jan 21, 2012, 9:06:11 PM1/21/12
to factory_girl
Hi Guys,

Was putting together an app today, but got a factory girl error.


You can see the same error at http://travis-ci.org/#!/thoughtbot/factory_girl/jobs/551551

Invalid gemspec in [/home/vagrant/.rvm/gems/ree-1.8.7-2011.12/
specifications/activerecord-3.2.0.gemspec]: Illformed requirement
["#<YAML::Syck::DefaultKey:0xd39fb7c> 3.2.0"]


Locally, I'm running ree, rails 3.1, factory_girl_rails (1.6.0)/
factory_girl (2.5.0)

after bundle install I run rake, but get the following error:

Invalid gemspec in [/Users/kbrock/projects/chat/.bundle/ruby/1.8/
specifications/factory_girl_rails-1.6.0.gemspec]: Illformed
requirement ["#<YAML::Syck::DefaultKey:0x10931d9e0> 3.0.7"]
Could not find factory_girl_rails-1.6.0 in any of the sources
Run `bundle install` to install missing gems.

If you edit the gemspec and replace the <YAML with lines to read
>=look at the gemspec, you'll notice that the rails lines have some
odd yaml serialization statement rather than the expected >=

I was not able to find this in the github source, so was not able to
submit a bugfix. Maybe it is simply a corrupted gem?

Thanks for such a great tool
--Keenan

Josh Clayton

unread,
Feb 6, 2012, 11:38:00 PM2/6/12
to factory_girl
You'll want to upgrade Rubygems - this error is due to an outdated
version.

On Jan 21, 9:06 pm, kbrock <kee...@thebrocks.net> wrote:
> Hi Guys,
>
> Was putting together an app today, but got a factory girl error.
>
> You can see the same error athttp://travis-ci.org/#!/thoughtbot/factory_girl/jobs/551551

Raphael Crawford-Marks

unread,
Feb 3, 2012, 2:53:50 PM2/3/12
to factory_girl
I'm getting this too, and the same fix worked. But I'd rather not had
to do the same when I push code to staging and production...anyone
have details on the issue or a more elegant fix?

Thanks,

Raphael

On Jan 21, 9:06 pm, kbrock <kee...@thebrocks.net> wrote:
> Hi Guys,
>
> Was putting together an app today, but got a factory girl error.
>
> You can see the same error athttp://travis-ci.org/#!/thoughtbot/factory_girl/jobs/551551

Chris Bloom

unread,
Mar 19, 2012, 6:32:03 PM3/19/12
to factory_girl
Just to clarify the steps to fix, if you are getting this error first
do `gem update --system`, then run `bundle update` again.
Reply all
Reply to author
Forward
0 new messages