Ruby on Rails Monday, September 28, 2015

On Monday, September 28, 2015 at 10:01:22 PM UTC+1, Colin Law wrote:
>
> Any suggestions as to why I have to explicitly include gon in the
> application's Gemfile, when it is included anyway via the dependency
> in my gem?
>

Bundler's autorequire feature only requires gems listed in the Gemfile, not their dependencies. You could either require gon from within your gem, when it is required (this may or may not be appropriate ) or require it from your app.

Fred

> Gemfile.lock with and without gon included explicitly can be seen at
> http://pastebin.com/vzvNgg3K
>
> Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ffc0ef20-effe-4ad5-9a5c-f8cb46bacd98%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment