thoughtbot / factory_bot_rails

Factory Bot ♥ Rails
https://thoughtbot.com/services/ruby-on-rails
MIT License
3.08k stars 372 forks source link

1.5 gemspec is wrong #46

Closed jjb closed 12 years ago

jjb commented 12 years ago

looks like something's wrong with the 1.5 gemspec.

Invalid gemspec in [/Users/john/.rbenv/versions/ree-1.8.7-2011.03/lib/ruby/gems/1.8/specifications/factory_girl_rails-1.5.0.gemspec]: Illformed requirement ["# 3.0.7"]
joshuaclayton commented 12 years ago

Have you tried updating your version of RubyGems?

jjb commented 12 years ago

hmm… i was on 1.6… did gem update --system, now i'm on 1.8.15 and… now ALL my gemspecs come up as invalid… and bundler thinks it has to reinstall all my gems. how odd.

(i realize this is not relevant to factory girl…)

On Fri, Jan 13, 2012 at 3:17 PM, Joshua Clayton < reply@reply.github.com

wrote:

Have you tried updating your version of RubyGems?


Reply to this email directly or view it on GitHub:

https://github.com/thoughtbot/factory_girl_rails/issues/46#issuecomment-3485531

derekprior commented 12 years ago

I had the same problem with factory_girl_rails 1.5, running on REE (1.8.7, 2010.01 in my case). As per Josh's suggestion, I tried updating rubygems and had several (all?) of my gemspecs error. I bundle everything to vendor/bundle so I wiped that folder and reran bundle install.

Now factory_girl_rails is fine.

Of course, tilt now has an invalid gemspec... I really hate updating rubygems.

jjb commented 12 years ago

I'm still dealing with this. googling shows that the problem with the gemspec format has no proper solution. all the solutions involve directly editing the gemspec.

some suggesting running

gem update

or

gem pristine --all

neither of which worked for me. now i'm uninstalling all gems witih

gem list --no-versions |xargs gem uninstall --a --ignore-dependencies

which finished, and gem list shows nothing, but... there are still gemspecs hanging around for some reason, showing errors. how odd. maybe it's from when I sent ^c in the middle of some command at some point.

rm -rf /Users/john/.rbenv/versions/ree-1.8.7-2011.03/lib/ruby/gems/1.8/specifications

did the trick in the end

derekprior commented 12 years ago

Same. Remove All installed gems. Remove any locally bundled gems from your project. Upgrade rubygems. Install bundler. bundle. Phew.

joshuaclayton commented 12 years ago

Can you all confirm that this is REE only? I installed on MRI 1.8.7, 1.9.2, 1.9.3 without any issues so narrowing the issue to REE would be awesome.

jjb commented 12 years ago

i don't have enough state or energy left to try to isolate for factory girl /ree... but it's clearly a general issue with rubygems more than a factory girl issue...

stevef commented 12 years ago

I was able to replicate this on JRuby 1.6.5.

derekprior commented 12 years ago

I just realized that I don't have the ability to update ruby gems on the server I deploy to, so I have to go back to 1.6.2 (stock with REE) and factory_girl_rails 1.4 unless the f_g_r gemspec can be made compatible with older versions of rubygems.

shwoodard commented 12 years ago

all good with 1.9.2 and latest ruby gems release

shw

coutsuza commented 12 years ago

so what is the correct way to rectify this? I am having the same problem and I am more of a novice...any help would be great

shwoodard commented 12 years ago

Hi Suzanne,

Would be happy to help. Would you mind doing it over Skype?

Skype un: sam_woodard

Let me know a time that works for you.

Cheers, Sam

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com

On Sunday, January 15, 2012 at 8:47 AM, Suzanne wrote:

so what is the correct way to rectify this? I am having the same problem and I am more of a novice...any help would be great


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/46#issuecomment-3499313

coutsuza commented 12 years ago

sure. i need about five minutes.
will you still be there.

shwoodard commented 12 years ago

yep :)

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com

On Sunday, January 15, 2012 at 9:05 AM, Suzanne wrote:

sure. i need about five minutes. will you still be there.


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/46#issuecomment-3499416

shwoodard commented 12 years ago

gonna bounce in a few…you want to chat for a second?

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com

On Sunday, January 15, 2012 at 9:05 AM, Sam Woodard wrote:

yep :)

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com (mailto:sam.h.woodard@gmail.com)

On Sunday, January 15, 2012 at 9:05 AM, Suzanne wrote:

sure. i need about five minutes.
will you still be there.


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/46#issuecomment-3499416

coutsuza commented 12 years ago

I just tried to call you, but I need to add you as a contact or you
can try me Suzanne Coutchie 248 760 0409

On Jan 15, 2012, at 10:06 AM, Sam Woodard wrote:

yep :)

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com

On Sunday, January 15, 2012 at 9:05 AM, Suzanne wrote:

sure. i need about five minutes. will you still be there.


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499416


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499420

coutsuza commented 12 years ago

sure

On Jan 15, 2012, at 10:28 AM, Sam Woodard wrote:

gonna bounce in a few…you want to chat for a second?

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com

On Sunday, January 15, 2012 at 9:05 AM, Sam Woodard wrote:

