rubygems-test 0.3.3 → 0.3.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/README.txt +2 -0
- data/Rakefile +1 -1
- data/lib/rubygems/commands/test_command.rb +7 -3
- metadata +3 -3
data/README.txt
CHANGED
@@ -17,6 +17,7 @@ live in the 'test_options' subsection, e.g.:
|
|
17
17
|
auto_test_on_install: true
|
18
18
|
test_on_install: true
|
19
19
|
install_development_dependencies: true
|
20
|
+
test_development_dependencies: false
|
20
21
|
upload_results: false
|
21
22
|
force_install: false
|
22
23
|
force_uninstall_on_failure: false
|
@@ -29,6 +30,7 @@ The options:
|
|
29
30
|
auto_test_on_install:: runs the unit tests when 'gem install' is invoked.
|
30
31
|
test_on_install:: offer to test on install in general. 'auto_test_on_install' overrides this.
|
31
32
|
install_development_dependencies:: automatically install the development dependencies when testing. This is recommended.
|
33
|
+
test_development_dependencies:: recursively test dev dependencies installed by rubygems-test. This can significantly increase the time it takes to install a gem.
|
32
34
|
upload_results:: upload results to http://gem-testers.org.
|
33
35
|
upload_service_url:: Set to a URL, it will upload to that service instead.
|
34
36
|
force_install:: always install, even on test failures.
|
data/Rakefile
CHANGED
@@ -129,6 +129,7 @@ class Gem::Commands::TestCommand < Gem::Command
|
|
129
129
|
di = Gem::DependencyInstaller.new
|
130
130
|
end
|
131
131
|
|
132
|
+
$RG_T_INSTALLING_DEPENDENCIES = true
|
132
133
|
spec.development_dependencies.each do |dep|
|
133
134
|
unless Gem.source_index.search(dep).last
|
134
135
|
if config["install_development_dependencies"] || Gem.configuration.verbose == false
|
@@ -145,6 +146,8 @@ class Gem::Commands::TestCommand < Gem::Command
|
|
145
146
|
end
|
146
147
|
end
|
147
148
|
end
|
149
|
+
$RG_T_INSTALLING_DEPENDENCIES = false
|
150
|
+
true
|
148
151
|
end
|
149
152
|
|
150
153
|
#
|
@@ -394,9 +397,10 @@ class Gem::Commands::TestCommand < Gem::Command
|
|
394
397
|
find_rakefile(spec)
|
395
398
|
rake_path = find_rake
|
396
399
|
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
+
unless $RG_T_INSTALLING_DEPENDENCIES and !config["test_development_dependencies"]
|
401
|
+
install_dependencies(spec)
|
402
|
+
run_tests(spec, rake_path)
|
403
|
+
end
|
400
404
|
else
|
401
405
|
say "Gem '#{name}' (version #{version}) needs to opt-in for testing."
|
402
406
|
say ""
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: rubygems-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.3.
|
5
|
+
version: 0.3.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Erik Hollensbe
|
@@ -11,7 +11,7 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-02-
|
14
|
+
date: 2011-02-09 00:00:00 -05:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
requirements:
|
34
34
|
- - ">="
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 2.9.
|
36
|
+
version: 2.9.1
|
37
37
|
type: :development
|
38
38
|
version_requirements: *id002
|
39
39
|
description: " This installs three major features:\n\n * a 'gem test' command.\n * the ability to test your gems on installation, and uninstall them if they fail testing.\n * A facility to upload your test results to http://www.gem-testers.org.\n"
|