autotest-standalone 4.5.3 → 4.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION +1 -1
- data/autotest-standalone.gemspec +3 -4
- data/lib/autotest.rb +7 -2
- data/test/test_autotest.rb +5 -0
- metadata +6 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.5.
|
1
|
+
4.5.4
|
data/autotest-standalone.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{autotest-standalone}
|
8
|
-
s.version = "4.5.
|
8
|
+
s.version = "4.5.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Ryan Davis", "Michael Grosser"]
|
12
|
-
s.date = %q{2011-01-
|
12
|
+
s.date = %q{2011-01-16}
|
13
13
|
s.executables = ["autotest", "unit_diff"]
|
14
14
|
s.files = [
|
15
15
|
".autotest",
|
@@ -42,7 +42,7 @@ Gem::Specification.new do |s|
|
|
42
42
|
s.homepage = %q{http://github.com/grosser/autotest}
|
43
43
|
s.rdoc_options = ["--charset=UTF-8"]
|
44
44
|
s.require_paths = ["lib"]
|
45
|
-
s.rubygems_version = %q{1.
|
45
|
+
s.rubygems_version = %q{1.4.2}
|
46
46
|
s.summary = %q{Autotest, without ZenTest}
|
47
47
|
s.test_files = [
|
48
48
|
"test/test_autotest_integration.rb",
|
@@ -52,7 +52,6 @@ Gem::Specification.new do |s|
|
|
52
52
|
]
|
53
53
|
|
54
54
|
if s.respond_to? :specification_version then
|
55
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
56
55
|
s.specification_version = 3
|
57
56
|
|
58
57
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
data/lib/autotest.rb
CHANGED
@@ -83,7 +83,7 @@ class Autotest
|
|
83
83
|
|
84
84
|
@@discoveries = []
|
85
85
|
|
86
|
-
def self.parse_options
|
86
|
+
def self.parse_options(args = ARGV)
|
87
87
|
require 'optparse'
|
88
88
|
options = {}
|
89
89
|
OptionParser.new do |opts|
|
@@ -144,7 +144,12 @@ class Autotest
|
|
144
144
|
puts opts
|
145
145
|
exit 1
|
146
146
|
end
|
147
|
-
|
147
|
+
|
148
|
+
opts.on "-x", "--extras OPTIONS", Array, "Send command line options to the test framework." do |extra|
|
149
|
+
options[:extras] ||= []
|
150
|
+
options[:extras] << extra
|
151
|
+
end
|
152
|
+
end.parse args
|
148
153
|
|
149
154
|
Autotest.options.merge! options
|
150
155
|
|
data/test/test_autotest.rb
CHANGED
@@ -473,6 +473,11 @@ test_error2(#{@test_class}):
|
|
473
473
|
assert_match @a.testlib, @a.make_test_cmd(f)
|
474
474
|
end
|
475
475
|
|
476
|
+
def test_parse_options_parses_extras
|
477
|
+
result = Autotest.parse_options(['--extras','t,bla'])
|
478
|
+
assert_equal({:extras=>[["t", "bla"]]}, result)
|
479
|
+
end
|
480
|
+
|
476
481
|
def util_exceptions
|
477
482
|
@a.exception_list.sort_by { |r| r.to_s }
|
478
483
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: autotest-standalone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 35
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 4
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 4.5.
|
9
|
+
- 4
|
10
|
+
version: 4.5.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ryan Davis
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2011-01-
|
19
|
+
date: 2011-01-16 00:00:00 +01:00
|
20
20
|
default_executable:
|
21
21
|
dependencies: []
|
22
22
|
|
@@ -86,7 +86,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
86
|
requirements: []
|
87
87
|
|
88
88
|
rubyforge_project:
|
89
|
-
rubygems_version: 1.
|
89
|
+
rubygems_version: 1.4.2
|
90
90
|
signing_key:
|
91
91
|
specification_version: 3
|
92
92
|
summary: Autotest, without ZenTest
|