ZenTest 4.8.4 → 4.9.0

Sign up to get free protection for your applications and to get access to all the features.
data.tar.gz.sig CHANGED
Binary file
@@ -1,3 +1,13 @@
1
+ === 4.9.0 / 2013-02-07
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Allow multiruby installs to be done entirely by symlink, bypassing build
6
+
7
+ * 1 bug fix:
8
+
9
+ * Fixes for maglev.
10
+
1
11
  === 4.8.4 / 2013-01-22
2
12
 
3
13
  * 2 minor enhancements:
@@ -79,7 +79,6 @@ module Multiruby
79
79
 
80
80
  build_dir = File.basename tarball, ".tar.gz"
81
81
  version = build_dir.sub(/^ruby-?/, '')
82
- versions << version
83
82
  inst_dir = "#{root_dir}/install/#{version}"
84
83
 
85
84
  unless test ?d, inst_dir then
@@ -115,6 +114,8 @@ module Multiruby
115
114
  end
116
115
  end
117
116
  end
117
+
118
+ versions = Dir["install/*"].map { |path| File.basename path }
118
119
  end
119
120
 
120
121
  versions
@@ -4,8 +4,14 @@ if (defined? RUBY_ENGINE) && RUBY_ENGINE == 'jruby'
4
4
  end
5
5
 
6
6
  $stdlib = {}
7
- ObjectSpace.each_object(Module) do |m|
8
- $stdlib[m.name] = true if m.respond_to? :name
7
+ if ObjectSpace.respond_to?(:loaded_classes, true) then
8
+ ObjectSpace.loaded_classes(true).each do |m|
9
+ $stdlib[m.name] = true if m.respond_to? :name
10
+ end
11
+ else
12
+ ObjectSpace.each_object(Module) do |m|
13
+ $stdlib[m.name] = true if m.respond_to? :name
14
+ end
9
15
  end
10
16
 
11
17
  require 'zentest_mapping'
@@ -58,7 +64,7 @@ end
58
64
 
59
65
  class ZenTest
60
66
 
61
- VERSION = '4.8.4'
67
+ VERSION = '4.9.0'
62
68
 
63
69
  include ZenTestMapping
64
70
 
@@ -96,21 +102,13 @@ class ZenTest
96
102
  end
97
103
  end
98
104
 
99
- # obtain the class klassname, either from Module or
100
- # using ObjectSpace to search for it.
105
+ # obtain the class klassname
101
106
  def get_class(klassname)
107
+ klass = nil
102
108
  begin
103
109
  klass = klassname.split(/::/).inject(Object) { |k,n| k.const_get n }
104
110
  puts "# found class #{klass.name}" if $DEBUG
105
111
  rescue NameError
106
- ObjectSpace.each_object(Class) do |cls|
107
- if cls.name =~ /(^|::)#{klassname}$/ then
108
- klass = cls
109
- klassname = cls.name
110
- break
111
- end
112
- end
113
- puts "# searched and found #{klass.name}" if klass and $DEBUG
114
112
  end
115
113
 
116
114
  if klass.nil? and not $TESTING then
@@ -34,7 +34,7 @@ class TestAutotest < MiniTest::Unit::TestCase
34
34
 
35
35
  alias :deny :refute
36
36
 
37
- RUBY = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']) unless defined? RUBY
37
+ RUBY = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
38
38
 
39
39
  def setup
40
40
  @test_class = 'TestBlah'
@@ -33,9 +33,9 @@ class SuperDuper # ZenTest SKIP
33
33
  end
34
34
 
35
35
  class LowlyOne < SuperDuper # ZenTest SKIP
36
- def self.cls_extended; end
36
+ def self.cls_xtended; end
37
37
  def overridden; end
38
- def extended; end
38
+ def xtended; end # renamed because maglev defines it globally :/
39
39
  def pretty_print; end
40
40
  def pretty_print_cycle; end
41
41
  end
@@ -408,9 +408,9 @@ end
408
408
 
409
409
  def test_get_methods_for_subclass
410
410
  expect = {
411
- "self.cls_extended" => true,
411
+ "self.cls_xtended" => true,
412
412
  "overridden" => true,
413
- "extended" => true
413
+ "xtended" => true
414
414
  }
415
415
  result = @tester.get_methods_for("LowlyOne")
416
416
 
@@ -420,9 +420,9 @@ end
420
420
  def test_get_methods_for_subclass_full
421
421
  expect = {
422
422
  "self.cls_inherited" => true,
423
- "self.cls_extended" => true,
423
+ "self.cls_xtended" => true,
424
424
  "overridden" => true,
425
- "extended" => true
425
+ "xtended" => true
426
426
  }
427
427
  result = @tester.get_methods_for("LowlyOne", true)
428
428
 
@@ -556,6 +556,8 @@ assert_equal expected, util_testcase("Something2::Blah2", "TestSomething2::TestB
556
556
  end
557
557
 
558
558
  def test_testcase9
559
+ skip "doesn't define to_s on TrueClass?!?" if maglev?
560
+
559
561
  # stupid YAML is breaking my tests. Enters via Test::Rails. order dependent.
560
562
  if defined? YAML then
561
563
  TrueClass.send :remove_method, :taguri, :taguri=, :to_yaml rescue nil
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ZenTest
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 4
8
- - 8
9
- - 4
10
- version: 4.8.4
8
+ - 9
9
+ - 0
10
+ version: 4.9.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Davis
@@ -37,7 +37,7 @@ cert_chain:
37
37
  FBHgymkyj/AOSqKRIpXPhjC6
38
38
  -----END CERTIFICATE-----
39
39
 
40
- date: 2013-01-23 00:00:00 Z
40
+ date: 2013-02-07 00:00:00 Z
41
41
  dependencies:
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: minitest
@@ -47,11 +47,11 @@ dependencies:
47
47
  requirements:
48
48
  - - ~>
49
49
  - !ruby/object:Gem::Version
50
- hash: 19
50
+ hash: 17
51
51
  segments:
52
52
  - 4
53
- - 4
54
- version: "4.4"
53
+ - 5
54
+ version: "4.5"
55
55
  type: :development
56
56
  version_requirements: *id001
57
57
  - !ruby/object:Gem::Dependency
@@ -202,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
202
  requirements: []
203
203
 
204
204
  rubyforge_project: zentest
205
- rubygems_version: 1.8.24
205
+ rubygems_version: 1.8.25
206
206
  signing_key:
207
207
  specification_version: 3
208
208
  summary: "ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby"
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- p�mQ|[���6���'*��v���a)�ز`��9��vM�&�*صNoG�0R�$�`���i���,c2����Gc�/ 4�/]Ar:6t���� ������{ =��GN���[�~�,
2
- tCG��)��*��/ʴ���-p
1
+ x������4�ʆ��CU��eG0�ך�����O�@A����+s̩$WL;�p�ɺ��)���;���V 2C���{ �����`�T��jK��5�����=Uy) i:�pȗgѨ������DN2���wc#d/c��&k
2
+ I��4y�/5�=�� ��MC2��7LT_���[xm@I7���ʳ�U�Z�бQ�i&1~n��ڽ