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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 18b8637ba49480ffcad6eac58e51e952ca22c1b7
4
- data.tar.gz: 7e218133a50995d898178c29d24d898a77587d9e
3
+ metadata.gz: 775f54c0a801e61d0c6a2debe7086526b2bbad82
4
+ data.tar.gz: ce95fea56b826c24f7975aca5018346522c30ea2
5
5
  SHA512:
6
- metadata.gz: 56a43c5cc8315d5cb60fcfea982d07af70059e0559af775ae1d1a2ed2dae056ce7f564bbaeef2b70a630d1b6582a3342cccb029c0d75750c983ec2f5dfbc014b
7
- data.tar.gz: af265913220b1cd1483290c151223a9b07b1cf3c1cd409c70b67e1965dc85c66f68f8a60069440e90fb20e89b3984fad7f81a745dd1887069024a3cc1f383de9
6
+ metadata.gz: d0456dc5434165c6773dfb36e3e37a0c3e937f0e2e91b3249a08763ab9b128c134eb77eede0708f992be20b801a1af552bba362356e5968d83ff38c1c07abeb9
7
+ data.tar.gz: 1bc6c3d6edc5487a578a94e1bd3125cc48de925937a89676eae7120a9a4604f87b22d8acb50fd9297cb969cd863aff1547c88d8b6c17813720e7a6dfed116d96
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sub_pub (0.0.15)
4
+ sub_pub (0.0.16)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -46,11 +46,9 @@ module SubPub
46
46
  !instance.enabled
47
47
  end
48
48
 
49
- def publish(*args, &block)
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)
@@ -1,3 +1,3 @@
1
1
  module SubPub
2
- VERSION = "0.0.15"
2
+ VERSION = "0.0.16"
3
3
  end
@@ -32,7 +32,7 @@ describe SubPub do
32
32
 
33
33
  it "does not publish" do
34
34
  ActiveSupport::Notifications.should_receive(:publish).never
35
- SubPub.publish
35
+ SubPub.publish("my-message")
36
36
  end
37
37
  end
38
38
 
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.15
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: 2014-10-27 00:00:00.000000000 Z
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.0.3
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