diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-30 08:45:55 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-12-30 08:45:55 +0000 |
| commit | b6074e51f2f9442153aa4da74cd6a7782274efe4 (patch) | |
| tree | 87f0cf3262740936b466247d25e2bf6fa84d8326 /lib/rubygems/validator.rb | |
| parent | d7500edcf7b5226adf10406b7ecde11b5809d153 (diff) | |
| download | ruby-b6074e51f2f9442153aa4da74cd6a7782274efe4.tar.gz ruby-b6074e51f2f9442153aa4da74cd6a7782274efe4.tar.xz ruby-b6074e51f2f9442153aa4da74cd6a7782274efe4.zip | |
* lib/rubygems/source_index.rb (Gem#load_specification): don't use
RUBY_VERSION to branch.
* lib/rubygems/validator.rb (Gem::TestRunner, Gem#alien): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@26199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rubygems/validator.rb')
| -rw-r--r-- | lib/rubygems/validator.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rubygems/validator.rb b/lib/rubygems/validator.rb index f568227b9..c8384f158 100644 --- a/lib/rubygems/validator.rb +++ b/lib/rubygems/validator.rb @@ -167,6 +167,7 @@ class Gem::Validator errors end +=begin if RUBY_VERSION < '1.9' then class TestRunner def initialize(suite, ui) @@ -194,6 +195,7 @@ class Gem::Validator autoload :TestRunner, 'test/unit/ui/testrunnerutilities' end +=end ## # Runs unit tests for a given gem specification @@ -214,6 +216,7 @@ class Gem::Validator test_files.each do |f| require f end +=begin if RUBY_VERSION < '1.9' then suite = Test::Unit::TestSuite.new("#{gem_spec.name}-#{gem_spec.version}") @@ -228,6 +231,9 @@ class Gem::Validator result = MiniTest::Unit.new result.run end +=end + result = MiniTest::Unit.new + result.run result ensure |
