geordi 0.4.1 → 0.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/bin/cuc +9 -2
  2. data/bin/rs +10 -2
  3. data/lib/geordi/version.rb +1 -1
  4. metadata +6 -6
data/bin/cuc CHANGED
@@ -7,5 +7,12 @@
7
7
  spinner_available = File.exists?('Gemfile') && File.open('Gemfile').read.scan(/cucumber_spinner/).any?
8
8
  format_args = spinner_available ? ['--format', 'CucumberSpinner::CuriousProgressBarFormatter'] : ['--format', 'progress']
9
9
 
10
- # Run cucumber behind bundler
11
- exec *["b", "cucumber", format_args, ARGV].flatten
10
+ # Check if parallel_tests is available
11
+ parallel_tests_available = ['rake', 'parallel:spec'] if File.exists?('Gemfile') && File.open('Gemfile').read.scan(/parallel_tests/).any?
12
+
13
+ if parallel_tests_available
14
+ puts "Using parallel_tests ...\n\n"
15
+ exec *['b', 'rake', 'parallel:features', ARGV].flatten
16
+ else
17
+ exec *["b", "cucumber", format_args, ARGV].flatten
18
+ end
data/bin/rs CHANGED
@@ -11,8 +11,16 @@ rspec_args = rspec1 ? ["spec", "-c"] : ["rspec"]
11
11
  spinner_available = File.exists?('Gemfile') && File.open('Gemfile').read.scan(/rspec_spinner/).any?
12
12
  spinner_args = spinner_available ? ['-r', 'rspec_spinner', '-f', 'RspecSpinner::Bar'] : []
13
13
 
14
+ # Check if parallel_tests is available
15
+ parallel_tests_available = ['rake', 'parallel:spec'] if File.exists?('Gemfile') && File.open('Gemfile').read.scan(/parallel_tests/).any?
16
+
14
17
  # Run examples in 'spec' unless an argument is given
15
18
  ARGV[0] ||= 'spec'
16
19
 
17
- # Run rspec behind bundler
18
- exec *["b", rspec_args, spinner_args, ARGV].flatten
20
+ if parallel_tests_available
21
+ puts "Using parallel_tests ...\n\n"
22
+ exec *['b', 'rake', 'parallel:spec', ARGV].flatten
23
+ else
24
+ # Run rspec behind bundler
25
+ exec *["b", rspec_args, spinner_args, ARGV].flatten
26
+ end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geordi
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
5
- prerelease:
4
+ hash: 11
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Henning Koch
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-08 00:00:00 +02:00
18
+ date: 2011-07-11 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -96,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
96
  requirements: []
97
97
 
98
98
  rubyforge_project: geordi
99
- rubygems_version: 1.5.2
99
+ rubygems_version: 1.3.7
100
100
  signing_key:
101
101
  specification_version: 3
102
102
  summary: Collection of command line tools we use in our daily work with Ruby, Rails and Linux at makandra.