leftright 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ * 0.0.2 (2009-10-28):
2
+ - Added this file. :)
3
+ - Fixed http://github.com/jordi/leftright/issues/#issue/1 which prevented
4
+ this from working in 1.8.6 (thanks technoweenie).
5
+
6
+ * 0.0.1 (2009-10-28):
7
+ - First release.
@@ -18,6 +18,7 @@ XMLOBJECT_GEMSPEC = Gem::Specification.new do |gem|
18
18
  gem.files = %w[
19
19
  MIT-LICENSE
20
20
  README.rdoc
21
+ WHATSNEW
21
22
  leftright.gemspec
22
23
  lib
23
24
  lib/leftright.rb
@@ -40,9 +40,18 @@ module LeftRight
40
40
  # begin with the word 'test':
41
41
  #
42
42
  def self.testcase_classes
43
- @testcase_classes ||= ObjectSpace.each_object(Class).find_all do |klass|
44
- Test::Unit::TestCase > klass &&
45
- klass.instance_methods(false).detect { |m| 'test' == m.to_s[0,4] }
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
 
@@ -1,3 +1,3 @@
1
1
  module LeftRight
2
- VERSION = '0.0.1'
2
+ VERSION = '0.0.2'
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.1
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