sub_pub 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/sub_pub/register.rb +1 -3
- data/lib/sub_pub/version.rb +1 -1
- data/spec/integration/sub_pub_spec.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 775f54c0a801e61d0c6a2debe7086526b2bbad82
|
4
|
+
data.tar.gz: ce95fea56b826c24f7975aca5018346522c30ea2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0456dc5434165c6773dfb36e3e37a0c3e937f0e2e91b3249a08763ab9b128c134eb77eede0708f992be20b801a1af552bba362356e5968d83ff38c1c07abeb9
|
7
|
+
data.tar.gz: 1bc6c3d6edc5487a578a94e1bd3125cc48de925937a89676eae7120a9a4604f87b22d8acb50fd9297cb969cd863aff1547c88d8b6c17813720e7a6dfed116d96
|
data/Gemfile.lock
CHANGED
data/lib/sub_pub/register.rb
CHANGED
@@ -46,11 +46,9 @@ module SubPub
|
|
46
46
|
!instance.enabled
|
47
47
|
end
|
48
48
|
|
49
|
-
def publish(
|
49
|
+
def publish(topic, payload = {}, &block)
|
50
50
|
return if disabled?
|
51
51
|
|
52
|
-
topic = args.shift
|
53
|
-
payload = args.last
|
54
52
|
full_topic = scoped(topic).full_topic
|
55
53
|
|
56
54
|
ActiveSupport::Notifications.publish(full_topic, payload, &block)
|
data/lib/sub_pub/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sub_pub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- zephyr-dev@googlegroups.com
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-10-15 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: In process publish/subscribe for Ruby
|
14
14
|
email:
|
@@ -17,9 +17,9 @@ executables: []
|
|
17
17
|
extensions: []
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
|
-
- .gitignore
|
21
|
-
- .rspec
|
22
|
-
- .travis.yml
|
20
|
+
- ".gitignore"
|
21
|
+
- ".rspec"
|
22
|
+
- ".travis.yml"
|
23
23
|
- Gemfile
|
24
24
|
- Gemfile.lock
|
25
25
|
- LICENSE.txt
|
@@ -61,17 +61,17 @@ require_paths:
|
|
61
61
|
- lib
|
62
62
|
required_ruby_version: !ruby/object:Gem::Requirement
|
63
63
|
requirements:
|
64
|
-
- -
|
64
|
+
- - ">="
|
65
65
|
- !ruby/object:Gem::Version
|
66
66
|
version: '0'
|
67
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- -
|
69
|
+
- - ">="
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
requirements: []
|
73
73
|
rubyforge_project:
|
74
|
-
rubygems_version: 2.
|
74
|
+
rubygems_version: 2.4.3
|
75
75
|
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: SubPub is a thin wrapper around ActiveSupport::Notifications, which provides
|