aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 08:10:23 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-29 08:10:23 +0000
commitcf1d6730c1a850d885632477fb9f5463cc46035d (patch)
treec023bd44e0f66da6f3ed794adbc67913de9ff9a4 /lib
parent0a7d24cc5aa8d0066e123a9b0594ac6fba9ad60a (diff)
downloadruby-cf1d6730c1a850d885632477fb9f5463cc46035d.tar.gz
remove trainling spaces
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37983 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-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?