diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 08:10:23 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-29 08:10:23 +0000 |
commit | cf1d6730c1a850d885632477fb9f5463cc46035d (patch) | |
tree | c023bd44e0f66da6f3ed794adbc67913de9ff9a4 /lib/rubygems | |
parent | 0a7d24cc5aa8d0066e123a9b0594ac6fba9ad60a (diff) | |
download | ruby-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/rubygems')
-rw-r--r-- | lib/rubygems/commands/yank_command.rb | 2 | ||||
-rw-r--r-- | lib/rubygems/specification.rb | 4 |
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? |