leftright 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/WHATSNEW CHANGED
@@ -1,3 +1,7 @@
1
+ * 0.0.3 (2009-11-03):
2
+ - Removed 'XMLOBJECT_GEMSPEC' from gemspec (copy & paste gone wrong) :(
3
+ - Changed the TestCase collector to work like Test::Unit's.
4
+
1
5
  * 0.0.2 (2009-10-28):
2
6
  - Added this file. :)
3
7
  - Fixed http://github.com/jordi/leftright/issues/#issue/1 which prevented
data/leftright.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'lib/leftright/version'
2
2
 
3
- XMLOBJECT_GEMSPEC = Gem::Specification.new do |gem|
3
+ Gem::Specification.new do |gem|
4
4
  gem.name = 'leftright'
5
5
  gem.version = LeftRight::VERSION
6
6
 
data/lib/leftright.rb CHANGED
@@ -35,20 +35,14 @@ module LeftRight
35
35
  end
36
36
  end
37
37
 
38
- # Gets all descendants of Class that also happen to be descendants of
39
- # Test::Unit::TestCase that have non-inherited instance methods that
40
- # begin with the word 'test':
38
+ # Gets all descendants of Class that also descend from Test::Unit::TestCase
41
39
  #
42
40
  def self.testcase_classes
43
41
  @testcase_classes ||= begin
44
42
  found = []
45
43
 
46
44
  ObjectSpace.each_object(Class) do |klass|
47
- if Test::Unit::TestCase > klass &&
48
- klass.instance_methods(false).detect { |m| 'test' == m.to_s[0,4] }
49
-
50
- found << klass
51
- end
45
+ found << klass if Test::Unit::TestCase > klass
52
46
  end
53
47
 
54
48
  found
@@ -1,3 +1,3 @@
1
1
  module LeftRight
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leftright
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordi Bunster
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-28 00:00:00 -04:00
12
+ date: 2009-11-06 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies: []
15
15