aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-05-22 13:19:06 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-05 07:32:42 +0900
commitc91915c1838e2492a433b00179f0cef5d72abde0 (patch)
tree70bcb79f9425b4dfc67b9883e99a3d0a7381ba4d /lib
parent1feffe12d444dc3585abf07e3e7b1b4bcffe3ca7 (diff)
downloadruby-c91915c1838e2492a433b00179f0cef5d72abde0.tar.gz
[rubygems/rubygems] Fix typo
Co-authored-by: Carsten Wirth <carsten.wirth@homeday.de> https://github.com/rubygems/rubygems/commit/c7c5ca68db
Diffstat (limited to 'lib')
-rw-r--r--lib/bundler/injector.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/injector.rb b/lib/bundler/injector.rb
index 2cdda578e2..767c5ff2fe 100644
--- a/lib/bundler/injector.rb
+++ b/lib/bundler/injector.rb
@@ -183,7 +183,7 @@ module Bundler
# remove lines which match the regex
new_gemfile = IO.readlines(gemfile_path).reject {|line| line.match(patterns) }
- # remove lone \n and append them with other strings
+ # remove line \n and append them with other strings
new_gemfile.each_with_index do |_line, index|
if new_gemfile[index + 1] == "\n"
new_gemfile[index] += new_gemfile[index + 1]