-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optional gem dependency problems #35
Comments
The conditional logic is necessary because Maybe the begin
require "chandler/tasks"
rescue LoadError
end
task "release:rubygem_push" => "chandler:push" if defined?(Chandler) Then it just becomes a matter of whether to install the extra gems or not. Perhaps the better Bundler 1.10 feature to use in this case is group :ruby_2, :install_if => -> { check_ruby_gte_2_1_0 } do
#...
end I mentioned in the CHANGELOG that Bundler 1.10 is now a requirement. Maybe that should go in CONTRIBUTING as well. |
I will make the above change to the |
I think this issue can be closed. It's been fine for me to work with and is properly documented in the contributor documentation. Bundler >= 1.10 is fine nowadays;-) I think dropping support for 1.9 could be a topic for the next major release. But as long as it's no pain, this compatibility is a 👍 |
I'm not sure if this was intentional, but this change:
Caused my call to rake to fail like this:
I tried bundle install and I got this:
Basically, looks like :optional => true is not backwards compatible with older versions of bundler. I'm not sure if this was intentional - looks like the intention was for v1.10 of bundler to only be needed for people who wanted to run the optional tasks, but this doesn't work - everyone needs v1.10.
I upgraded bundler, reinstalled the gems and then I saw:
This can be fixed by patching the rake file like this, (but I don't know what gem version
find_all_by_name
was added):I'm not sure what the motivation was as far as making some gems optional. I think it is a nice idea in principle, but I wonder if the complexity of trying to make them optional is worth it. Personally I'm happy to just install everything even if I don't use
guard
,chandler
etc.I'm happy to do a PR for this, but I wanted to discuss first to find out which direction it should go in.
The text was updated successfully, but these errors were encountered: