Skip to content

Commit 6726be5

Browse files
committed
Fix Redis connection check, version 0.1.3
1 parent ef2cee0 commit 6726be5

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
0.1.3
2+
-----
3+
4+
- Fix Redis service connection, use `Redis.current`.
5+
16
0.1.2
27
-----
38

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
status-page (0.1.2)
4+
status-page (0.1.3)
55
rails (>= 4.2)
66

77
GEM

lib/status-page/services/redis.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Redis < Base
88
def check!
99
time = Time.now.to_s(:db)
1010

11-
redis = ::Redis.new
11+
redis = ::Redis.current
1212
redis.set(key, time)
1313
fetched = redis.get(key)
1414

lib/status-page/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module StatusPage
4-
VERSION = '0.1.2'
4+
VERSION = '0.1.3'
55
end

0 commit comments

Comments
 (0)