okcomputer 1.6.5 → 1.6.6
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 +4 -4
- data/lib/ok_computer/configuration.rb +25 -24
- data/lib/ok_computer/version.rb +1 -1
- data/lib/okcomputer.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cc4685c3596a7eab3f1fc989e48f14a68c24d309
|
4
|
+
data.tar.gz: 394fdeca284f5261ef5ad5c9e2ca803e8c01cd11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48acc3a73c5ca97e56d5c9a34c88ece034713664527fa00acdf8eb8df252d988e5f8d415f6be5e1d1e39fbb638fe36e3aa5b4f44338fabc426ec1da452c1f277
|
7
|
+
data.tar.gz: 5ef623bad1e7a2cc2d1f3841fcf7304bf3594daa660c423b2f398917fff7b0a44c3f793e57118f360686e39bda91066a2ff89308f4486bfccf0927a0fb222c98
|
@@ -40,35 +40,36 @@ module OkComputer
|
|
40
40
|
username && password
|
41
41
|
end
|
42
42
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
43
|
+
class << self
|
44
|
+
# Public: The route to automatically mount the OkComputer engine. Setting to false
|
45
|
+
# prevents OkComputer from automatically mounting itself.
|
46
|
+
attr_accessor :mount_at
|
47
47
|
|
48
|
-
|
49
|
-
|
50
|
-
self.check_in_parallel = false
|
48
|
+
# Public: whether to execute checks in parallel.
|
49
|
+
attr_accessor :check_in_parallel
|
51
50
|
|
52
|
-
|
53
|
-
|
54
|
-
self.analytics_ignore = true
|
51
|
+
# Public: Option to disable third-party app performance tools (.e.g NewRelic) from counting OkComputer routes towards their total.
|
52
|
+
attr_accessor :analytics_ignore
|
55
53
|
|
56
|
-
|
57
|
-
|
58
|
-
private_class_method :username
|
59
|
-
private_class_method :username=
|
54
|
+
# Private: The username for access to checks
|
55
|
+
attr_accessor :username
|
60
56
|
|
61
|
-
|
62
|
-
|
63
|
-
private_class_method :password
|
64
|
-
private_class_method :password=
|
57
|
+
# Private: The password for access to checks
|
58
|
+
attr_accessor :password
|
65
59
|
|
66
|
-
|
67
|
-
|
68
|
-
self.options = {}
|
60
|
+
# Private: The options container
|
61
|
+
attr_accessor :options
|
69
62
|
|
70
|
-
|
71
|
-
|
72
|
-
|
63
|
+
# # Private: Configure a whitelist of checks to skip authentication
|
64
|
+
def whitelist
|
65
|
+
options.fetch(:except) { [] }
|
66
|
+
end
|
73
67
|
end
|
68
|
+
|
69
|
+
# set default configuration options defined above
|
70
|
+
self.mount_at = 'okcomputer'
|
71
|
+
self.check_in_parallel = false
|
72
|
+
self.analytics_ignore = true
|
73
|
+
self.options = {}
|
74
|
+
|
74
75
|
end
|
data/lib/ok_computer/version.rb
CHANGED
data/lib/okcomputer.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: okcomputer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Byrne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sqlite3
|