ntq_tools 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e53a47c1c026b6aabfb2fd08299ef753fb0f32c7348cfc2815a1e1044112275
4
- data.tar.gz: b116fea50ba822b5de674bff18ba5664c9d535f5f6db24e47ae1d556692eb71c
3
+ metadata.gz: b63eec7c69bedb5ab5d8a01c52a240fada27bc938fd0244a91aa46dd579b5c1c
4
+ data.tar.gz: c598d93c8031ff4ebae72abdd2b530240262560541c6e5c1ab6f84db2d0beb63
5
5
  SHA512:
6
- metadata.gz: eab96fb8077a34ce59b53c718b320f2233ad64155921546aebe84b91938ca7f8ae24eda3d0d90623b564ae0f86a2f97801cc65729f99f06a0da2136095c68897
7
- data.tar.gz: 5823c38edee27a137eeef2538432d3b0f67a588592a539427ea900bf239bdf6e340d75ad0e0d53c9d7ea571e5d43276938ea6240cc7f09e7a69ee34db325f755
6
+ metadata.gz: 8c6dedb2f872ef44c7b9ff4a697729e7b0484ced96f0a97129ab517ea84ddbc8bf1350484eca5376858741a813f6ca5afe6eb6d4ade9cf014ca30c576c89d3af
7
+ data.tar.gz: 4616609557d7957778c35a518ee27734e6abf11173c053d4ca2f8a548128a060dc932b95945fe85e60dd8c84255b07a37bbc9ea1128f7b0af21a9f7d3572c75b
@@ -11,9 +11,13 @@ module NtqTools
11
11
  def is_installed?
12
12
  ::Gem.loaded_specs.has_key?("redis")
13
13
  end
14
-
14
+
15
15
  def check
16
- ::Sidekiq.redis { |con| con.ping }.present?
16
+ if ::Gem.loaded_specs.has_key?("sidekiq")
17
+ ::Sidekiq.redis { |con| con.ping }.present?
18
+ else
19
+ ::Redis.new.ping.present?
20
+ end
17
21
  rescue ::Redis::CannotConnectError
18
22
  false
19
23
  end
@@ -1,3 +1,3 @@
1
1
  module NtqTools
2
- VERSION = "0.8.0"
2
+ VERSION = "0.8.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ntq_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-12-20 00:00:00.000000000 Z
11
+ date: 2025-03-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails