leftright 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/WHATSNEW +7 -0
- data/leftright.gemspec +1 -0
- data/lib/leftright.rb +12 -3
- data/lib/leftright/version.rb +1 -1
- metadata +2 -1
data/WHATSNEW
ADDED
data/leftright.gemspec
CHANGED
data/lib/leftright.rb
CHANGED
@@ -40,9 +40,18 @@ module LeftRight
|
|
40
40
|
# begin with the word 'test':
|
41
41
|
#
|
42
42
|
def self.testcase_classes
|
43
|
-
@testcase_classes ||=
|
44
|
-
|
45
|
-
|
43
|
+
@testcase_classes ||= begin
|
44
|
+
found = []
|
45
|
+
|
46
|
+
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
|
52
|
+
end
|
53
|
+
|
54
|
+
found
|
46
55
|
end
|
47
56
|
end
|
48
57
|
|
data/lib/leftright/version.rb
CHANGED
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.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jordi Bunster
|
@@ -24,6 +24,7 @@ extra_rdoc_files: []
|
|
24
24
|
files:
|
25
25
|
- MIT-LICENSE
|
26
26
|
- README.rdoc
|
27
|
+
- WHATSNEW
|
27
28
|
- leftright.gemspec
|
28
29
|
- lib/leftright.rb
|
29
30
|
- lib/leftright/autorun.rb
|