summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThe Bundler Bot <bot@bundler.io>2018-02-20 12:29:08 +0000
committerColby Swandale <me@colby.fyi>2018-04-20 10:27:32 +1000
commit5edf035cbcf55d43393b70408db706f0da5446cd (patch)
tree79ecd8f55e395075c7aa0f0623c8345b3314543c
parent5c7b0ed16f00c3586acc7097c1d74f1172ab14b5 (diff)
downloadbundler-5edf035cbcf55d43393b70408db706f0da5446cd.tar.gz
Auto merge of #6300 - cpgo:remove-add-timestamp-comment, r=colby-swandale
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 86e4b2a636fa2153bcd048dc084ace180cfe5c4a)
-rw-r--r--lib/bundler/injector.rb3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/bundler/injector.rb b/lib/bundler/injector.rb
index ea563e3d25..6f9669ae4f 100644
--- a/lib/bundler/injector.rb
+++ b/lib/bundler/injector.rb
@@ -84,9 +84,6 @@ module Bundler
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