aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems')
-rw-r--r--lib/rubygems/commands/yank_command.rb2
-rw-r--r--lib/rubygems/specification.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/rubygems/commands/yank_command.rb b/lib/rubygems/commands/yank_command.rb
index da0cf7ad3b..df4142d395 100644
--- a/lib/rubygems/commands/yank_command.rb
+++ b/lib/rubygems/commands/yank_command.rb
@@ -29,7 +29,7 @@ class Gem::Commands::YankCommand < Gem::Command
add_option('--undo') do |value, options|
options[:undo] = true
end
-
+
add_option('-k', '--key KEY_NAME',
'Use API key from your gem credentials file') do |value, options|
options[:key] = value
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index 1d290c8af5..d1f8e5e385 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -900,7 +900,7 @@ class Gem::Specification
spec.instance_eval { @specification_version ||= NONEXISTENT_SPECIFICATION_VERSION }
spec.reset_nil_attributes_to_default
-
+
spec
end
@@ -2527,7 +2527,7 @@ class Gem::Specification
##
# Reset nil attributes to their default values to make the spec valid
-
+
def reset_nil_attributes_to_default
nil_attributes = self.class.non_nil_attributes.find_all do |name|
!instance_variable_defined?("@#{name}") || instance_variable_get("@#{name}").nil?