okcomputer 1.6.5 → 1.6.6

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: 247938c198ba3491a7b388cfef2f18d8d455b7c4
4
- data.tar.gz: dad68df5e34ade9c55ba8dd6a280aa1ac9061b76
3
+ metadata.gz: cc4685c3596a7eab3f1fc989e48f14a68c24d309
4
+ data.tar.gz: 394fdeca284f5261ef5ad5c9e2ca803e8c01cd11
5
5
  SHA512:
6
- metadata.gz: 7f5973191c1a16c3b1ee33fb85b43b8a9a401714e961ed4f3b013c8bc79c6823ce786e4b4442e4dfbe75321fbd4936ea0f4b95d2ac81ee3bf9b2911a6c4c3319
7
- data.tar.gz: 67eb3b6c2e215240a3ea010128ba4f2dd7fb7225d57d0e422443dff5e006482a6298c2dc748338c1eded41b3865d1a1023edbed7a8fb0d518f7a66557d05ea21
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
- # Public: The route to automatically mount the OkComputer engine. Setting to false
44
- # prevents OkComputer from automatically mounting itself.
45
- mattr_accessor :mount_at
46
- self.mount_at = 'okcomputer'
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
- # Public: whether to execute checks in parallel.
49
- mattr_accessor :check_in_parallel
50
- self.check_in_parallel = false
48
+ # Public: whether to execute checks in parallel.
49
+ attr_accessor :check_in_parallel
51
50
 
52
- # Public: Option to disable third-party app performance tools (.e.g NewRelic) from counting OkComputer routes towards their total.
53
- mattr_accessor :analytics_ignore
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
- # Private: The username for access to checks
57
- mattr_accessor :username
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
- # Private: The password for access to checks
62
- mattr_accessor :password
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
- # Private: The options container
67
- mattr_accessor :options
68
- self.options = {}
60
+ # Private: The options container
61
+ attr_accessor :options
69
62
 
70
- # Private: Configure a whitelist of checks to skip authentication
71
- def self.whitelist
72
- options.fetch(:except) { [] }
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
@@ -1,3 +1,3 @@
1
1
  module OkComputer
2
- VERSION = '1.6.5'
2
+ VERSION = '1.6.6'
3
3
  end
data/lib/okcomputer.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require "ok_computer/configuration" # must come before engine
2
- require "ok_computer/engine"
2
+ require "ok_computer/engine" if defined?(Rails)
3
3
  require "ok_computer/check"
4
4
  require "ok_computer/check_collection"
5
5
  require "ok_computer/registry"
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.5
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-16 00:00:00.000000000 Z
11
+ date: 2016-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sqlite3