summaryrefslogtreecommitdiff
path: root/lib/rubygems/deprecate.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2019-06-04 10:40:30 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2019-07-31 07:47:02 +0800
commit497efa0ec924b5124309b99a5c5b8f848fc5a632 (patch)
tree1e103a1f0bef42f553138b980aeced8b1315f393 /lib/rubygems/deprecate.rb
parent0817d95714bc73cef7a4eb6cdfc50a1c5ea4a6c1 (diff)
downloadruby-497efa0ec924b5124309b99a5c5b8f848fc5a632.tar.gz
[rubygems/rubygems] Enable `Layout/AlignArray` cop
https://github.com/rubygems/rubygems/commit/1ea674d8f7
Diffstat (limited to 'lib/rubygems/deprecate.rb')
-rw-r--r--lib/rubygems/deprecate.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/deprecate.rb b/lib/rubygems/deprecate.rb
index b5591e6ac1..8accfb6174 100644
--- a/lib/rubygems/deprecate.rb
+++ b/lib/rubygems/deprecate.rb
@@ -55,9 +55,9 @@ module Gem::Deprecate
klass = self.kind_of? Module
target = klass ? "#{self}." : "#{self.class}#"
msg = [ "NOTE: #{target}#{name} is deprecated",
- repl == :none ? " with no replacement" : "; use #{repl} instead",
- ". It will be removed on or after %4d-%02d-01." % [year, month],
- "\n#{target}#{name} called from #{Gem.location_of_caller.join(":")}",
+ repl == :none ? " with no replacement" : "; use #{repl} instead",
+ ". It will be removed on or after %4d-%02d-01." % [year, month],
+ "\n#{target}#{name} called from #{Gem.location_of_caller.join(":")}",
]
warn "#{msg.join}." unless Gem::Deprecate.skip
send old, *args, &block