ZenTest 4.1.3 → 4.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +12 -0
- data/articles/getting_started_with_autotest.html +1 -1
- data/bin/multiruby_setup +1 -1
- data/lib/autotest.rb +12 -23
- data/lib/multiruby.rb +1 -1
- data/lib/zentest.rb +1 -1
- data/test/test_autotest.rb +11 -1
- metadata +5 -26
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -1
data/History.txt
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
=== 4.1.4 / 2009-08-07
|
2
|
+
|
3
|
+
* 2 minor enhancements:
|
4
|
+
|
5
|
+
* Added ability to prepend file mappings in autotest. (irohiroki)
|
6
|
+
* Switched autodiscover to use Gem.find_files.
|
7
|
+
|
8
|
+
* 2 bug fixes:
|
9
|
+
|
10
|
+
* Updated doco for API changes. (David Ruan)
|
11
|
+
* Updated git URL for Rubinius. jbarnette
|
12
|
+
|
1
13
|
=== 4.1.3 / 2009-06-23
|
2
14
|
|
3
15
|
* 1 bug fix:
|
data/bin/multiruby_setup
CHANGED
@@ -61,7 +61,7 @@ ARGV.each do |spec|
|
|
61
61
|
Multiruby.fetch_tar $1
|
62
62
|
ARGV << "build"
|
63
63
|
when /rbx:git:current/ then
|
64
|
-
Multiruby.git_clone "#{Multiruby::RBX_GIT}
|
64
|
+
Multiruby.git_clone "#{Multiruby::RBX_GIT}", "rubinius"
|
65
65
|
ARGV << "build"
|
66
66
|
when /rbx:ln:(.*)/ then
|
67
67
|
Multiruby.rbx_ln $1
|
data/lib/autotest.rb
CHANGED
@@ -106,26 +106,10 @@ class Autotest
|
|
106
106
|
#
|
107
107
|
|
108
108
|
def self.autodiscover
|
109
|
-
|
109
|
+
require 'rubygems'
|
110
110
|
|
111
|
-
|
112
|
-
|
113
|
-
paths.push(*Dir["vendor/plugins/*/lib"])
|
114
|
-
|
115
|
-
begin
|
116
|
-
require 'rubygems'
|
117
|
-
paths.push(*Gem.latest_load_paths)
|
118
|
-
rescue LoadError => e
|
119
|
-
# do nothing
|
120
|
-
end
|
121
|
-
|
122
|
-
paths.each do |d|
|
123
|
-
next unless File.directory? d
|
124
|
-
f = File.join(d, 'autotest', 'discover.rb')
|
125
|
-
if File.exist? f then
|
126
|
-
$: << d unless $:.include? d
|
127
|
-
load f
|
128
|
-
end
|
111
|
+
Gem.find_files("autotest/discover").each do |f|
|
112
|
+
load f
|
129
113
|
end
|
130
114
|
|
131
115
|
@@discoveries.map { |proc| proc.call }.flatten.compact.sort.uniq
|
@@ -542,8 +526,9 @@ class Autotest
|
|
542
526
|
end
|
543
527
|
|
544
528
|
##
|
545
|
-
# Adds a file mapping
|
546
|
-
#
|
529
|
+
# Adds a file mapping, optionally prepending the mapping to the
|
530
|
+
# front of the list if +prepend+ is true. +regexp+ should match a
|
531
|
+
# file path in the codebase. +proc+ is passed a matched filename and
|
547
532
|
# Regexp.last_match. +proc+ should return an array of tests to run.
|
548
533
|
#
|
549
534
|
# For example, if test_helper.rb is modified, rerun all tests:
|
@@ -552,8 +537,12 @@ class Autotest
|
|
552
537
|
# at.files_matching(/^test.*rb$/)
|
553
538
|
# end
|
554
539
|
|
555
|
-
def add_mapping(regexp, &proc)
|
556
|
-
|
540
|
+
def add_mapping(regexp, prepend = false, &proc)
|
541
|
+
if prepend then
|
542
|
+
@test_mappings.unshift [regexp, proc]
|
543
|
+
else
|
544
|
+
@test_mappings.push [regexp, proc]
|
545
|
+
end
|
557
546
|
nil
|
558
547
|
end
|
559
548
|
|
data/lib/multiruby.rb
CHANGED
@@ -53,7 +53,7 @@ module Multiruby
|
|
53
53
|
|
54
54
|
VERSIONS = env('VERSIONS', TAGS.join(":").gsub(/_/, '.')).split(/:/)
|
55
55
|
MRI_SVN = env 'MRI_SVN', 'http://svn.ruby-lang.org/repos/ruby'
|
56
|
-
RBX_GIT = env 'RBX_GIT', 'git://
|
56
|
+
RBX_GIT = env 'RBX_GIT', 'git://github.com/evanphx/rubinius.git'
|
57
57
|
RUBY_URL = env 'RUBY_URL', 'http://ftp.ruby-lang.org/pub/ruby'
|
58
58
|
GEM_URL = env 'GEM_URL', 'http://files.rubyforge.vm.bytemark.co.uk/rubygems'
|
59
59
|
|
data/lib/zentest.rb
CHANGED
data/test/test_autotest.rb
CHANGED
@@ -80,6 +80,16 @@ class TestAutotest < MiniTest::Unit::TestCase
|
|
80
80
|
assert_equal expect, actual
|
81
81
|
end
|
82
82
|
|
83
|
+
def test_add_mapping_front
|
84
|
+
current = util_mappings
|
85
|
+
@a.add_mapping(/blah/, :front) do 42 end
|
86
|
+
|
87
|
+
actual = util_mappings
|
88
|
+
expect = [/blah/] + current
|
89
|
+
|
90
|
+
assert_equal expect, actual
|
91
|
+
end
|
92
|
+
|
83
93
|
def test_clear_exceptions
|
84
94
|
test_add_exception
|
85
95
|
@a.clear_exceptions
|
@@ -428,7 +438,7 @@ test_error2(#{@test_class}):
|
|
428
438
|
end
|
429
439
|
|
430
440
|
def util_mappings
|
431
|
-
@a.test_mappings.map { |k,v| k }
|
441
|
+
@a.test_mappings.map { |k,v| k }
|
432
442
|
end
|
433
443
|
|
434
444
|
def util_path_to_classname(e,i)
|
metadata
CHANGED
@@ -1,37 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ZenTest
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
8
8
|
- Eric Hodel
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
- |
|
13
|
-
-----BEGIN CERTIFICATE-----
|
14
|
-
MIIDPjCCAiagAwIBAgIBADANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
|
15
|
-
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
16
|
-
GRYDY29tMB4XDTA5MDMwNjE4NTMxNVoXDTEw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
|
32
|
-
-----END CERTIFICATE-----
|
11
|
+
cert_chain: []
|
33
12
|
|
34
|
-
date: 2009-
|
13
|
+
date: 2009-08-07 00:00:00 -07:00
|
35
14
|
default_executable:
|
36
15
|
dependencies:
|
37
16
|
- !ruby/object:Gem::Dependency
|
@@ -42,7 +21,7 @@ dependencies:
|
|
42
21
|
requirements:
|
43
22
|
- - ">="
|
44
23
|
- !ruby/object:Gem::Version
|
45
|
-
version: 2.3.
|
24
|
+
version: 2.3.3
|
46
25
|
version:
|
47
26
|
description: |-
|
48
27
|
ZenTest provides 4 different tools: zentest, unit_diff, autotest, and
|
@@ -142,7 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
142
121
|
requirements: []
|
143
122
|
|
144
123
|
rubyforge_project: zentest
|
145
|
-
rubygems_version: 1.3.
|
124
|
+
rubygems_version: 1.3.5
|
146
125
|
signing_key:
|
147
126
|
specification_version: 3
|
148
127
|
summary: "ZenTest provides 4 different tools: zentest, unit_diff, autotest, and multiruby"
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
N�wY:�/xz7{2��&�fG��5�A}��|��@Jx�z߬t3��N�<1�k{&��#��qI�"aǻxB�y�������&ۼ�l�7�~��b����TEǿ��炗������w��;y����y��\/z�9����;?�6�U�z����H��N�y�&�ZF�Y�D��@- �|� ��_� ڈ���l��dFn��D`�B�w�/3�r���z��[Q��y�<�D3��f`�j5�]���̀}�H*�k
|