From cf0a97d93cb9ee629fcfb2895432e6da176341fb Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 1 Feb 2016 12:43:26 +0000 Subject: * lib/rubygems.rb, lib/rubygems/*, test/rubygems/*: Update rubygems-2.5.2. It supports to enable frozen string literal and add `--norc` option for disable to `.gemrc` configuration. See 2.5.2 release notes for other fixes and enhancements. https://github.com/rubygems/rubygems/blob/a8aa3bac723f045c52471c7b9328310a048561e0/History.txt#L3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53707 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- lib/rubygems/request_set/lockfile.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'lib/rubygems/request_set/lockfile.rb') diff --git a/lib/rubygems/request_set/lockfile.rb b/lib/rubygems/request_set/lockfile.rb index e9a706e83b..7f6eadb939 100644 --- a/lib/rubygems/request_set/lockfile.rb +++ b/lib/rubygems/request_set/lockfile.rb @@ -1,4 +1,4 @@ -# frozen_string_literal: false +# frozen_string_literal: true ## # Parses a gem.deps.rb.lock file and constructs a LockSet containing the # dependencies found inside. If the lock file is missing no LockSet is @@ -130,8 +130,8 @@ class Gem::RequestSet::Lockfile [source.repository, source.rev_parse] end - out << "GIT" by_repository_revision.each do |(repository, revision), requests| + out << "GIT" out << " remote: #{repository}" out << " revision: #{revision}" out << " specs:" @@ -144,9 +144,8 @@ class Gem::RequestSet::Lockfile out << " #{dep.name}#{dep.requirement.for_lockfile}" end end + out << nil end - - out << nil end def relative_path_from dest, base # :nodoc: -- cgit v1.2.3