parallelized_specs 0.3.42 → 0.3.43

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ begin
12
12
  gem.email = "jake@instructure.com"
13
13
  gem.homepage = "http://github.com/jakesorce/#{gem.name}"
14
14
  gem.authors = "Jake Sorce, Bryan Madsen, Shawn Meredith"
15
- gem.version = "0.3.42"
15
+ gem.version = "0.3.43"
16
16
  end
17
17
  Jeweler::GemcutterTasks.new
18
18
  rescue LoadError
@@ -13,9 +13,16 @@ namespace :parallel do
13
13
  ParallelizedSpecs.execute_parallel_db('rake db:drop RAILS_ENV=test', args)
14
14
  end
15
15
 
16
- desc "cassandra drop per thread"
16
+ desc "run tasks in parallel"
17
17
  task :optional_task, :task_name, :count do |t, args|
18
- ParallelizedSpecs.execute_parallel_db('rake #{:task_name} RAILS_ENV=test', args)
18
+ tasks = :task_name.split(',')
19
+ if tasks.length == 1
20
+ ParallelizedSpecs.execute_parallel_db("rake #{tasks} RAILS_ENV=test", args)
21
+ else
22
+ tasks.each do |task|
23
+ ParallelizedSpecs.execute_parallel_db("rake #{task} RAILS_ENV=test", args)
24
+ end
25
+ end
19
26
  end
20
27
 
21
28
 
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "parallelized_specs"
8
- s.version = "0.3.42"
8
+ s.version = "0.3.43"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jake Sorce, Bryan Madsen, Shawn Meredith"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallelized_specs
3
3
  version: !ruby/object:Gem::Version
4
- hash: 71
4
+ hash: 69
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 42
10
- version: 0.3.42
9
+ - 43
10
+ version: 0.3.43
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jake Sorce, Bryan Madsen, Shawn Meredith