Browse files

Remove trailing whitespace

  • Loading branch information...
1 parent 86c7be0 commit 5818e9d7fadebd6237f71c5c19539e996cc58df0 @sferik sferik committed Jul 7, 2012
View
12 History.txt
@@ -367,7 +367,7 @@ Bug Fixes:
* Added Gem::Specification#dependent_specs.
* Added Gem::TestCase#new_spec and Gem::TestCase#install_specs.
* Added flag to include prerelease gems in Gem::SourceIndex#latest_specs.
-* Gem.cache_dir always references the proper cache dir.
+* Gem.cache_dir always references the proper cache dir.
Pass true to support a user path.
* Gem.cache_gem, given a filename always references the cache gem.
Pass true to support a user path.
@@ -1278,9 +1278,9 @@ There has been some minor usability enhancements and changes ...
have unit tests.
* Multiple gem names are allowed on the gem install command line.
This means you can do:
-
+
gem install rake rails needle postgres-pr pimki
-
+
(Ok, you get the idea)
* Multiple authors my be specified in a Gem spec.
* Switched to using setup.rb (rather than a custom install script) for
@@ -1336,7 +1336,7 @@ See ChangeLog
* new #required_ruby_version attribute added to gem specification for
specifying a dependency on which version of ruby the gem needs. Format it
accepts is the same as the Gem::Version::Requirement format:
-
+
spec.required_ruby_version = "> 1.8.0"
* --install-stub defaults to true, so library stubs are created
@@ -1346,15 +1346,15 @@ See ChangeLog
incompatibilities. This has been the subject of much debate for the past
couple of months, with many ideas and code contributed by Eivind Eklund and
Mauricio Fernandez. The following set of assertions shows how it works:
-
+
assert_inadequate("1.3", "~> 1.4")
assert_adequate( "1.4", "~> 1.4")
assert_adequate( "1.5", "~> 1.4")
assert_inadequate("2.0", "~> 1.4") # This one is key--the new operator
# disallows major version number
# differences.
* Group gem search output when multiple versions exist for a given gem:
-
+
activerecord (0.7.8, 0.7.7, 0.7.6, 0.7.5)
Implements the ActiveRecord pattern for ORM.
* Add arbitrary RDoc-able files via gemspec (not just Ruby source files) for
View
4 lib/rubygems.rb
@@ -111,7 +111,7 @@ module Gem
module Gem
RUBYGEMS_DIR = File.dirname File.expand_path(__FILE__)
-
+
##
# An Array of Regexps that match windows ruby platforms.
@@ -1264,7 +1264,7 @@ def gem(gem_name, *requirements) # :doc:
# the package is loaded as a gem, return the gem specific data directory.
# Otherwise return a path to the share area as define by
# "#{ConfigMap[:datadir]}/#{package_name}".
-#
+#
# REFACTOR: This should be pulled out into some kind of compatiblity file
# with all the hacks to other stuff.
#
View
2 lib/rubygems/dependency.rb
@@ -123,7 +123,7 @@ def requirement
#
# Children, define explicit marshal and unmarshal behavior for
# public classes. Marshal formats are part of your public API.
-
+
# REFACTOR: See above
if defined?(@version_requirement) && @version_requirement
View
2 lib/rubygems/installer.rb
@@ -77,7 +77,7 @@ def exec_format
##
# Constructs an Installer instance that will install the gem located at
# +gem+. +options+ is a Hash with the following keys:
- #
+ #
# :bin_dir:: Where to put a bin wrapper if needed.
# :development:: Whether or not development dependencies should be installed.
# :env_shebang:: Use /usr/bin/env in bin wrappers.
View
2 lib/rubygems/name_tuple.rb
@@ -91,7 +91,7 @@ def <=> other
def == other
case other
when self.class
- @name == other.name and
+ @name == other.name and
@version == other.version and
@platform == other.platform
when Array
View
4 lib/rubygems/requirement.rb
@@ -41,7 +41,7 @@ class BadRequirementError < ArgumentError; end
#
# If the input is "weird", the default version requirement is
# returned.
-
+
# REFACTOR: There's no reason that this can't be unified with .new.
# .new is the standard Ruby factory method.
@@ -124,7 +124,7 @@ def initialize *requirements
##
# true if this gem has no requirements.
-
+
# FIX: maybe this should be using #default ?
def none?
if @requirements.size == 1
View
2 lib/rubygems/security.rb
@@ -154,7 +154,7 @@
# -K, --private-key KEY Key for --sign or --build
# -s, --sign CERT Signs CERT with the key from -K
# and the certificate from -C
-#
+#
# We've already covered the <code>--build</code> option, and the
# <code>--add</code>, <code>--list</code>, and <code>--remove</code> commands
# seem fairly straightforward; they allow you to add, list, and remove the
View
4 lib/rubygems/source_local.rb
@@ -22,11 +22,11 @@ def load_specs(type)
case type
when :released
unless pkg.spec.version.prerelease?
- names << pkg.spec.name_tuple
+ names << pkg.spec.name_tuple
end
when :prerelease
if pkg.spec.version.prerelease?
- names << pkg.spec.name_tuple
+ names << pkg.spec.name_tuple
end
when :latest
tup = pkg.spec.name_tuple
View
2 lib/rubygems/spec_fetcher.rb
@@ -183,7 +183,7 @@ def suggest_gems_from_name gem_name
# :complete => Return the list of all specs
# :latest => Return the list of only the highest version of each gem
# :prerelease => Return the list of all prerelease only specs
- #
+ #
def available_specs(type)
errors = []
View
BIN test/rubygems/data/null-type.gemspec.rz
Binary file not shown.
View
2 test/rubygems/plugin/exception/rubygems_plugin.rb
@@ -1,2 +1,2 @@
TestGem::TEST_PLUGIN_EXCEPTION = :loaded
-raise Exception.new('boom')
+raise Exception.new('boom')
View
2 test/rubygems/plugin/standarderror/rubygems_plugin.rb
@@ -1,2 +1,2 @@
TestGem::TEST_PLUGIN_STANDARDERROR = :loaded
-raise StandardError.new('boom')
+raise StandardError.new('boom')
View
2 test/rubygems/rubygems/commands/crash_command.rb
@@ -2,4 +2,4 @@ class Gem::Commands::CrashCommand < Gem::Command
raise "crash"
-end
+end
View
4 test/rubygems/test_gem_dependency_resolver.rb
@@ -155,12 +155,12 @@ def test_raises_dependency_error
deps = [make_dep("c", "= 2"), make_dep("c", "= 1")]
assert_equal deps, e.conflicting_dependencies
-
+
con = e.conflict
act = con.activated
assert_equal "c-1", act.spec.full_name
-
+
parent = act.parent
assert_equal "a-1", parent.spec.full_name

0 comments on commit 5818e9d

Please sign in to comment.