semian 0.7.4 → 0.7.5
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 +4 -4
- data/lib/semian/redis.rb +8 -1
- data/lib/semian/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c551f934ff17bdb22cae2fe3e5a28965558194a7
|
|
4
|
+
data.tar.gz: dd844812bb088c431c772996ff4f646bd61e0767
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a167d405cf133976d0cbab88e10a312dd22c43a1c4c6720cb788eeaf3e9020f8fd91edab7a3591c6f862a6144f1c48b52802650679b256c18048fb76a92052f9
|
|
7
|
+
data.tar.gz: f2080d87bb826837d59512a90ccece4211cc66000a9ef098e6ebbfa22968e333c2bacec3801f2685053e445bbfc878d864835e33a2ff42ca196b13f1e6d0d4d4
|
data/lib/semian/redis.rb
CHANGED
|
@@ -23,7 +23,7 @@ class Redis
|
|
|
23
23
|
# This reference is necessary because during a `pipelined` block the client
|
|
24
24
|
# is replaced by an instance of `Redis::Pipeline` and there is no way to
|
|
25
25
|
# access the original client which references the Semian resource.
|
|
26
|
-
@original_client =
|
|
26
|
+
@original_client = _client
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def semian_resource
|
|
@@ -33,6 +33,13 @@ class Redis
|
|
|
33
33
|
def semian_identifier
|
|
34
34
|
semian_resource.name
|
|
35
35
|
end
|
|
36
|
+
|
|
37
|
+
# Compatibility with old versions of the Redis gem
|
|
38
|
+
unless instance_methods.include?(:_client)
|
|
39
|
+
def _client
|
|
40
|
+
@client
|
|
41
|
+
end
|
|
42
|
+
end
|
|
36
43
|
end
|
|
37
44
|
|
|
38
45
|
module Semian
|
data/lib/semian/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: semian
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.7.
|
|
4
|
+
version: 0.7.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Scott Francis
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date:
|
|
13
|
+
date: 2018-03-07 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: rake-compiler
|
|
@@ -179,7 +179,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
179
179
|
version: '0'
|
|
180
180
|
requirements: []
|
|
181
181
|
rubyforge_project:
|
|
182
|
-
rubygems_version: 2.
|
|
182
|
+
rubygems_version: 2.6.14
|
|
183
183
|
signing_key:
|
|
184
184
|
specification_version: 4
|
|
185
185
|
summary: Bulkheading for Ruby with SysV semaphores
|