lib/bundler/source/git.rb in bundler-1.11.2 vs lib/bundler/source/git.rb in bundler-1.12.0.pre.1
- old
+ new
@@ -1,5 +1,6 @@
+# frozen_string_literal: true
require "fileutils"
require "uri"
require "digest/sha1"
module Bundler
@@ -33,10 +34,10 @@
def self.from_lock(options)
new(options.merge("uri" => options.delete("remote")))
end
def to_lock
- out = "GIT\n"
+ out = String.new("GIT\n")
out << " remote: #{@uri}\n"
out << " revision: #{revision}\n"
%w(ref branch tag submodules).each do |opt|
out << " #{opt}: #{options[opt]}\n" if options[opt]
end