pubsubstub 0.0.14 → 0.0.15
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/pubsubstub/application.rb +0 -6
- data/lib/pubsubstub/redis_pub_sub.rb +1 -1
- data/lib/pubsubstub/version.rb +1 -1
- data/lib/pubsubstub.rb +7 -0
- data/spec/redis_pub_sub_spec.rb +15 -0
- 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: e14d40f41e5f06347d7f552009f53d29bb3d4942
|
4
|
+
data.tar.gz: e1fca82791cb2f1769aa8bf3a6076736b70f8e4c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dad828aea534513d6acef76af10e057e8ad21f8804c1fccc9102ce1c1db8149dedd5e74f9730d4a4d64a67b1815fdc05b70149e2f9f561b90582cd9ac1c3fc7d
|
7
|
+
data.tar.gz: a9afa981566c4320fd578e99dbb843e537e2e1f10d668ab735929ec96dcc34a9a99eb0bad3c013594a378f544c130cb8ffbfce6700b42270005e5a03218d79e6
|
data/lib/pubsubstub/version.rb
CHANGED
data/lib/pubsubstub.rb
CHANGED
data/spec/redis_pub_sub_spec.rb
CHANGED
@@ -34,6 +34,21 @@ describe Pubsubstub::RedisPubSub do
|
|
34
34
|
expect(subject.blocking_redis.zcard("test.scrollback")).to eq(count - 1)
|
35
35
|
end
|
36
36
|
end
|
37
|
+
|
38
|
+
describe "#redis_url" do
|
39
|
+
it "uses the fallback url fallback chain" do
|
40
|
+
Pubsubstub.redis_url = "redis://localhost:6379/1"
|
41
|
+
expect(Pubsubstub::RedisPubSub.redis_url).to eq("redis://localhost:6379/1")
|
42
|
+
|
43
|
+
Pubsubstub.redis_url = nil
|
44
|
+
ENV['REDIS_URL'] = "redis://localhost:6379/2"
|
45
|
+
expect(Pubsubstub::RedisPubSub.redis_url).to eq("redis://localhost:6379/2")
|
46
|
+
|
47
|
+
Pubsubstub::RedisPubSub.instance_variable_set(:@blocking_redis, nil)
|
48
|
+
ENV['REDIS_URL'] = nil
|
49
|
+
expect(Pubsubstub::RedisPubSub.redis_url).to eq("redis://localhost:6379/0")
|
50
|
+
end
|
51
|
+
end
|
37
52
|
end
|
38
53
|
|
39
54
|
context "pubsub" do
|
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.0.
|
4
|
+
version: 0.0.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Malette
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sinatra
|
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
230
|
version: '0'
|
231
231
|
requirements: []
|
232
232
|
rubyforge_project:
|
233
|
-
rubygems_version: 2.
|
233
|
+
rubygems_version: 2.4.8
|
234
234
|
signing_key:
|
235
235
|
specification_version: 4
|
236
236
|
summary: Pubsubstub is a rack middleware to add Pub/Sub
|