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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDNiMzMyYmM5MGVjODMzNTJkMWZjNDY5OTVmMThiM2Q1ZTdlMWZlOQ==
4
+ YmE0MjBhMmRkMmFjZGQ3YTRjMzE0MWZhNjc3NjZiMjRjOThiNzdkZA==
5
5
  data.tar.gz: !binary |-
6
- Yzk3ZmM1NGUyYWQwNjM3NDU4ZWI1YjUwYjg3NGI1MTg0ZDEyNGRkOA==
6
+ MDI1MjUxMWI3NjgzMDExNTkyYjVmYTU2NTY2N2VkNDgyM2QyYzUzOA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTBiZThjMDgzMDRjMjU5MzY2NTQ5MDJiOWY5ZmVhMzA2ZjMzN2Y2OTI4NWIy
10
- ZTAxZWYxOWE1NmYyMmIzN2I5YzVmMjc3NjQwYjFlZTRjMWM3NTY3Mjg5Zjk2
11
- NWNjNThhY2EyZDAyYzZlYTI0YmRkNjA1ZTE2OGM5YzRkZWY2Njk=
9
+ OTcxYTM2MzVhODY4ZTQzNDk1YzU1NjY4Mzg2NDRiYmRjNDRlOWVhOGQ5YTk5
10
+ ODEwYTIxMmQ3ZWNkNzhjNGVhMDY1MWU3NWI4MjJhMGM0ZTdmMDhiYTg3NGUx
11
+ Y2ZkNTFlZjdjMjk3ZTQ2NzA0ODkxZjA5Y2Q0OGViYmUzMTIzOGY=
12
12
  data.tar.gz: !binary |-
13
- YzkxN2Q4YjI3N2YzZDI5NzI5N2QxYTQyYmM5OGU5NDg5MzBkOTkxYmZjMGJk
14
- ZWMyN2RhMjcwMzU3ZDJmNDBjZGYwZmE1ODJmYjIyYzkzMDRiODY2MWQ5YWQ3
15
- MmViYzJhZjg2Mjk3MzU2ZjI5N2FkZDA3YTljMDViOTdmMzdmMmQ=
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 'Call me from inside a Rails project!' if current == Dir.pwd
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
@@ -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(argv)
19
- self.argv = 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
- note 'Command: ' + command if argv.include? '-v'
26
+ note_cmd(command) if options[:verbose]
27
27
 
28
28
  puts
29
29
  system command # Util.system! would reset the Firefox PATH
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
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.0
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-02 00:00:00.000000000 Z
11
+ date: 2015-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor