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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4ffa607e9d632dbb194f9c215afdb9f10508b9b8fe6fe71617ab3ad5ed87da6d
4
- data.tar.gz: b2c025ac565413e32a9dee2c7cea6df9b1cc4dc572e819fdfd48bad57a5c6323
3
+ metadata.gz: 265cc9bcf98ab96afbf4ddd88ba1ba7df28826375ec0e87712818d6108df7dad
4
+ data.tar.gz: 4fc3dae2e75b65dd8cefa02d15196cd01a17358a36eb392fdb63d3ce08022204
5
5
  SHA512:
6
- metadata.gz: 0d13a1afb7a42e0e875bc36ea2ad7f0f63a7a01676317f2b2c193d432c94903d7053f0c466cdf5f09290a521339401bf6f162b07362088a015e6222d55f9a41a
7
- data.tar.gz: bebc83ba4befb465d1e614f8bb0e915e5d1496a4a55743205a903d41cec3abe8b175abb832b24ad4a1557d2d7d0aaaba1feb8ffbc3f256fd0ee7fe29ed798a12
6
+ metadata.gz: 1f8c9d1ec2b4228926df397354bf3a35e5a4afc2614d933dfac97acd97ac01783139e2b4cf69052e0838447844585c87c132454d7b08c51b7a5293aae10e17c2
7
+ data.tar.gz: f1415ac6e1a013dea8f459270384796974ac8ea6d1ffa6a19f26988916f8c3c9196264e645c1aeeee21632ef7a210130cb3e3adfd91ca326768aa73e3d9bc3ba
@@ -17,10 +17,10 @@ OK Computer][blog].
17
17
 
18
18
  OkComputer currently supports the following Rails versions:
19
19
 
20
- * 3.2
21
- * 4.1
20
+ * 6.0
21
+ * 5.2
22
+ * 5.1
22
23
  * 4.2
23
- * 5.0
24
24
 
25
25
  #### Not using Rails?
26
26
 
@@ -42,7 +42,7 @@ module OkComputer
42
42
  end
43
43
 
44
44
  def status_code(check)
45
- check.success? ? :ok : :error
45
+ check.success? ? :ok : :internal_server_error
46
46
  end
47
47
 
48
48
  def authenticate
@@ -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::Error::ConnectionFailed => e
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
@@ -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('%0.000f', time) : '?'}s")
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
@@ -1,3 +1,3 @@
1
1
  module OkComputer
2
- VERSION = '1.17.2'
2
+ VERSION = '1.18.2'
3
3
  end
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.17.2
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: 2018-04-16 00:00:00.000000000 Z
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: '0'
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: '0'
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
- rubyforge_project:
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