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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aa176e874d96ecf9837f0c6e4b1b1bd442ac3603
4
- data.tar.gz: 239dd78a8944a1c525a70cf47606f7d33e7b3b76
3
+ metadata.gz: 12132d1c29edacb53600c4051718d7f9fc1078a0
4
+ data.tar.gz: cbe00a0f8384fe4dc107fcd01c1ee663e2013772
5
5
  SHA512:
6
- metadata.gz: 0d9043d0cff5b73c8dcb9af85e800bd6122e13594f84aed49db645d12020bec3b9be254589c1aee8296c56815aa62f7f06b8955a54f871f7f6cf431edbf54b46
7
- data.tar.gz: 6f6eddb6a856e9c72bc5f8e28944a8db797a2891088ddfc8df848fee7d553fc263e3a5c2adf44dc3f122f37f3c9eaafc1ad6afeaba906090f98fb7e5327ab584
6
+ metadata.gz: 4c6083dea78db0f99e4062fe3db8743894558f990c5dc5c341dbde5165b8b82388a5b89f587ba286819c88eb90f6708c83afcf14e619538634895f4d7a359ef3
7
+ data.tar.gz: 2c2a18f3677a017f894dba1142bdc117ed2a41e5fde396b009e98faa5e586c5d89a4163f215310c3d5fab60391c605dd75810c5049796e61cb068f611dd332d1
@@ -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 = File.absolute_path(File.join(__FILE__, '../../../bin/chrome-win32/chrome.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 }
@@ -1,3 +1,3 @@
1
1
  module PortalModule
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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-18 00:00:00.000000000 Z
11
+ date: 2015-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler