bosko / rmre

Rails 3 models reverse engineering
MIT License
126 stars 36 forks source link

Can't resolve bundler dependencies with Rails 3.2.8 out of the box #10

Closed mskraddoc closed 11 years ago

mskraddoc commented 11 years ago

SO post here: http://stackoverflow.com/questions/13187994/how-can-i-resolve-these-rails-gem-dependecies-after-adding-rmre-0-0-4

Is the suggestion by 'normalocity' a good one?

Thanks!

bosko commented 11 years ago

Yes it definitely is. Can you try with: https://dl.dropbox.com/u/15802116/rmre-0.0.5.gem? If everything is OK I will release new version.

mskraddoc commented 11 years ago

Thanks bosko. bundle install now succeeds.

when I invoke: bundle exec rmre -a mysql -d my_db -u my_user -p my_pass -o .

The error: "Could not find gem 'mysql (>= 0) ruby' in the gems available on this machine. Run bundle install to install missing gems."

... is thrown.

I do have the mysql2 gem installed. Looking into the process of backwards installing the older mysql gem seems more than a little problematic and I worry some aspect of building and using the necessary native libraries will conflict with mysql2. Is this also a situation where upgrading the dependencies to use mysql2 is appropriate? Thanks! Perry

bosko commented 11 years ago

Great! I'll release new version soon. Regarding new problem you used old mysql gem when you invoked rare (-a mysql). You do not have to use old mysql gem just tell rmre to use mysql2 (notice change after -a option):

bundle exec rmre -a mysql2 -d my_db -u my_user -p my_pass -o .
mskraddoc commented 11 years ago

Yes. using:

bundle exec rmre -a mysql2 -d my_db -u my_user -p my_pass -o .

generated a set of models :-)

Thanks so much !

Perry

bosko commented 11 years ago

I'm glad I was able to help. Cheers!