From d1ce9a520915618b82f7957a53a53a3ebe11cdb7 Mon Sep 17 00:00:00 2001 From: Agrim Mittal Date: Tue, 22 May 2018 13:37:13 +0530 Subject: Add support for mutiple gems add with names only --- lib/bundler/cli.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/bundler/cli.rb') diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index 926a748231..f238c2ac6d 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -337,9 +337,9 @@ module Bundler "Adds gem to the Gemfile but does not install it" method_option "optimistic", :type => :boolean, :banner => "Adds optimistic declaration of version to gem" method_option "strict", :type => :boolean, :banner => "Adds strict declaration of version to gem" - def add(gem_name) + def add(*gems) require "bundler/cli/add" - Add.new(options.dup, gem_name).run + Add.new(options.dup, gems).run end desc "outdated GEM [OPTIONS]", "List installed gems with newer versions available" -- cgit v1.2.1