portal_module 0.0.2 → 0.0.3
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 +4 -4
- data/lib/portal_module/pages.rb +11 -1
- data/lib/portal_module/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12132d1c29edacb53600c4051718d7f9fc1078a0
|
|
4
|
+
data.tar.gz: cbe00a0f8384fe4dc107fcd01c1ee663e2013772
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c6083dea78db0f99e4062fe3db8743894558f990c5dc5c341dbde5165b8b82388a5b89f587ba286819c88eb90f6708c83afcf14e619538634895f4d7a359ef3
|
|
7
|
+
data.tar.gz: 2c2a18f3677a017f894dba1142bdc117ed2a41e5fde396b009e98faa5e586c5d89a4163f215310c3d5fab60391c605dd75810c5049796e61cb068f611dd332d1
|
data/lib/portal_module/pages.rb
CHANGED
|
@@ -38,13 +38,23 @@ private
|
|
|
38
38
|
# Downloaded from http://chromium.woolyss.com/
|
|
39
39
|
# Package: Chromium Package (32-bit)
|
|
40
40
|
# Version: 37.0.2011.0 (272392)
|
|
41
|
-
chromium_exe =
|
|
41
|
+
chromium_exe = ENV["chrome_browser_path"]
|
|
42
|
+
unless (! chromium_exe.nil? && ! chromium_exe.empty? && File.exist?(chromium_exe))
|
|
43
|
+
raise "chrome_browser_path environment variable not set"
|
|
44
|
+
end
|
|
45
|
+
#chromium_exe = File.absolute_path(File.join(__FILE__, '../../../bin/chrome-win32/chrome.exe'))
|
|
46
|
+
chromium_exe
|
|
42
47
|
else
|
|
43
48
|
chromium_exe = `which chromium-browser`.chomp
|
|
44
49
|
end
|
|
45
50
|
end
|
|
46
51
|
|
|
47
52
|
def configure_browser
|
|
53
|
+
# We must clear out any environmental proxy or Selenium fails
|
|
54
|
+
# to connect to the local application.
|
|
55
|
+
# See http://zagorskisoftwaretester.blogspot.com/2015/02/httpproxy-environment-variable-override.html
|
|
56
|
+
ENV['http_proxy'] = nil
|
|
57
|
+
|
|
48
58
|
# Specify chrome browser capabilities.
|
|
49
59
|
caps = Selenium::WebDriver::Remote::Capabilities.chrome
|
|
50
60
|
caps['chromeOptions'] = {'binary' => chromium_exe }
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: portal_module
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Jeff McAffee
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-08-
|
|
11
|
+
date: 2015-08-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|