parallel_tests 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f1b48f4ecffe8fa1d5bb89f269abc3cbf22fe470
4
- data.tar.gz: ea64305ae2ff5347632ab30f9eac5090471d5c7d
3
+ metadata.gz: 0d9f28ec073ea8d44225e62b1711f22c5505899d
4
+ data.tar.gz: 551762cbedf6007ee5daeb2da3c91f209ac9c55b
5
5
  SHA512:
6
- metadata.gz: fc66f927d9ea4dc3b61617789bb601dc50f9fee9cfa56f7a12b455e56f8712995756e37f5b052664f70e7ba6281eb51f0ffe5f383ad187719858da5bd671f99d
7
- data.tar.gz: 1062829bba51c96aa4654e2095eb4f0822c98f725890b687dbccc8ee45a1ebc2e961b094c956a52ff655719e4c0f531b4e7cc1a59166efaaf249e469f0944227
6
+ metadata.gz: 5c73f5d255928fa82985d974bd2abd78926d77bc6ead9994ca943f16e535163af9823072c649c117f4b9b7a2b2cd02e0baa9e1822909edf8c7e58e010e9c0c4b
7
+ data.tar.gz: 3b1b46204e714939cdd4cc6e0a59ce420f69d433453949d3310d3ef3c4a6b6655cb53a01405be338eb836f1f808facf9c47ef6dd2977c0eabb821df183965324
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- parallel_tests (1.0.3)
4
+ parallel_tests (1.0.4)
5
5
  parallel
6
6
 
7
7
  GEM
@@ -24,7 +24,7 @@ GEM
24
24
  gherkin-ruby (0.3.0)
25
25
  multi_json (1.8.2)
26
26
  multi_test (0.0.2)
27
- parallel (1.1.1)
27
+ parallel (1.2.2)
28
28
  rake (10.0.3)
29
29
  rspec (2.13.0)
30
30
  rspec-core (~> 2.13.0)
@@ -81,15 +81,13 @@ namespace :parallel do
81
81
  desc "update test databases by dumping and loading --> parallel:prepare[num_cpus]"
82
82
  task(:prepare, [:count]) do |t,args|
83
83
  ParallelTests::Tasks.check_for_pending_migrations
84
+ # dump then load in parallel for ruby or sql schema formats
84
85
  if defined?(ActiveRecord) && ActiveRecord::Base.schema_format == :ruby
85
- # dump then load in parallel
86
86
  Rake::Task['db:schema:dump'].invoke
87
87
  Rake::Task['parallel:load_schema'].invoke(args[:count])
88
88
  else
89
- # there is no separate dump / load for schema_format :sql -> do it safe and slow
90
- args = args.to_hash.merge(:non_parallel => true) # normal merge returns nil
91
- taskname = Rake::Task.task_defined?('db:test:prepare') ? 'db:test:prepare' : 'app:db:test:prepare'
92
- ParallelTests::Tasks.run_in_parallel("rake #{taskname}", args)
89
+ Rake::Task['db:structure:dump'].invoke
90
+ Rake::Task['parallel:load_structure'].invoke(args[:count])
93
91
  end
94
92
  end
95
93
 
@@ -1,3 +1,3 @@
1
1
  module ParallelTests
2
- VERSION = Version = '1.0.3'
2
+ VERSION = Version = '1.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parallel_tests
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-30 00:00:00.000000000 Z
11
+ date: 2014-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: parallel