rake_tasks 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/README +7 -1
- data/lib/rake_tasks/test.rb +6 -1
- data/rake_tasks.gemspec +1 -1
- metadata +5 -5
data/Gemfile.lock
CHANGED
data/README
CHANGED
@@ -58,7 +58,7 @@ The default task will be set in the following order:
|
|
58
58
|
|
59
59
|
2. Require the gem in your Gemfile:
|
60
60
|
|
61
|
-
gem 'rake_tasks', '~> 2.0.
|
61
|
+
gem 'rake_tasks', '~> 2.0.2'
|
62
62
|
|
63
63
|
3. Require the gem wherever you need to use it:
|
64
64
|
|
@@ -66,6 +66,12 @@ The default task will be set in the following order:
|
|
66
66
|
|
67
67
|
== Updates
|
68
68
|
|
69
|
+
2.0.2 test:[test_file] will now run all the tests in the specified file
|
70
|
+
if a method is not specified. It should be noted that 'test_file' is
|
71
|
+
the name of the file with the test pattern removed
|
72
|
+
(i.e. 'my_module_test.rb' => 'my_module',
|
73
|
+
'test_my_module.rb' => 'my_module').
|
74
|
+
|
69
75
|
2.0.1 Added test:full task (requires rvm).
|
70
76
|
|
71
77
|
test:full allows a user to run tests against multiple ruby/gemset/rake
|
data/lib/rake_tasks/test.rb
CHANGED
@@ -54,7 +54,12 @@ if RakeTasks::Tests.exist?
|
|
54
54
|
RakeTasks::Tests.file_list.each do |file_path|
|
55
55
|
desc "Run individual tests in #{file_path}."
|
56
56
|
task RakeTasks::Tests.task_name(file_path), [:method_name] do |t, args|
|
57
|
-
|
57
|
+
cmd = ['ruby', "./#{file_path}"]
|
58
|
+
if args[:method_name] and !args[:method_name].strip.empty?
|
59
|
+
cmd << ['--name', args[:method_name]]
|
60
|
+
end
|
61
|
+
pid = Process.spawn(*cmd.flatten)
|
62
|
+
Process.wait(pid)
|
58
63
|
end
|
59
64
|
end
|
60
65
|
|
data/rake_tasks.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2011-12-09 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mocha
|
16
|
-
requirement: &
|
16
|
+
requirement: &9032340 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 0.10.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *9032340
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: fakefs
|
27
|
-
requirement: &
|
27
|
+
requirement: &9031700 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: 0.4.0
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *9031700
|
36
36
|
description: ! 'RakeTasks provides basic rake tasks for generating documentation,
|
37
37
|
|
38
38
|
building and installing gems, and running tests.
|