semian 0.20.1 → 0.21.1

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
  SHA256:
3
- metadata.gz: bf43c5c57553b9262a1c1c4ef782fe92483480c1793604c9d0c7b328b907de53
4
- data.tar.gz: c8d73c47247f10cdac57053356f61e65bdb5f38c134b2122f030e42dc175b26d
3
+ metadata.gz: 582286749e5f1d41b7ba0241f7296a28edb9eedfceb06c60abb49c56c2cc7548
4
+ data.tar.gz: 44d76f2a1f2116e638dd5360de8900e8cee73e0efb82501746d35213dc3d0df0
5
5
  SHA512:
6
- metadata.gz: e6c96130e5c56f963e7ab63f1d561c843a8d3ff93593981bfe819d034dcf3c3e88a4a3a00b35c8779b8529629ea8fa29cd06e73acec0233ec1b909bd32184057
7
- data.tar.gz: 589794eedc49e355705f82271743346a289f10aba2089d80a89a9eade0fa4a221d5476142e3c20aee3a501139ceb6c82217bed378842e6f91cc6f5cb54fc5636
6
+ metadata.gz: cb3fddb047e11477d1413a8d33faea222458c15360170242e565bf661090b8afa8b625424b8734801737f68d8e23edafcc1ffdd8fcb35ea2c2e1ea761e7d690a
7
+ data.tar.gz: 2d11aea9d0f390b127e1b05df0dbde3d9817e336f8a15e8d8010efa78afd46d45ef8e935b96f2da5e5fbca13c3f8a084c7b78d8b3159d32919b2af87fa370110
data/lib/semian/rails.rb CHANGED
@@ -39,7 +39,7 @@ module Semian
39
39
  # - @raw_connection is for 7.0.x
40
40
  # - @connection is for versions below 6.1.x and below
41
41
  def client_connection
42
- if respond_to?(:valid_raw_connection)
42
+ if respond_to?(:valid_raw_connection, true)
43
43
  valid_raw_connection
44
44
  elsif instance_variable_defined?(:@raw_connection)
45
45
  @raw_connection
@@ -42,13 +42,11 @@ module Semian
42
42
  end
43
43
 
44
44
  module RedisV5Client
45
- private
46
-
47
45
  def translate_error!(error)
48
46
  redis_error = translate_error_class(error.class)
49
47
  if redis_error < ::Semian::AdapterError
50
48
  redis_error = redis_error.new(error.message)
51
- redis_error.semian_identifier = semian_identifier
49
+ redis_error.semian_identifier = error.semian_identifier
52
50
  end
53
51
  raise redis_error, error.message, error.backtrace
54
52
  end
@@ -56,4 +54,4 @@ module Semian
56
54
  end
57
55
 
58
56
  ::Redis.prepend(Semian::RedisV5)
59
- ::Redis::Client.prepend(Semian::RedisV5Client)
57
+ ::Redis::Client.singleton_class.prepend(Semian::RedisV5Client)
data/lib/semian/redis.rb CHANGED
@@ -4,7 +4,8 @@ require "semian/adapter"
4
4
  require "redis"
5
5
 
6
6
  if Redis::VERSION >= "5"
7
- gem "redis", ">= 5.0.3"
7
+ gem "redis", ">= 5.0.7"
8
+ gem "redis-client", ">= 0.19.0"
8
9
  require "semian/redis/v5"
9
10
  return
10
11
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Semian
4
- VERSION = "0.20.1"
4
+ VERSION = "0.21.1"
5
5
  end
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.20.1
4
+ version: 0.21.1
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: 2023-10-27 00:00:00.000000000 Z
13
+ date: 2024-01-10 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: |2
16
16
  A Ruby C extention that is used to control access to shared resources
@@ -60,7 +60,7 @@ licenses:
60
60
  metadata:
61
61
  allowed_push_host: https://rubygems.org
62
62
  bug_tracker_uri: https://github.com/Shopify/semian/issues
63
- changelog_uri: https://github.com/Shopify/semian/blob/master/CHANGELOG.md
63
+ changelog_uri: https://github.com/Shopify/semian/blob/main/CHANGELOG.md
64
64
  documentation_uri: https://github.com/Shopify/semian
65
65
  homepage_uri: https://github.com/Shopify/semian
66
66
  source_code_uri: https://github.com/Shopify/semian
@@ -79,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  - !ruby/object:Gem::Version
80
80
  version: '0'
81
81
  requirements: []
82
- rubygems_version: 3.4.21
82
+ rubygems_version: 3.5.4
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Bulkheading for Ruby with SysV semaphores