Open jglauche opened 8 years ago
Are you using something like rvm? Can you try to create a new gemset and install everything from scratch? I think this has to do with me not fully specifying all gem versions and assuming that it will get the latest.
I'm using rbenv and I'm not sure if I can switch rails versions with that.
Hmm. can you try to install a new version of ruby? That will at least have a clean set of gems.
Alternatively we'll need to go through and all versions to everything.
Hi,
I uninstalled all my gems, then installed rails 5, installed happy_seed and when I ran happy_seed rails asdfapp
, rails 5.0.0.1 was automatically installed. It would be nice to be able to select rails version when installing rails via happy_seed.
The circular dependencies error came after saying yes to install separate admin?
. After that error happy_seed wasn' t working properly, so I deleted the app, ran happy_seed rails asdfapp
again and said no to install separate admin?
.
Another error I've got is after saying yes to install oauth google:
/home/camilo/.rvm/gems/ruby-2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:86:in `require': cannot load such file -- google/api_client (LoadError)
I'm still getting
DEPRECATION WARNING: before_filter is deprecated and will be removed in Rails 5.1. Use before_action instead. (called from block in setup_action_controller at /home/camilo/.rvm/gems/ruby-2.3.0/bundler/gems/draper-e816e0e5876b/lib/draper.rb:36)
I tried gem install draper
but i'm still getting thar error (even though they claim to have solved that issue). It's annoying but doesn't seem to affect the execution of happy_seed.
If I choose not to install simple_cms, I don' t get the error.
And at last, when installing Jazz_hands, bundler shows another error:
Bundler could not find compatible versions for gem "railties":
In snapshot (Gemfile.lock):
railties (= 5.0.0.1)
...
jazz_hands was resolved to 0.5.2, which depends on
railties (< 5.0, >= 3.0)
...
rails (>= 5.0.0.1, ~> 5.0.0) was resolved to 5.0.0.1, which depends on
railties (= 5.0.0.1)
This one comes because of using rails 5.0.0.1 (which was autoinstalled by happy_seed) instead of 5.0.0
I hope this helps narrow some problems down to some components. Please offer a way to specify rails version! And thanks for HappySeed !!!
Woohoo!
I was able to choose my rails version like this:
Run happy_seed rails nameofyourapp
and almost immediately pause the process with ctrl+z (before bundle), then edit the gemfile generated for your app, I modified the rails line like this gem 'rails', '= 5.0.0'
.
Then continue the process in the terminal writing %
and return.
Rails version problems solved!
For the google/api_client error, before saying yes to the install, go to gemfile and add this:
gem 'omniauth-google-oauth2'
gem 'google-api-client', '~> 0.7.1', require: 'google/api_client'
Then bundle (in another terminal, in your app root), and check that google-api-client version is 0.7.1.
You can return to happy_seed and accept Install googleoauth, OAuth: Connect wuth google?
Hi,
I have multiple Rails versions installed including Rails 5. When I try to create a new rails up with happy_seed it will at some point complain about circular dependencies and not install any more items.
I'm assuming this is a bug with some packages and Rails 5. Is there a way to choose a Rails 4 version, if my command line "rails" will default to Rails 5? (somewhat like I can do
rails _4.2.6_ new my_project
)