watchdoge 0.0.21 → 0.0.22

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
  SHA256:
3
- metadata.gz: 6f03712bc2bbeb6492fd54ed0d02c99e89911b01dabef9efb25416c337ea72d6
4
- data.tar.gz: ae61b6df96b09ebf43e07cf4375db5c33fedb81c6e8b85bc9c6ba0d6127e1de2
3
+ metadata.gz: 31cb08ec084f6a87288b884292874e815e92eef470404399230d08d22f8f4b33
4
+ data.tar.gz: 10a605d5e1c650c3952fd7402971f138cfc77adae9ea86433cd7d537579c9352
5
5
  SHA512:
6
- metadata.gz: 4f56bba176cb7c01691b37d881cee9596f2acd97d5c9eaeb20291c98c783f66fb609f8b1e7d802226ee9e4ca7e99fb4af1adc5794863b6877b75f10a68bf5177
7
- data.tar.gz: 4a0f66974c57ff2997aab9286f518932bc3f2c43175c02961ce338ee21ad2e5a246ad7d1fe9b4b5fbb65b058b696c1f2994605af984fb93cc8f85bd94d8c9c82
6
+ metadata.gz: b948cf7d631da31077c429d2b1eb653d15af77087cc2582d863930083f3c679a08c128f4a15c36a39747b34338fc036489e02b696348d30e7977b6546e0aa281
7
+ data.tar.gz: b6ea1174d59ee36afd315a8a0de8c3c21976471a36a158101858c73f405ad85b008cee33856fbacd1c4a8d583b2274dd62424fb8c6d116d0bd48c398b0f24f24
data/lib/watchdoge.rb CHANGED
@@ -24,5 +24,18 @@ module WatchDoge
24
24
  def configuration
25
25
  @_configuration ||= Configuration.new
26
26
  end
27
+
28
+ def load_configuration
29
+ path = ENV['WATCHDOGE_CONFIG'] ||
30
+ if defined?(Rails)
31
+ "#{Dir.pwd}/config/watchdoge.rb"
32
+ else
33
+ "#{Dir.pwd}/watchdoge.rb"
34
+ end
35
+
36
+ load path
37
+ end
27
38
  end
28
39
  end
40
+
41
+ WatchDoge.load_configuration
@@ -17,12 +17,7 @@ module WatchDoge
17
17
  attr_accessor :user_authentication
18
18
 
19
19
  def initialize
20
- @base_dir =
21
- if defined?(Rails)
22
- Rails.root.to_s
23
- else
24
- Dir.pwd
25
- end
20
+ @base_dir = Dir.pwd
26
21
 
27
22
  @web_drivers_dir = @base_dir + "/.webdrivers"
28
23
  @engine = Watir::Browser
@@ -1,3 +1,3 @@
1
1
  module WatchDoge
2
- Version = '0.0.21'
2
+ Version = '0.0.22'
3
3
  end
@@ -104,6 +104,7 @@ module WatchDoge
104
104
  when :firefox
105
105
  profile = Selenium::WebDriver::Firefox::Profile.new
106
106
  profile['security.sandbox.content.level'] = 2
107
+ profile['network.dns.disableIPv6'] = true
107
108
  {
108
109
  profile: profile
109
110
  }
data/watchdoge.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'watchdoge'
3
- s.version = '0.0.21'
3
+ s.version = '0.0.22'
4
4
  s.date = '2019-07-22'
5
5
  s.summary = "dogi"
6
6
  s.description = "A collection of web test tools"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watchdoge
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shen Lee