parallel_tests 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parallel_tests (0.8.1)
4
+ parallel_tests (0.8.2)
5
5
  parallel
6
6
 
7
7
  GEM
@@ -18,7 +18,7 @@ GEM
18
18
  gherkin (2.7.6)
19
19
  json (>= 1.4.6)
20
20
  json (1.6.4)
21
- parallel (0.5.15)
21
+ parallel (0.5.16)
22
22
  rake (0.8.7)
23
23
  rspec (2.6.0)
24
24
  rspec-core (~> 2.6.0)
data/Readme.md CHANGED
@@ -210,6 +210,7 @@ inspired by [pivotal labs](http://pivotallabs.com/users/miked/blog/articles/849-
210
210
  - [Pedro Carriço](https://github.com/pedrocarrico)
211
211
  - [Pablo Manrubia Díez](https://github.com/pmanrubia)
212
212
  - [Slawomir Smiechura](https://github.com/ssmiech)
213
+ - [Georg Friedrich](https://github.com/georg)
213
214
 
214
215
  [Michael Grosser](http://grosser.it)<br/>
215
216
  michael@grosser.it<br/>
@@ -1,4 +1,6 @@
1
1
  namespace :parallel do
2
+ rails_env = ENV['RAILS_ENV'] || 'test'
3
+
2
4
  def run_in_parallel(cmd, options)
3
5
  count = "-n #{options[:count]}" if options[:count]
4
6
  executable = File.join(File.dirname(__FILE__), '..', '..', 'bin', 'parallel_test')
@@ -8,12 +10,12 @@ namespace :parallel do
8
10
 
9
11
  desc "create test databases via db:create --> parallel:create[num_cpus]"
10
12
  task :create, :count do |t,args|
11
- run_in_parallel('rake db:create RAILS_ENV=test', args)
13
+ run_in_parallel("rake db:create RAILS_ENV=#{rails_env}", args)
12
14
  end
13
15
 
14
16
  desc "drop test databases via db:drop --> parallel:drop[num_cpus]"
15
17
  task :drop, :count do |t,args|
16
- run_in_parallel('rake db:drop RAILS_ENV=test', args)
18
+ run_in_parallel("rake db:drop RAILS_ENV=#{rails_env}", args)
17
19
  end
18
20
 
19
21
  desc "update test databases by dumping and loading --> parallel:prepare[num_cpus]"
@@ -32,18 +34,18 @@ namespace :parallel do
32
34
  # when dumping/resetting takes too long
33
35
  desc "update test databases via db:migrate --> parallel:migrate[num_cpus]"
34
36
  task :migrate, :count do |t,args|
35
- run_in_parallel('rake db:migrate RAILS_ENV=test', args)
37
+ run_in_parallel("rake db:migrate RAILS_ENV=#{rails_env}", args)
36
38
  end
37
39
 
38
40
  # just load the schema (good for integration server <-> no development db)
39
41
  desc "load dumped schema for test databases via db:schema:load --> parallel:load_schema[num_cpus]"
40
42
  task :load_schema, :count do |t,args|
41
- run_in_parallel('rake db:test:load', args)
43
+ run_in_parallel("rake db:schema:load RAILS_ENV=#{rails_env}", args)
42
44
  end
43
45
 
44
46
  desc "load the seed data from db/seeds.rb via db:seed --> parallel:seed[num_cpus]"
45
47
  task :seed, :count do |t,args|
46
- run_in_parallel('rake db:seed RAILS_ENV=test', args)
48
+ run_in_parallel("rake db:seed RAILS_ENV=#{rails_env}", args)
47
49
  end
48
50
 
49
51
  ['test', 'spec', 'features'].each do |type|
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '0.8.1'
2
+ VERSION = Version = '0.8.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.8.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-05 00:00:00.000000000 Z
12
+ date: 2012-05-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: parallel
@@ -89,7 +89,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
89
89
  version: '0'
90
90
  segments:
91
91
  - 0
92
- hash: 2085209291365411604
92
+ hash: -3167291477339384586
93
93
  required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
@@ -98,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  version: '0'
99
99
  segments:
100
100
  - 0
101
- hash: 2085209291365411604
101
+ hash: -3167291477339384586
102
102
  requirements: []
103
103
  rubyforge_project:
104
104
  rubygems_version: 1.8.24