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 CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake_tasks (2.0.1)
4
+ rake_tasks (2.0.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
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.1'
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
@@ -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
- puts `ruby ./#{file_path} --name #{args[:method_name]}`
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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'rake_tasks'
3
- s.version = '2.0.1'
3
+ s.version = '2.0.2'
4
4
 
5
5
  s.summary = 'Basic rake tasks. You know you want some.'
6
6
  s.description =%Q{
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.1
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: &19696180 !ruby/object:Gem::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: *19696180
24
+ version_requirements: *9032340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: fakefs
27
- requirement: &19695500 !ruby/object:Gem::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: *19695500
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.