healthchecker 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/healthchecker/checks/solr.rb +7 -1
- data/lib/healthchecker/version.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: 5cc7f6e889adb52b145323143f46f2f0b7cbaec5
|
4
|
+
data.tar.gz: e038ebc0a304754cfe75b1abbfa4fe848782e8a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ce3ae762d7e41f1b01c68c16a148b82783733b2956a8003260715d7b00781e11a2706f8e57a09979cb86b016f1ca4086e8d4fe07b07c34d9b1cd02e52283fa4
|
7
|
+
data.tar.gz: bf9f479fa4edf7399cf0310a6906a82a3a0fb8f63884c04e30213701c54b6f9dd58b939306b14ef38ed41dd1989dc23736e092dd64182958dae4c9bb37f93c1b
|
@@ -4,7 +4,13 @@ module Healthchecker::Checks
|
|
4
4
|
class Solr < Healthchecker::Check
|
5
5
|
|
6
6
|
def client
|
7
|
-
options[:rsolr_client]
|
7
|
+
if options[:rsolr_client]
|
8
|
+
options[:rsolr_client]
|
9
|
+
elsif options[:url]
|
10
|
+
RSolr.connect(url: options[:url])
|
11
|
+
else
|
12
|
+
Sunspot::Session.new.send(:connection)
|
13
|
+
end
|
8
14
|
end
|
9
15
|
|
10
16
|
def check!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: healthchecker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Will Bryant
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|