Closed suchipi closed 9 years ago
@wschenk, looks like the same Bundler.with_clean_env
issue that was causing @rezendi problems. I didn't get to the bottom of what precisely triggers this, but is it reasonable to remove this and push a new gem version? It wasn't clear to me that it was actually necessary for the thing to function.
adding require ‘bundler’ to the happy_seed.rb script fixed it I think
-- Will Schenk http://happyfuncorp.com http://willschenk.com http://sublimeguile.com
From: Ricky Reusser notifications@github.com Reply: HappyFunCorp/happy_seed reply@reply.github.com> Date: April 21, 2015 at 6:28:20 PM To: HappyFunCorp/happy_seed happy_seed@noreply.github.com> Cc: Will Schenk wschenk@gmail.com> Subject: Re: [happy_seed] Unable to generate rails app (#42)
@wschenk, looks like the same Bundler.with_clean_env issue that was causing @rezendi problems. I didn't get to the bottom of what precisely triggers this, but is it reasonable to remove this and push a new gem version? It wasn't clear to me that it was actually necessary for the thing to function.
— Reply to this email directly or view it on GitHub.
Adding require 'bundler'
as the first line of happy_seed.rb helped it to continue, but then it failed when it was unable to find spring-commands-rspec
, spring-commands-cucumber
, vcr
, and webmock
. After installing those gems with a gem install
, it failed to compile pg
because I don't have postgres installed, so I changed line 43 of happy_seed.rb from run "bundle install > /dev/null"
to run "bundle install --without production > /dev/null"
.
Thanks @wschenk adding require 'bundler' as the first line of happy_seed.rb worked for me.
FYI my file was located here: _./Users/jr/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/happy_seed-0.0.15/happyseed.rb
Seems like everyone who uses this runs into the same issue. Can that line either be removed or fixed?
@suchipi Are you still having the issue with spring-commands-rspec etc?
I can check tonight if it's still relevant
I'm using rbenv, ruby 2.2.1, and rails 4.2.0.