exe/bundle-only in bundle-only-0.2.0 vs exe/bundle-only in bundle-only-0.3.0
- old
+ new
@@ -1,6 +1,7 @@
#!/usr/bin/env ruby
+# frozen_string_literal: true
require 'bundle-only/messages'
install_only = ARGV.to_a.map(&:to_sym)
@@ -19,11 +20,11 @@
builder = Bundler::Dsl.new
builder.eval_gemfile(gemfile)
all_groups = builder.dependencies.map(&:groups).flatten.uniq
groups_to_skip = all_groups - install_only
-Bundler.settings.without = groups_to_skip
-Bundler.settings.with = install_only
+Bundler.settings.set_command_option :without, groups_to_skip
+Bundler.settings.set_command_option :with, install_only
definition = builder.to_definition(Bundler.default_lockfile, {})
def definition.lock(*); end # never lock or preserve options
definition.validate_ruby!