geordi 0.8.0 → 0.8.1

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 (3) hide show
  1. data/bin/cuc +5 -2
  2. data/lib/geordi/version.rb +1 -1
  3. metadata +4 -4
data/bin/cuc CHANGED
@@ -8,6 +8,10 @@ def exec_with_shell_expansion(*args)
8
8
  exec escaped_args.join(' ')
9
9
  end
10
10
 
11
+ def rerun_txt_exists_and_has_content?
12
+ File.exists?("rerun.txt") && !IO.read("rerun.txt").to_s.strip.empty?
13
+ end
14
+
11
15
  # Print some whitespace
12
16
  4.times { puts }
13
17
  puts "Running Cucumber tests..."
@@ -20,8 +24,7 @@ format_args = spinner_available ? ['--format', 'CucumberSpinner::CuriousProgress
20
24
  # Check if parallel_tests is available
21
25
  parallel_tests_available = ['rake', 'parallel:spec'] if File.exists?('Gemfile') && File.open('Gemfile').read.scan(/parallel_tests/).any?
22
26
 
23
- rerun_txt_exists_and_has_content = File.exists?('rerun.txt') && File.size('rerun.txt') > 0
24
- use_parallel_tests = parallel_tests_available && (ARGV[0] == nil) && !rerun_txt_exists_and_has_content
27
+ use_parallel_tests = parallel_tests_available && (ARGV[0] == nil) && !rerun_txt_exists_and_has_content?
25
28
 
26
29
  use_firefox_for_selenium = "PATH=#{Geordi::SetupFirefoxForSelenium::FIREFOX_FOR_SELENIUM_PATH}:$PATH"
27
30
 
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '0.8.0'
2
+ VERSION = '0.8.1'
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: 63
4
+ hash: 61
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 0
10
- version: 0.8.0
9
+ - 1
10
+ version: 0.8.1
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: 2012-01-11 00:00:00 +01:00
18
+ date: 2012-01-13 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21