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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2353a74bdc90b3df1d2b99139e3fd36852cb3756
4
- data.tar.gz: 5446fb246f737ac78cdf7155bd69f05fc357bcba
3
+ metadata.gz: 5cc7f6e889adb52b145323143f46f2f0b7cbaec5
4
+ data.tar.gz: e038ebc0a304754cfe75b1abbfa4fe848782e8a9
5
5
  SHA512:
6
- metadata.gz: ae3285879efa3bd5d9bf94c7a25e623d8196bf393bcf22fea3fa8f714dfb523a15d38820b0a7448d7b9940e2be69f76f3a580869c9bd4d0142c4dac162f53600
7
- data.tar.gz: 246cc8e378e9d83253ede79906129a018051c58b1a744d388fde01184ce3a56cc873aa475a30326e522d22214c3ec60f2a812d55498b59f62ee15c1273596d70
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] || Sunspot::Session.new.send(:connection)
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!
@@ -1,3 +1,3 @@
1
1
  module Healthchecker
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.2"
3
3
  end
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.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-07-25 00:00:00.000000000 Z
11
+ date: 2017-08-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails