watchdoge 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/watchdoge.rb +13 -0
- data/lib/watchdoge/configuration.rb +1 -6
- data/lib/watchdoge/version.rb +1 -1
- data/lib/watchdoge/worker.rb +1 -0
- data/watchdoge.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 31cb08ec084f6a87288b884292874e815e92eef470404399230d08d22f8f4b33
|
4
|
+
data.tar.gz: 10a605d5e1c650c3952fd7402971f138cfc77adae9ea86433cd7d537579c9352
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/watchdoge/version.rb
CHANGED
data/lib/watchdoge/worker.rb
CHANGED
data/watchdoge.gemspec
CHANGED