okcomputer 0.3.7 → 0.3.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c8d8aac1c2611f9746defd5c71d1e68819cf336c
4
+ data.tar.gz: 24ffab3e54db81700bbf2f6aa4931c3ceee39829
5
+ SHA512:
6
+ metadata.gz: 102901ac0514c9716d1bf3f4fc6dea90f7c5749ca477b826af61e076a4cba71179c277f73cd7500652d5bb64fe03b49a5612b5485c7d522219f280df76bf3c80
7
+ data.tar.gz: 4c537aad26c2494a2cea8dd79c3e2cf205f6a081a433b5a132ba6a4f6f0d02f6279d612f90f93daf564a4ffea37388f9f164cd0761d26e2bfa499edb45ffeecd
@@ -34,6 +34,12 @@ module OKComputer
34
34
  mark_failure
35
35
  mark_message "#{name} is #{size - threshold} over threshold! (#{size})"
36
36
  end
37
+ rescue ArgumentError, TypeError => e
38
+ mark_failure
39
+ mark_message "The given proc MUST return a number (#{e.class})"
40
+ rescue StandardError => e
41
+ mark_failure
42
+ mark_message "An error occurred: '#{e.message}' (#{e.class})"
37
43
  end
38
44
 
39
45
  # Public: The number of jobs in the check's queue
@@ -1,3 +1,3 @@
1
1
  module OKComputer
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,20 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okcomputer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
5
- prerelease:
4
+ version: 0.3.8
6
5
  platform: ruby
7
6
  authors:
8
7
  - Patrick Byrne
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-05-28 00:00:00.000000000 Z
11
+ date: 2013-06-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rails
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - ~>
20
18
  - !ruby/object:Gem::Version
@@ -22,7 +20,6 @@ dependencies:
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - ~>
28
25
  - !ruby/object:Gem::Version
@@ -30,55 +27,49 @@ dependencies:
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: sqlite3
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec-rails
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: coveralls
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
- description: ! "\n Inspired by the simplicity of Fitter Happier, but frustrated
79
- by its lack of\n flexibility, we built OK Computer. Create and register your
80
- own custom\n health checks, or choose from the built-in library of checks to
81
- ensure your\n app is working as intended.\n "
69
+ description: "\n Inspired by the simplicity of Fitter Happier, but frustrated by
70
+ its lack of\n flexibility, we built OK Computer. Create and register your own
71
+ custom\n health checks, or choose from the built-in library of checks to ensure
72
+ your\n app is working as intended.\n "
82
73
  email:
83
74
  - patrick.byrne@tstmedia.com
84
75
  executables: []
@@ -107,32 +98,25 @@ files:
107
98
  - README.markdown
108
99
  homepage: https://github.com/sportngin/okcomputer
109
100
  licenses: []
101
+ metadata: {}
110
102
  post_install_message:
111
103
  rdoc_options: []
112
104
  require_paths:
113
105
  - lib
114
106
  required_ruby_version: !ruby/object:Gem::Requirement
115
- none: false
116
107
  requirements:
117
- - - ! '>='
108
+ - - '>='
118
109
  - !ruby/object:Gem::Version
119
110
  version: '0'
120
- segments:
121
- - 0
122
- hash: 1226159291009064780
123
111
  required_rubygems_version: !ruby/object:Gem::Requirement
124
- none: false
125
112
  requirements:
126
- - - ! '>='
113
+ - - '>='
127
114
  - !ruby/object:Gem::Version
128
115
  version: '0'
129
- segments:
130
- - 0
131
- hash: 1226159291009064780
132
116
  requirements: []
133
117
  rubyforge_project:
134
- rubygems_version: 1.8.24
118
+ rubygems_version: 2.0.3
135
119
  signing_key:
136
- specification_version: 3
120
+ specification_version: 4
137
121
  summary: A simple, extensible health-check monitor
138
122
  test_files: []