pubsubstub 0.2.2 → 0.3.0

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: 6c8dd8515862da676e40ce08fc68bbacc2c3fc1a5d5774fe0120c45606a0f40e
4
- data.tar.gz: b09ba3fcf02b39d4f119daecb8ea8e6099ae06d60466d88c04602a51f654be90
3
+ metadata.gz: c0119eecc1e20e95bad0ebae583d2df813c76e3c99234d57ebea86ab4809fb3c
4
+ data.tar.gz: 5ea2a726c9e52f4fbd347bfaca1683d6ab5ae57d401c10699fe992f686b4e938
5
5
  SHA512:
6
- metadata.gz: 76cb8590bb052cfd85426def3697bbf17a870119c6720469a42a2bb3ae5a33e960ccfb4d983855d30525134870a3b71443b19a59279d62180b45b80562938867
7
- data.tar.gz: 6f8ff354315f011a332f0a838c499adfcd8cb8c5ad8fa0905376abf9fa8541dc232a56400dfe591eae3f5f82a7ca4f44347b3cdfa1b9dee517d88f83bcc5d8e9
6
+ metadata.gz: 210a377f7a47fa5a2a1d8b59a60b2a0aa83980fc25f5ec8e3895b731085180a4e90c0a9a20f90d67926d1bbb1126f05239a2614d28f32e1b0e0dafc985ccfd0f
7
+ data.tar.gz: 4eb1be772be42fbcfe66034ca1ed410eb75f858f64e764d0247be6ad324940b1eb9e68ba6199ffd67c5ae1439152327690f482fd9edc0a0015d513eeceab3b5e
@@ -1,3 +1,3 @@
1
1
  module Pubsubstub
2
- VERSION = "0.2.2"
2
+ VERSION = "0.3.0"
3
3
  end
data/lib/pubsubstub.rb CHANGED
@@ -38,6 +38,10 @@ module Pubsubstub
38
38
  @redis || synchronize { @redis ||= new_redis }
39
39
  end
40
40
 
41
+ def redis=(client)
42
+ synchronize { @redis = client }
43
+ end
44
+
41
45
  def new_redis
42
46
  Redis.new(url: redis_url)
43
47
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pubsubstub
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Guillaume Malette
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-08 00:00:00.000000000 Z
11
+ date: 2024-11-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -114,7 +114,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
- rubygems_version: 3.3.3
117
+ rubygems_version: 3.5.11
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: Pubsubstub is a rack middleware to add Pub/Sub