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.
  • Loading branch information
bundlerbot committed Feb 20, 2018
2 parents 30f7b45 + c518c36 commit 86e4b2a
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 86e4b2a

Please sign in to comment.