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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ff9e5a2ab9271825791f5ae588d0fe768d83fd4
4
- data.tar.gz: c225b3c99cf5386a14f2a2bf09a9b8363cf50de2
3
+ metadata.gz: 419983d07f8d8dc42b79566de3d3a257fcead594
4
+ data.tar.gz: 141fa860826b065a4bfab411b91b5a57b1e9dc24
5
5
  SHA512:
6
- metadata.gz: 0fffb57feb9571a09bbba7206cc7f6756e85b03a23f5f6d0b0c9ab0cea65e0f9ea67f7b277531eccfc14cb1a2dc392b0a66520a3c086c7ea9785f4613d6e4136
7
- data.tar.gz: ca7a9af57bd3c32e85ddde0138b3d5d18777b0d60d6521026815b2e21e8003da087d5dd39b7cd9d1912a175e97e92ba291f8e9f4bc7b5c4da20bc5f28bd001c7
6
+ metadata.gz: fa4c834246427f222510a79ea8c306e476ab5192075869f0c3f952c4f10e43326c678a002ca0cfbf7cb5aae7d36916b842af66d21f670a0eccfc8f1dcf5a6854
7
+ data.tar.gz: acb4c9688ae4ea91177a8d023d0759ca7f64947bb3e658e254eaaba1de4c0d91a2fd27ed4221b6e6b989938331db5215fea5e2597aa12599bc4a401371702596
@@ -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://#{BsPlus::Config.fetch(:username)}:#{BsPlus::Config.fetch(:password)}"\
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://#{BsPlus::Config.fetch(:username)}:#{BsPlus::Config.fetch(:password)}"\
55
+ url: "https://#{Config.fetch(:username)}:#{Config.fetch(:password)}"\
55
56
  "@hub.browserstack.com/wd/hub",
56
57
  desired_capabilities: caps)
57
58
 
@@ -1,3 +1,3 @@
1
1
  module BsPlus
2
- VERSION = "1.0.3"
2
+ VERSION = "1.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bs_plus
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leo