semian 0.21.2 → 0.21.3

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: f07497a8f77d5309e042951ac2c15d6a8e420abcafea896890a103e78fe05118
4
- data.tar.gz: bfbd847f058a7bd3b7a947f3f610037fb4aa5e83fa9bfcc62c45ffee9a65c84e
3
+ metadata.gz: 86eb12415dc2e681f9a24df85bc1b8b6498da3833e50d217bc1e69e2c8696cf0
4
+ data.tar.gz: c919fbbf5eb02a44ac38c914187215559a794f007f8ea5e33ff91a9ebd13b3f9
5
5
  SHA512:
6
- metadata.gz: 706b48ac696d80d501186e6547ccfeb27580557d7b329f2fc91c9ad61312d459b0c46c7feedf3309cd60c858a76bf9b226f5928021edd427473df9b1d63a2111
7
- data.tar.gz: 9765572757897eedc79532ecf8c80b9286e14c18f2c5239b459ce20f6de8f2522931404fbd6d613a8a63f9302350e16b178d0d4887aa028a18970ef6a19bbc65
6
+ metadata.gz: 5cebfd79bbaad7b77f17399c745674dd1b850fd8742e5a87af320326bf77273979c2cceec2fef292f6779f6100b088aab22d7aed9be80f46a7b5eadb2c6790c6
7
+ data.tar.gz: 1d093b46109d85c20ace2570e652608f6cba7cb3d18a79443f9dbca002f479c208d2ab45026355b6637ac0b506c906ea9d0379eaee62fe1f2eff5a14152be5c5
@@ -100,17 +100,17 @@ module Semian
100
100
  end
101
101
 
102
102
  def with_resource_timeout(temp_timeout)
103
- if connection.nil?
103
+ if @raw_connection.nil?
104
104
  prev_read_timeout = @config[:read_timeout] || 0
105
105
  @config.merge!(read_timeout: temp_timeout) # Create new client with temp_timeout for read timeout
106
106
  else
107
- prev_read_timeout = connection.read_timeout
108
- connection.read_timeout = temp_timeout
107
+ prev_read_timeout = @raw_connection.read_timeout
108
+ @raw_connection.read_timeout = temp_timeout
109
109
  end
110
110
  yield
111
111
  ensure
112
112
  @config.merge!(read_timeout: prev_read_timeout)
113
- connection&.read_timeout = prev_read_timeout
113
+ @raw_connection&.read_timeout = prev_read_timeout
114
114
  end
115
115
 
116
116
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Semian
4
- VERSION = "0.21.2"
4
+ VERSION = "0.21.3"
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.21.2
4
+ version: 0.21.3
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: 2024-01-17 00:00:00.000000000 Z
13
+ date: 2024-02-19 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
@@ -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.5.4
82
+ rubygems_version: 3.5.6
83
83
  signing_key:
84
84
  specification_version: 4
85
85
  summary: Bulkheading for Ruby with SysV semaphores