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 #6300 - cpgo:remove-add-timestamp-comment, r=colby-swan…
Browse files Browse the repository at this point in the history
…dale

Remove comment with timestamp on `bundle add`

As discussed on #6193 this PR simply removes the comment timestamp when adding a gem via command line.

(cherry picked from commit 86e4b2a)
  • Loading branch information
bundlerbot authored and colby-swandale committed Apr 11, 2018
1 parent f93a2fe commit 891eef4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions lib/bundler/injector.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,6 @@ def build_gem_lines(conservative_versioning)
def append_to(gemfile_path, new_gem_lines)
gemfile_path.open("a") do |f|
f.puts
if @options["timestamp"] || @options["timestamp"].nil?
f.puts "# Added at #{Time.now} by #{`whoami`.chomp}:"
end
f.puts new_gem_lines
end
end
Expand Down

0 comments on commit 891eef4

Please sign in to comment.