yep :)

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com (mailto:sam.h.woodard@gmail.com)

On Sunday, January 15, 2012 at 9:05 AM, Suzanne wrote:

sure. i need about five minutes. will you still be there.


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499416


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499560

coutsuza commented 12 years ago

can you skype me?

On Jan 15, 2012, at 10:28 AM, Sam Woodard wrote:

gonna bounce in a few…you want to chat for a second?

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com

On Sunday, January 15, 2012 at 9:05 AM, Sam Woodard wrote:

yep :)

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com (mailto:sam.h.woodard@gmail.com)

On Sunday, January 15, 2012 at 9:05 AM, Suzanne wrote:

sure. i need about five minutes. will you still be there.


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499416


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499560

shwoodard commented 12 years ago

I'm in mexico. i did not get a contact request from you. can you try again? sam_woodard

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com

On Sunday, January 15, 2012 at 9:31 AM, Suzanne wrote:

sure

On Jan 15, 2012, at 10:28 AM, Sam Woodard wrote:

gonna bounce in a few…you want to chat for a second?

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com (mailto:sam.h.woodard@gmail.com)

On Sunday, January 15, 2012 at 9:05 AM, Sam Woodard wrote:

yep :)

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com (mailto:sam.h.woodard@gmail.com)

On Sunday, January 15, 2012 at 9:05 AM, Suzanne wrote:

sure. i need about five minutes. will you still be there.


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/
46#issuecomment-3499416


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/
46#issuecomment-3499560


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/46#issuecomment-3499590

coutsuza commented 12 years ago

my skype name is coutsuza On Jan 15, 2012, at 10:28 AM, Sam Woodard wrote:

gonna bounce in a few…you want to chat for a second?

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com

On Sunday, January 15, 2012 at 9:05 AM, Sam Woodard wrote:

yep :)

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com (mailto:sam.h.woodard@gmail.com)

On Sunday, January 15, 2012 at 9:05 AM, Suzanne wrote:

sure. i need about five minutes. will you still be there.


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499416


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499560

shwoodard commented 12 years ago

np

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com

On Sunday, January 15, 2012 at 9:33 AM, Suzanne wrote:

my skype name is coutsuza On Jan 15, 2012, at 10:28 AM, Sam Woodard wrote:

gonna bounce in a few…you want to chat for a second?

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com (mailto:sam.h.woodard@gmail.com)

On Sunday, January 15, 2012 at 9:05 AM, Sam Woodard wrote:

yep :)

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com (mailto:sam.h.woodard@gmail.com)

On Sunday, January 15, 2012 at 9:05 AM, Suzanne wrote:

sure. i need about five minutes. will you still be there.


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/
46#issuecomment-3499416


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/
46#issuecomment-3499560


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/46#issuecomment-3499602

coutsuza commented 12 years ago

okay On Jan 15, 2012, at 10:33 AM, Sam Woodard wrote:

I'm in mexico. i did not get a contact request from you. can you
try again? sam_woodard

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com

On Sunday, January 15, 2012 at 9:31 AM, Suzanne wrote:

sure

On Jan 15, 2012, at 10:28 AM, Sam Woodard wrote:

gonna bounce in a few…you want to chat for a second?

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com (mailto:sam.h.woodard@gmail.com)

On Sunday, January 15, 2012 at 9:05 AM, Sam Woodard wrote:

yep :)

Sam Woodard -- Senior Developer +1 415-250-1591 sam.h.woodard@gmail.com (mailto:sam.h.woodard@gmail.com)

On Sunday, January 15, 2012 at 9:05 AM, Suzanne wrote:

sure. i need about five minutes. will you still be there.


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499416


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499560


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499590


Reply to this email directly or view it on GitHub: https://github.com/thoughtbot/factory_girl_rails/issues/ 46#issuecomment-3499595

jerefrer commented 12 years ago

I'm having the same issue with MRI 1.8.7-p352 so this may not be REE only ;)

This error poped after I did a bundle update. (I had 1.3 installed before updating)

I just replaced the ["#YAML::Syck::DefaultKey:0xb60b253c 3.0.7"] with ["3.0.7"] and it went just fine, but that doesn't seem to solve the problem for you guys ...

Tell me if I can help by testing some stuff on my side ;)

tylergannon commented 12 years ago

jerefrer's workaround also worked for me. Thanks for the suggestion.

prasvin commented 12 years ago

jerefrer's workaround resolved the issue. Thanks.

jobinthepast commented 12 years ago

Thanks jerefrer. Your solution works!

moritzschepp commented 12 years ago

I also had the error showing up just for the factory_girl_rails gem on rvm with ruby 1.8.7p352. I did gem uninstall factory_girl_rails gem cleanup and gem install factory_girl_rails which did the trick.

tvdeyen commented 12 years ago

We have the same issue. Only with ree-1.8.7-2011.12. All this only on Travis CI as you can see here:

http://travis-ci.org/#!/magiclabs/alchemy_cms/jobs/546185

All other rubies work with the same Gemfile. Also running this locally on my machine under ree-1.8.7-2011.12 works!

runlevel5 commented 12 years ago

@tvdeyen confirmed, got same problem with ree