okcomputer 1.17.2 → 1.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.markdown +3 -3
- data/app/controllers/ok_computer/ok_computer_controller.rb +1 -1
- data/lib/ok_computer/built_in_checks/neo4j_check.rb +1 -1
- data/lib/ok_computer/built_in_checks/solr_check.rb +1 -1
- data/lib/ok_computer/check.rb +1 -1
- data/lib/ok_computer/version.rb +1 -1
- metadata +7 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 265cc9bcf98ab96afbf4ddd88ba1ba7df28826375ec0e87712818d6108df7dad
|
4
|
+
data.tar.gz: 4fc3dae2e75b65dd8cefa02d15196cd01a17358a36eb392fdb63d3ce08022204
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f8c9d1ec2b4228926df397354bf3a35e5a4afc2614d933dfac97acd97ac01783139e2b4cf69052e0838447844585c87c132454d7b08c51b7a5293aae10e17c2
|
7
|
+
data.tar.gz: f1415ac6e1a013dea8f459270384796974ac8ea6d1ffa6a19f26988916f8c3c9196264e645c1aeeee21632ef7a210130cb3e3adfd91ca326768aa73e3d9bc3ba
|
data/README.markdown
CHANGED
@@ -6,7 +6,7 @@ module OkComputer
|
|
6
6
|
connected = Neo4j::Session.current.connection.head.success?
|
7
7
|
url = Neo4j::Session.current.connection.url_prefix.to_s
|
8
8
|
mark_message "Connected to neo4j on #{url}" if connected
|
9
|
-
rescue Faraday::
|
9
|
+
rescue Faraday::ConnectionFailed => e
|
10
10
|
mark_failure
|
11
11
|
mark_message "Error: #{e.message}"
|
12
12
|
end
|
@@ -29,7 +29,7 @@ module OkComputer
|
|
29
29
|
# Public: Returns true if Solr's ping returned OK, otherwise false
|
30
30
|
def ping?
|
31
31
|
response = perform_request
|
32
|
-
!!(response =~ %r(<str name="status">OK</str>))
|
32
|
+
!!(response =~ Regexp.union(%r(<str name="status">OK</str>), %r("status":"OK")))
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
data/lib/ok_computer/check.rb
CHANGED
@@ -34,7 +34,7 @@ module OkComputer
|
|
34
34
|
# Returns a String
|
35
35
|
def to_text
|
36
36
|
passfail = success? ? "passed" : "failed"
|
37
|
-
I18n.t("okcomputer.check.#{passfail}", registrant_name: registrant_name, message: message, time: "#{time ? sprintf('
|
37
|
+
I18n.t("okcomputer.check.#{passfail}", registrant_name: registrant_name, message: message, time: "#{time ? sprintf('%.3f', time) : '?'}s")
|
38
38
|
end
|
39
39
|
|
40
40
|
# Public: The JSON output of performing the check
|
data/lib/ok_computer/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: okcomputer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.18.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Byrne
|
@@ -10,22 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2020-06-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: sqlite3
|
17
17
|
requirement: !ruby/object:Gem::Requirement
|
18
18
|
requirements:
|
19
|
-
- - "
|
19
|
+
- - "~>"
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 1.3.6
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
|
-
- - "
|
26
|
+
- - "~>"
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 1.3.6
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: rspec-rails
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
@@ -140,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
140
140
|
- !ruby/object:Gem::Version
|
141
141
|
version: '0'
|
142
142
|
requirements: []
|
143
|
-
|
144
|
-
rubygems_version: 2.7.6
|
143
|
+
rubygems_version: 3.1.2
|
145
144
|
signing_key:
|
146
145
|
specification_version: 4
|
147
146
|
summary: A simple, extensible health-check monitor
|