geordi 0.17.4 → 0.18.0

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.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- OGQ5ZmIyZjI4ZTQwOGI3MjU4NzkxODQ5MTRlNzE3OTE2YjYzNDAzZA==
5
- data.tar.gz: !binary |-
6
- ZTYzYWY4NzYwNDE3M2E3OWViNjg3YjhlNmFkNzBkMjBmMjFhNDRmMw==
2
+ SHA1:
3
+ metadata.gz: 9f8f98de512879778e9f1213a42f74c2d787f461
4
+ data.tar.gz: 0ab1a7b574cafc9c3a18d127593c72bcf1859256
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- NDFmZWE3ZTNkMTNlOTU2ODlkZGExZjNmYzYyMDBkMjc4NTAxMDY4ZTQ0ZDA2
10
- ZGFlMWY2ZTM5MzFmNjdjMTM3MWVhNTM1MDkyODRjNGJkMTRiZjZiNWM4MWQ0
11
- YWQ5MDY3Y2E2NzkwZGEyYWFjNWJhNDBlMDJhMjg4YzVjMTIwM2M=
12
- data.tar.gz: !binary |-
13
- NGZiOTlkODE1ZGRmN2JiYjc0ZGQ3NjhiYWM4OWY4MTMwZjRkMmEzY2QxNmNm
14
- YzUzYWE0ZmZiY2FlZTcwNjk2MTAyN2FkNjlkZWRmMmExMmIwODk4ZmQ4YWI5
15
- Y2I1OWNhMWE5ZWE1YTE5NTk0YTQzMDkxNzIwOWE4ZDNkYzJjMmI=
6
+ metadata.gz: 9f3cf82b03f852d818dacec59355734952d6cf17f397987229a4472d88e6b81168ea2d9f307916ccdb78962923de470d5ddb08025883e31f1dea75a86c882b0b
7
+ data.tar.gz: 271ba533e5c71e28bcca8de85304ad16b1f9c13b96cc441c45a0ac7a0c04146420db4b39cb156cc625fccdaa547a83c9ced1aeb1e55096aa7f113e33d3644711
data/README.md CHANGED
@@ -208,3 +208,13 @@ Runs both `rs` and `cuc`. Call from any project directory:
208
208
  tests
209
209
 
210
210
  More information at http://makandracards.com/makandra/1277-a-nicer-way-to-run-rspec-and-or-cucumber
211
+
212
+
213
+ run_tests
214
+ ---------
215
+
216
+ Enables VNC and setups firefox just like "cuc", but simply runs the given command.
217
+
218
+ Useful if your project does not use "cucumber", so you can for example say
219
+
220
+ run_tests rake test:integration
data/bin/run_tests ADDED
@@ -0,0 +1,4 @@
1
+ #!/usr/bin/env ruby
2
+ require File.join(File.dirname(__FILE__), '../lib/geordi/run_tests')
3
+
4
+ Geordi::RunTests.new.run
data/lib/geordi/cuc.rb CHANGED
@@ -53,6 +53,20 @@ module Geordi
53
53
  end
54
54
  end
55
55
 
56
+ def setup_vnc
57
+ if try_and_start_vnc
58
+ VNC_ENV_VARIABLES.each do |variable|
59
+ ENV["OUTER_#{variable}"] = ENV[variable] if ENV[variable]
60
+ end
61
+ ENV["BROWSER"] = ENV["LAUNCHY_BROWSER"] = File.expand_path(File.join(File.dirname(__FILE__), '../../bin/launchy_browser'))
62
+ ENV["DISPLAY"] = VNC_DISPLAY
63
+
64
+ puts
65
+ puts "Selenium is running in a VNC window. Use cuc-show to view it."
66
+ end
67
+ end
68
+
69
+
56
70
  private
57
71
 
58
72
  attr_writer :argv
@@ -210,19 +224,6 @@ module Geordi
210
224
  parallel_tests_available? && features_can_run_with_parallel_tests?(features_to_run) && features_to_run.size != 1
211
225
  end
