bs_plus 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bs_plus/browser.rb +3 -2
- data/lib/bs_plus/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 419983d07f8d8dc42b79566de3d3a257fcead594
|
4
|
+
data.tar.gz: 141fa860826b065a4bfab411b91b5a57b1e9dc24
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fa4c834246427f222510a79ea8c306e476ab5192075869f0c3f952c4f10e43326c678a002ca0cfbf7cb5aae7d36916b842af66d21f670a0eccfc8f1dcf5a6854
|
7
|
+
data.tar.gz: acb4c9688ae4ea91177a8d023d0759ca7f64947bb3e658e254eaaba1de4c0d91a2fd27ed4221b6e6b989938331db5215fea5e2597aa12599bc4a401371702596
|
data/lib/bs_plus/browser.rb
CHANGED
@@ -6,6 +6,7 @@ require 'selenium-webdriver'
|
|
6
6
|
require 'launchy'
|
7
7
|
require 'hashie'
|
8
8
|
require 'cgi'
|
9
|
+
require 'bs_plus/config'
|
9
10
|
|
10
11
|
module BsPlus
|
11
12
|
class Browser < Hashie::Dash
|
@@ -20,7 +21,7 @@ class Browser < Hashie::Dash
|
|
20
21
|
|
21
22
|
def self.all
|
22
23
|
FileCache.fetch('browser.list', expires_in: 24.hours) {
|
23
|
-
@list ||= RestClient.get("https://#{
|
24
|
+
@list ||= RestClient.get("https://#{Config.fetch(:username)}:#{Config.fetch(:password)}"\
|
24
25
|
"@www.browserstack.com/automate/browsers.json").
|
25
26
|
tap! {|e| JSON.parse e}.
|
26
27
|
map {|e| new e}}
|
@@ -51,7 +52,7 @@ class Browser < Hashie::Dash
|
|
51
52
|
}
|
52
53
|
|
53
54
|
driver = Selenium::WebDriver.for(:remote,
|
54
|
-
url: "https://#{
|
55
|
+
url: "https://#{Config.fetch(:username)}:#{Config.fetch(:password)}"\
|
55
56
|
"@hub.browserstack.com/wd/hub",
|
56
57
|
desired_capabilities: caps)
|
57
58
|
|
data/lib/bs_plus/version.rb
CHANGED