geordi 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/geordi/capistrano_config.rb +7 -1
- data/lib/geordi/commands/cucumber.rb +3 -1
- data/lib/geordi/cucumber.rb +3 -3
- data/lib/geordi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YmE0MjBhMmRkMmFjZGQ3YTRjMzE0MWZhNjc3NjZiMjRjOThiNzdkZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MDI1MjUxMWI3NjgzMDExNTkyYjVmYTU2NTY2N2VkNDgyM2QyYzUzOA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OTcxYTM2MzVhODY4ZTQzNDk1YzU1NjY4Mzg2NDRiYmRjNDRlOWVhOGQ5YTk5
|
10
|
+
ODEwYTIxMmQ3ZWNkNzhjNGVhMDY1MWU3NWI4MjJhMGM0ZTdmMDhiYTg3NGUx
|
11
|
+
Y2ZkNTFlZjdjMjk3ZTQ2NzA0ODkxZjA5Y2Q0OGViYmUzMTIzOGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MWI0ZjZkNWUwZTk5MjliY2ZkMGFiOWYwODZhNjkyNmI2YmZjY2MwOWEzNjA3
|
14
|
+
ZGM5YjIwODAwYjg4YTg5YTdlZjlmMzczNDM1NGI4NjJjYTY5YTI0Mjc2ZmE0
|
15
|
+
Njc0N2UzYjhiODMxMDFiNTkyZGI0Mzc5ZjhjMzQ4NzM2OTliZmQ=
|
@@ -56,7 +56,13 @@ module Geordi
|
|
56
56
|
current = Dir.pwd
|
57
57
|
until (File.exists? 'Capfile')
|
58
58
|
Dir.chdir '..'
|
59
|
-
raise
|
59
|
+
raise <<-ERROR if current == Dir.pwd
|
60
|
+
Could not locate Capfile.
|
61
|
+
|
62
|
+
Are you calling me from within a Rails project?
|
63
|
+
Maybe Capistrano is not installed in this project.
|
64
|
+
ERROR
|
65
|
+
|
60
66
|
current = Dir.pwd
|
61
67
|
end
|
62
68
|
current
|
@@ -6,6 +6,8 @@ Runs Cucumber as you want: with `bundle exec`, `cucumber_spinner` detection,
|
|
6
6
|
separate Firefox for Selenium, etc.
|
7
7
|
LONGDESC
|
8
8
|
|
9
|
+
option :verbose, :aliases => '-v', :type => :boolean, :desc => 'Print the testing command'
|
10
|
+
|
9
11
|
def cucumber(*files)
|
10
12
|
require 'geordi/cucumber'
|
11
13
|
|
@@ -13,7 +15,7 @@ def cucumber(*files)
|
|
13
15
|
|
14
16
|
if File.directory?('features')
|
15
17
|
announce 'Running features'
|
16
|
-
Geordi::Cucumber.new.run(files) or fail 'Features failed.'
|
18
|
+
Geordi::Cucumber.new.run(files, :verbose => options.verbose) or fail 'Features failed.'
|
17
19
|
else
|
18
20
|
note 'Cucumber not employed.'
|
19
21
|
end
|
data/lib/geordi/cucumber.rb
CHANGED
@@ -15,15 +15,15 @@ module Geordi
|
|
15
15
|
VNC_VIEWER_COMMAND = "vncviewer #{VNC_DISPLAY}"
|
16
16
|
VNC_ENV_VARIABLES = %w[DISPLAY BROWSER LAUNCHY_BROWSER]
|
17
17
|
|
18
|
-
def run(
|
19
|
-
self.argv =
|
18
|
+
def run(files, options)
|
19
|
+
self.argv = files
|
20
20
|
|
21
21
|
consolidate_rerun_txt_files
|
22
22
|
show_features_to_run
|
23
23
|
setup_vnc
|
24
24
|
|
25
25
|
command = use_parallel_tests? ? parallel_execution_command : serial_execution_command
|
26
|
-
|
26
|
+
note_cmd(command) if options[:verbose]
|
27
27
|
|
28
28
|
puts
|
29
29
|
system command # Util.system! would reset the Firefox PATH
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: geordi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|