diff options
author | Homu <homu@barosl.com> | 2016-05-05 04:07:31 +0900 |
---|---|---|
committer | Homu <homu@barosl.com> | 2016-05-05 04:07:31 +0900 |
commit | e6d734eb281994dc8237085b74b531f826bfea13 (patch) | |
tree | 7ac99cdb83b1c0be5704a9da3a6de7c13ac8c66b | |
parent | d4679f7ebd3ba805d425a1f47a73acd2fba63dd2 (diff) | |
parent | 49a34d7ceb197fe2d815a1a71ed088675547496d (diff) | |
download | bundler-e6d734eb281994dc8237085b74b531f826bfea13.tar.gz |
Auto merge of #4524 - grzuy:fix_frozen_string, r=segiddins
Fixes frozen string exception when checking equivalent gemfile and lockfile
closes #4520
-rw-r--r-- | lib/bundler/definition.rb | 2 | ||||
-rw-r--r-- | spec/install/deploy_spec.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index c11dc2428c..294d6567c6 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -434,7 +434,7 @@ module Bundler end def pretty_dep(dep, source = false) - msg = "#{dep.name}" + msg = String.new(dep.name) msg << " (#{dep.requirement})" unless dep.requirement == Gem::Requirement.default msg << " from the `#{dep.source}` source" if source && dep.source msg diff --git a/spec/install/deploy_spec.rb b/spec/install/deploy_spec.rb index 2b714b37df..d8e7ff7c08 100644 --- a/spec/install/deploy_spec.rb +++ b/spec/install/deploy_spec.rb @@ -172,13 +172,13 @@ describe "install with --deployment or --frozen" do gemfile <<-G source "file://#{gem_repo1}" gem "rack" - gem "rack-obama" + gem "rack-obama", "1.1" G bundle "install --frozen" expect(out).to include("deployment mode") expect(out).to include("You have added to the Gemfile") - expect(out).to include("* rack-obama") + expect(out).to include("* rack-obama (= 1.1)") expect(out).not_to include("You have deleted from the Gemfile") expect(out).not_to include("You have changed in the Gemfile") end |