geordi 0.16.0 → 0.16.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.
- data/lib/geordi/cuc.rb +4 -1
- data/lib/geordi/firefox_for_selenium.rb +14 -5
- data/lib/geordi/version.rb +1 -1
- metadata +3 -3
data/lib/geordi/cuc.rb
CHANGED
@@ -82,7 +82,10 @@ module Geordi
|
|
82
82
|
|
83
83
|
|
84
84
|
def use_firefox_for_selenium
|
85
|
-
|
85
|
+
path = Geordi::FirefoxForSelenium.path_from_config
|
86
|
+
if path
|
87
|
+
"PATH=#{Geordi::FirefoxForSelenium.path_from_config}:$PATH"
|
88
|
+
end
|
86
89
|
end
|
87
90
|
|
88
91
|
|
@@ -28,9 +28,11 @@ module Geordi
|
|
28
28
|
class PathFromConfig
|
29
29
|
|
30
30
|
def run
|
31
|
-
|
32
|
-
|
33
|
-
|
31
|
+
unless system_firefox
|
32
|
+
get_version
|
33
|
+
validate_install
|
34
|
+
path
|
35
|
+
end
|
34
36
|
end
|
35
37
|
|
36
38
|
private
|
@@ -39,6 +41,10 @@ module Geordi
|
|
39
41
|
FirefoxForSelenium.path(@version)
|
40
42
|
end
|
41
43
|
|
44
|
+
def system_firefox
|
45
|
+
version_from_cuc_file == "system"
|
46
|
+
end
|
47
|
+
|
42
48
|
def get_version
|
43
49
|
@version = version_from_cuc_file || default_version
|
44
50
|
end
|
@@ -56,8 +62,11 @@ module Geordi
|
|
56
62
|
puts "Install it with"
|
57
63
|
puts " setup-firefox-for-selenium #{@version}"
|
58
64
|
puts
|
59
|
-
puts "
|
60
|
-
|
65
|
+
puts "If you want to use your system firefox and not see this message, add"
|
66
|
+
puts "a \".firefox-version\" file with the content \"system\"."
|
67
|
+
puts
|
68
|
+
puts "Press ENTER to continue or press CTRL+C to abort."
|
69
|
+
$stdin.gets
|
61
70
|
end
|
62
71
|
end
|
63
72
|
|
data/lib/geordi/version.rb
CHANGED
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:
|
4
|
+
hash: 93
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 16
|
9
|
-
-
|
10
|
-
version: 0.16.
|
9
|
+
- 1
|
10
|
+
version: 0.16.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Henning Koch
|