[前][次][番号順一覧][スレッド一覧]

ruby-changes:13371

From: nobu <ko1@a...>
Date: Tue, 29 Sep 2009 08:27:35 +0900 (JST)
Subject: [ruby-changes:13371] Ruby:r25141: * lib/gauntlet_rubygems.rb: out of place.

nobu	2009-09-29 08:27:17 +0900 (Tue, 29 Sep 2009)

  New Revision: 25141

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25141

  Log:
    * lib/gauntlet_rubygems.rb: out of place.

  Removed files:
    trunk/lib/gauntlet_rubygems.rb

Index: lib/gauntlet_rubygems.rb
===================================================================
--- lib/gauntlet_rubygems.rb	(revision 25140)
+++ lib/gauntlet_rubygems.rb	(revision 25141)
@@ -1,50 +0,0 @@
-require 'rubygems'
-require 'gauntlet'
-
-##
-# GemGauntlet validates all current gems. Currently these packages are
-# borked:
-#
-# Asami-0.04           : No such file or directory - bin/Asami.rb
-# ObjectGraph-1.0.1    : No such file or directory - bin/objectgraph
-# evil-ruby-0.1.0      : authors must be Array of Strings
-# fresh_cookies-1.0.0  : authors must be Array of Strings
-# plugems_deploy-0.2.0 : authors must be Array of Strings
-# pmsrb-0.2.0          : authors must be Array of Strings
-# pqa-1.6              : authors must be Array of Strings
-# rant-0.5.7           : authors must be Array of Strings
-# rvsh-0.4.5           : No such file or directory - bin/rvsh
-# xen-0.1.2.1          : authors must be Array of Strings
-
-class GemGauntlet < Gauntlet
-  def run(name)
-    warn name
-
-    spec = begin
-             Gem::Specification.load 'gemspec'
-           rescue SyntaxError
-             Gem::Specification.from_yaml File.read('gemspec')
-           end
-    spec.validate
-
-    self.data[name] = false
-    self.dirty = true
-  rescue SystemCallError, Gem::InvalidSpecificationException => e
-    self.data[name] = e.message
-    self.dirty = true
-  end
-
-  def should_skip?(name)
-    self.data[name] == false
-  end
-
-  def report
-    self.data.sort.reject { |k,v| !v }.each do |k,v|
-      puts "%-21s: %s" % [k, v]
-    end
-  end
-end
-
-gauntlet = GemGauntlet.new
-gauntlet.run_the_gauntlet ARGV.shift
-gauntlet.report

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]