diff options
author | shekharrajak <shekharstudy@ymail.com> | 2017-02-01 15:03:38 +0530 |
---|---|---|
committer | shekharrajak <shekharstudy@ymail.com> | 2017-02-01 15:03:38 +0530 |
commit | a2c8f41e85c0293d5bdd0c0ea12f9275f6de2b5d (patch) | |
tree | d6a7e6566abafb3d0b64e02dc5f6984f5477cd38 | |
parent | 3ef05361e8fc8b4ae1225f1dba8428c66e953d27 (diff) | |
download | bundler-a2c8f41e85c0293d5bdd0c0ea12f9275f6de2b5d.tar.gz |
minor change
-rw-r--r-- | lib/bundler/cli.rb | 2 | ||||
-rw-r--r-- | lib/bundler/cli/inject.rb | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/bundler/cli.rb b/lib/bundler/cli.rb index cb20dddc16..d6e811b41a 100644 --- a/lib/bundler/cli.rb +++ b/lib/bundler/cli.rb @@ -461,7 +461,7 @@ module Bundler Platform.new(options).run end - desc "inject GEM VERSION" "Add the named gem, with version requirements, to the resolved Gemfile" + desc "inject GEM VERSION", "Add the named gem, with version requirements, to the resolved Gemfile" def inject(name, version) SharedHelpers.major_deprecation "The `inject` command has been replaced by the `add` command" require "bundler/cli/inject" diff --git a/lib/bundler/cli/inject.rb b/lib/bundler/cli/inject.rb index 994bcb4993..cf35e4985b 100644 --- a/lib/bundler/cli/inject.rb +++ b/lib/bundler/cli/inject.rb @@ -18,7 +18,8 @@ module Bundler # Build an array of Dependency objects out of the arguments deps = [] - # when `inject` will support addition of multiple gem, then this loop will help. + # when `inject` support addition of more than one gem, then this loop will + # help. Currently this loop is running once. gems.each_slice(4) do |gem_name, gem_version, gem_group, gem_source| ops = Gem::Requirement::OPS.map {|key, _val| key } has_op = ops.any? {|op| gem_version.start_with? op } |