cbeer / engine_cart

Rake tasks to generate test applications for Rails Engines
MIT License
18 stars 16 forks source link

Running not under bundler #70

Closed jcoyne closed 11 months ago

jcoyne commented 7 years ago

If you run engine_cart without bundle exec you get the following error:

** Invoke engine_cart:clean (first_time)
** Invoke engine_cart:setup
** Execute engine_cart:clean
Removing sample rails app
rake aborted!
NoMethodError: undefined method `version' for nil:NilClass
/Users/jcoyne/.rbenv/versions/2.4.0/lib/ruby/gems/2.4.0/gems/engine_cart-1.1.0/lib/engine_cart/tasks/engine_cart.rake:51:in `block (3 levels) in <top (required)>'

Perhaps we should detect when bundler has not been used and give a more helpful error.