Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

Commit

Permalink
Auto merge of #4524 - grzuy:fix_frozen_string, r=segiddins
Browse files Browse the repository at this point in the history
Fixes frozen string exception when checking equivalent gemfile and lockfile

closes #4520
  • Loading branch information
homu authored and segiddins committed May 4, 2016
1 parent f935e2f commit 4c9d42a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/bundler/definition.rb
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ def nothing_changed?
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
Expand Down
4 changes: 2 additions & 2 deletions spec/install/deploy_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -172,13 +172,13 @@
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
Expand Down

0 comments on commit 4c9d42a

Please sign in to comment.