212
226
 
213
- def setup_vnc
214
- if try_and_start_vnc
215
- VNC_ENV_VARIABLES.each do |variable|
216
- ENV["OUTER_#{variable}"] = ENV[variable] if ENV[variable]
217
- end
218
- ENV["BROWSER"] = ENV["LAUNCHY_BROWSER"] = File.expand_path(File.join(File.dirname(__FILE__), '../../bin/launchy_browser'))
219
- ENV["DISPLAY"] = VNC_DISPLAY
220
-
221
- puts
222
- puts "Selenium is running in a VNC window. Use cuc-show to view it."
223
- end
224
- end
225
-
226
227
  def try_and_start_vnc
227
228
  # check if vnc is already running
228
229
  #return true if vnc_server_running?
@@ -24,6 +24,13 @@ module Geordi
24
24
  path(version).join(name)
25
25
  end
26
26
 
27
+ def self.setup_firefox
28
+ path = path_from_config
29
+ if path
30
+ ENV['PATH'] = "#{path}:#{ENV['PATH']}"
31
+ end
32
+ end
33
+
27
34
 
28
35
  class PathFromConfig
29
36
 
@@ -0,0 +1,17 @@
1
+ require File.join(File.dirname(__FILE__), 'cuc')
2
+
3
+ module Geordi
4
+ class RunTests
5
+
6
+ def run
7
+ 4.times { puts }
8
+ puts "Running tests..."
9
+ puts "========================="
10
+
11
+ Cucumber.new.setup_vnc
12
+ FirefoxForSelenium.setup_firefox
13
+ exec *ARGV
14
+ end
15
+
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Geordi
2
- VERSION = '0.17.4'
2
+ VERSION = '0.18.0'
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: 0.17.4
4
+ version: 0.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-13 00:00:00.000000000 Z
11
+ date: 2014-06-04 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Collection of command line tools we use in our daily work with Ruby,
14
14
  Rails and Linux at makandra.
@@ -38,13 +38,14 @@ executables:
38
38
  - remotify-local-branch
39
39
  - remove-executable-flags
40
40
  - rs
41
+ - run_tests
41
42
  - setup-firefox-for-selenium
42
43
  - shell-for
43
44
  - tests
44
45
  extensions: []
45
46
  extra_rdoc_files: []
46
47
  files:
47
- - .gitignore
48
+ - ".gitignore"
48
49
  - Gemfile
49
50
  - LICENSE
50
51
  - README.md
@@ -72,6 +73,7 @@ files:
72
73
  - bin/remotify-local-branch
73
74
  - bin/remove-executable-flags
74
75
  - bin/rs
76
+ - bin/run_tests
75
77
  - bin/setup-firefox-for-selenium
76
78
  - bin/shell-for
77
79
  - bin/tests
@@ -81,6 +83,7 @@ files:
81
83
  - lib/geordi/dump_loader.rb
82
84
  - lib/geordi/firefox_for_selenium.rb
83
85
  - lib/geordi/gitpt.rb
86
+ - lib/geordi/run_tests.rb
84
87
  - lib/geordi/version.rb
85
88
  homepage: http://makandra.com
86
89
  licenses:
@@ -92,17 +95,17 @@ require_paths:
92
95
  - lib
93
96
  required_ruby_version: !ruby/object:Gem::Requirement
94
97
  requirements:
95
- - - ! '>='
98
+ - - ">="
96
99
  - !ruby/object:Gem::Version
97
100
  version: '0'
98
101
  required_rubygems_version: !ruby/object:Gem::Requirement
99
102
  requirements:
100
- - - ! '>='
103
+ - - ">="
101
104
  - !ruby/object:Gem::Version
102
105
  version: '0'
103
106
  requirements: []
104
107
  rubyforge_project: geordi
105
- rubygems_version: 2.2.1
108
+ rubygems_version: 2.2.2
106
109
  signing_key:
107
110
  specification_version: 4
108
111
  summary: Collection of command line tools we use in our daily work with Ruby, Rails