broadcaster 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 0ae6565dba10ebb367ec4454148293dd205c48cb
4
+ data.tar.gz: fd6102f4293dc93488a2e0a82828b01fe294e821
5
+ SHA512:
6
+ metadata.gz: e6766995f6d199435b7dcb63aa0cf90d1633d89b61e7d72e3eb2d7e4f8f13ac30163800ae51e0e6db75a57cb0f0fd0204e44f82d9b06bfccb60e5c3e1aaf3ff0
7
+ data.tar.gz: 8e875c87c94387862f724c57f41bcf7ade8156f117e3bade30680fed816ab7c8c29c44b8ab0d1eb910d0f1bd16551eac20e8deae32d7e477cf01effd8e9aa889
data/.coveralls.yml ADDED
@@ -0,0 +1,2 @@
1
+ service_name: travis-ci
2
+ repo_token: DIwiPcMHvmwcB0uOFrsaZ3ftClakHZSCM
data/.gitignore ADDED
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ broadcaster
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-2.3.0
data/.travis.yml ADDED
@@ -0,0 +1,13 @@
1
+ language: ruby
2
+ rvm:
3
+ - 1.9.3
4
+ - 2.0
5
+ - 2.1
6
+ - 2.2
7
+ - 2.3.0
8
+ - 2.4.0
9
+ - jruby
10
+ before_install:
11
+ - gem install bundler
12
+ services:
13
+ - redis-server
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in broadcaster.gemspec
4
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Gabriel Naiman
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,72 @@
1
+ # Broadcaster
2
+
3
+ [![Gem Version](https://badge.fury.io/rb/broadcaster.svg)](https://rubygems.org/gems/broadcaster)
4
+ [![Build Status](https://travis-ci.org/gabynaiman/broadcaster.svg?branch=master)](https://travis-ci.org/gabynaiman/broadcaster)
5
+ [![Coverage Status](https://coveralls.io/repos/gabynaiman/broadcaster/badge.svg?branch=master)](https://coveralls.io/r/gabynaiman/broadcaster?branch=master)
6
+ [![Code Climate](https://codeclimate.com/github/gabynaiman/broadcaster.svg)](https://codeclimate.com/github/gabynaiman/broadcaster)
7
+ [![Dependency Status](https://gemnasium.com/gabynaiman/broadcaster.svg)](https://gemnasium.com/gabynaiman/broadcaster)
8
+
9
+ Broadcasting based on Redis PubSub
10
+
11
+ ## Installation
12
+
13
+ Add this line to your application's Gemfile:
14
+
15
+ ```ruby
16
+ gem 'broadcaster'
17
+ ```
18
+
19
+ And then execute:
20
+
21
+ $ bundle
22
+
23
+ Or install it yourself as:
24
+
25
+ $ gem install broadcaster
26
+
27
+ ## Usage
28
+
29
+ ```ruby
30
+ broadcaster = Broadcaster.new
31
+
32
+ subscription_id = broadcaster.subscribe 'channel_1' do |message|
33
+ puts message
34
+ end
35
+
36
+ broadcaster.publish 'channel_1', 'text'
37
+ broadcaster.publish 'channel_1', 1
38
+ broadcaster.publish 'channel_1', key: 'value'
39
+
40
+ broadcaster.unsubscribe subscription_id
41
+ broadcaster.unsubscribe_all
42
+ ```
43
+
44
+ ## Global configuration
45
+
46
+ ```ruby
47
+ Broadcaster.configure do |config|
48
+ config.logger = Logger.new '/file.log'
49
+ config.redis_url = 'redis://host_name:6379'
50
+ end
51
+ ```
52
+
53
+ ## Options
54
+
55
+ ```ruby
56
+ options = {
57
+ id: 'my_app', # Shared broadcaster for multiple processes
58
+ redis_url: 'redis://host_name:6379', # Custom redis connection
59
+ logger: Logger.new('/file.log') # Custom logger
60
+ }
61
+
62
+ Broadcaster.new options
63
+ ```
64
+
65
+ ## Contributing
66
+
67
+ Bug reports and pull requests are welcome on GitHub at https://github.com/gabynaiman/broadcaster.
68
+
69
+ ## License
70
+
71
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
72
+
data/Rakefile ADDED
@@ -0,0 +1,23 @@
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new(:spec) do |t|
5
+ t.libs << 'spec'
6
+ t.pattern = 'spec/**/*_spec.rb'
7
+ t.verbose = false
8
+ t.warning = false
9
+ t.loader = nil if ENV['TEST']
10
+ ENV['TEST'], ENV['LINE'] = ENV['TEST'].split(':') if ENV['TEST'] && !ENV['LINE']
11
+ t.options = ''
12
+ t.options << "--name=/#{ENV['NAME']}/ " if ENV['NAME']
13
+ t.options << "-l #{ENV['LINE']} " if ENV['LINE'] && ENV['TEST']
14
+ end
15
+
16
+ task :console do
17
+ require 'pry'
18
+ require 'broadcaster'
19
+ ARGV.clear
20
+ Pry.start
21
+ end
22
+
23
+ task default: :spec
@@ -0,0 +1,37 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'broadcaster'
7
+ spec.version = '0.1.0'
8
+ spec.authors = ['Gabriel Naiman']
9
+ spec.email = ['gabynaiman@gmail.com']
10
+ spec.summary = 'Broadcasting based on Redis PubSub'
11
+ spec.description = 'Broadcasting based on Redis PubSub'
12
+ spec.homepage = 'https://github.com/gabynaiman/broadcaster'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ['lib']
19
+
20
+ spec.add_dependency 'redic', '~> 1.5'
21
+ spec.add_dependency 'class_config', '~> 0.0'
22
+
23
+ spec.add_development_dependency 'bundler', '~> 1.12'
24
+ spec.add_development_dependency 'rake', '~> 11.0'
25
+ spec.add_development_dependency 'minitest', '~> 5.0'
26
+ spec.add_development_dependency 'minitest-colorin', '~> 0.1'
27
+ spec.add_development_dependency 'minitest-line', '~> 0.6'
28
+ spec.add_development_dependency 'simplecov', '~> 0.12'
29
+ spec.add_development_dependency 'coveralls', '~> 0.8'
30
+ spec.add_development_dependency 'pry-nav', '~> 0.2'
31
+
32
+ if RUBY_VERSION < '2'
33
+ spec.add_development_dependency 'term-ansicolor', '~> 1.3.0'
34
+ spec.add_development_dependency 'tins', '~> 1.6.0'
35
+ spec.add_development_dependency 'json', '~> 1.8'
36
+ end
37
+ end
@@ -0,0 +1,88 @@
1
+ require 'redic'
2
+ require 'class_config'
3
+ require 'logger'
4
+
5
+ class Broadcaster
6
+
7
+ extend ClassConfig
8
+
9
+ attr_config :redis_url, 'redis://localhost:6379'
10
+ attr_config :logger, Logger.new(STDOUT)
11
+
12
+ attr_reader :id
13
+
14
+ def initialize(options={})
15
+ @id = options.fetch(:id, SecureRandom.uuid)
16
+ @logger = options.fetch(:logger, Broadcaster.logger)
17
+ @publisher = Redic.new options.fetch(:redis_url, Broadcaster.redis_url)
18
+ @subscriber = Redic.new options.fetch(:redis_url, Broadcaster.redis_url)
19
+ @subscriptions = Hash.new { |h,k| h[k] = {} }
20
+ @mutex = Mutex.new
21
+ listen
22
+ end
23
+
24
+ def publish(channel, message)
25
+ logger.debug(self.class) { "Published | #{scoped(channel)} | #{message}" }
26
+ publisher.call 'PUBLISH', scoped(channel), Marshal.dump(message)
27
+ end
28
+
29
+ def subscribe(channel, callable=nil, &block)
30
+ mutex.synchronize do
31
+ SecureRandom.uuid.tap do |subscription_id|
32
+ logger.debug(self.class) { "Subscribed | #{scoped(channel)} | #{subscription_id}" }
33
+ subscriptions[scoped(channel)][subscription_id] = callable || block
34
+ end
35
+ end
36
+ end
37
+
38
+ def unsubscribe(subscription_id)
39
+ mutex.synchronize do
40
+ channel, _ = subscriptions.detect { |k,v| v.key? subscription_id }
41
+ if channel
42
+ logger.debug(self.class) { "Unsubscribed | #{channel} | #{subscription_id}" }
43
+ block = subscriptions[channel].delete subscription_id
44
+ subscriptions.delete_if { |k,v| v.empty? }
45
+ block
46
+ end
47
+ end
48
+ end
49
+
50
+ def unsubscribe_all
51
+ mutex.synchronize do
52
+ logger.debug(self.class) { 'Unsubscribed all' }
53
+ subscriptions.clear
54
+ end
55
+ end
56
+
57
+ private
58
+
59
+ attr_reader :publisher, :subscriber, :subscriptions, :mutex, :logger
60
+
61
+ def scoped(channel)
62
+ "#{id}:#{channel}"
63
+ end
64
+
65
+ def listen
66
+ logger.debug(self.class) { 'Start listening' }
67
+ subscriber.call 'PSUBSCRIBE', scoped('*')
68
+
69
+ Thread.new do
70
+ loop do
71
+ notification = subscriber.client.read
72
+ channel = notification[2]
73
+ message = Marshal.load notification[3]
74
+ logger.debug(self.class) { "Broadcasting (#{subscriptions[channel].count}) | #{channel} | #{message}" }
75
+ mutex.synchronize do
76
+ subscriptions[channel].each do |subscription_id, block|
77
+ begin
78
+ block.call message
79
+ rescue => ex
80
+ logger.error(self.class) { "Failed | #{scoped(channel)} | #{subscription_id} | #{message}\n#{ex.class}: #{ex.message}\n#{ex.backtrace.join("\n")}" }
81
+ end
82
+ end
83
+ end
84
+ end
85
+ end
86
+ end
87
+
88
+ end
@@ -0,0 +1,145 @@
1
+ require 'minitest_helper'
2
+
3
+ describe Broadcaster do
4
+
5
+ def wait_for(&block)
6
+ Timeout.timeout(3) do
7
+ while !block.call
8
+ sleep 0.001
9
+ end
10
+ end
11
+ end
12
+
13
+ it 'Multiple channels' do
14
+ broadcaster = Broadcaster.new
15
+
16
+ received_messages = Hash.new { |h,k| h[k] = [] }
17
+
18
+ %w(channel_1 channel_2).each do |channel|
19
+ broadcaster.subscribe channel do |message|
20
+ received_messages[channel] << message
21
+ end
22
+ end
23
+
24
+ broadcaster.publish 'channel_1', 'message 1'
25
+ broadcaster.publish 'channel_2', 'message 2'
26
+ broadcaster.publish 'channel_2', 'message 3'
27
+ broadcaster.publish 'channel_1', 'message 4'
28
+
29
+ wait_for { received_messages.values.flatten.count == 4 }
30
+
31
+ received_messages.must_equal 'channel_1' => ['message 1', 'message 4'],
32
+ 'channel_2' => ['message 2', 'message 3']
33
+ end
34
+
35
+ it 'Error handling' do
36
+ broadcaster = Broadcaster.new
37
+
38
+ received_messages = []
39
+
40
+ broadcaster.subscribe 'channel_1' do |message|
41
+ received_messages << (10 / message)
42
+ end
43
+
44
+ broadcaster.publish 'channel_1', 5
45
+ broadcaster.publish 'channel_1', 0
46
+ broadcaster.publish 'channel_1', 2
47
+
48
+ wait_for { received_messages.count == 2 }
49
+
50
+ received_messages.must_equal [2, 5]
51
+ end
52
+
53
+ it 'Unsubscribe' do
54
+ broadcaster = Broadcaster.new
55
+
56
+ received_messages = Hash.new { |h,k| h[k] = [] }
57
+
58
+ subscriptions = 2.times.map do |i|
59
+ broadcaster.subscribe 'channel_1' do |message|
60
+ received_messages[i] << message
61
+ end
62
+ end
63
+
64
+ broadcaster.publish 'channel_1', 'message 1'
65
+
66
+ wait_for { received_messages.values.flatten.count == 2 }
67
+
68
+ broadcaster.unsubscribe subscriptions[1]
69
+
70
+ broadcaster.publish 'channel_1', 'message 2'
71
+
72
+ wait_for { received_messages.values.flatten.count == 3 }
73
+
74
+ received_messages.must_equal 0 => ['message 1', 'message 2'],
75
+ 1 => ['message 1']
76
+ end
77
+
78
+ it 'Unsubscribe all' do
79
+ broadcaster = Broadcaster.new
80
+
81
+ received_messages = []
82
+
83
+ 2.times.map do
84
+ broadcaster.subscribe 'channel_1' do |message|
85
+ received_messages << message
86
+ end
87
+ end
88
+
89
+ broadcaster.publish 'channel_1', 'message 1'
90
+
91
+ wait_for { received_messages.count == 2 }
92
+
93
+ broadcaster.unsubscribe_all
94
+
95
+ broadcaster.publish 'channel_1', 'message 2'
96
+
97
+ received_messages.must_equal ['message 1', 'message 1']
98
+ end
99
+
100
+ it 'Isolated' do
101
+ broadcasters = 2.times.map { Broadcaster.new }
102
+
103
+ received_messages = Hash.new { |h,k| h[k] = [] }
104
+
105
+ broadcasters.each_with_index do |broadcaster, index|
106
+ broadcaster.subscribe 'channel_1' do |message|
107
+ received_messages[index] << message
108
+ end
109
+ end
110
+
111
+ broadcasters[0].publish 'channel_1', 'message 1'
112
+ broadcasters[1].publish 'channel_1', 'message 2'
113
+
114
+ wait_for { received_messages.values.flatten.count == 2 }
115
+
116
+ received_messages.must_equal 0 => ['message 1'],
117
+ 1 => ['message 2']
118
+ end
119
+
120
+ it 'Shared' do
121
+ broadcasters = 2.times.map { Broadcaster.new id: 'test' }
122
+
123
+ received_messages = Hash.new { |h,k| h[k] = [] }
124
+
125
+ broadcasters.each_with_index do |broadcaster, index|
126
+ broadcaster.subscribe 'channel_1' do |message|
127
+ received_messages[index] << message
128
+ end
129
+ end
130
+
131
+ broadcasters[0].publish 'channel_1', 'message 1'
132
+ broadcasters[1].publish 'channel_1', 'message 2'
133
+
134
+ wait_for { received_messages.values.flatten.count == 4 }
135
+
136
+ received_messages.must_equal 0 => ['message 1', 'message 2'],
137
+ 1 => ['message 1', 'message 2']
138
+ end
139
+
140
+ it 'Custom redis url' do
141
+ error = proc { Broadcaster.new redis_url: 'redis://invalid_host:6379' }.must_raise StandardError
142
+ error.message.must_match 'invalid_host'
143
+ end
144
+
145
+ end
@@ -0,0 +1,15 @@
1
+ require 'simplecov'
2
+ require 'coveralls'
3
+
4
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new [SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter]
5
+ SimpleCov.start
6
+
7
+ require 'broadcaster'
8
+ require 'minitest/autorun'
9
+ require 'minitest/colorin'
10
+ require 'pry-nav'
11
+ require 'timeout'
12
+
13
+ Broadcaster.configure do |config|
14
+ config.logger = Logger.new '/dev/null'
15
+ end
metadata ADDED
@@ -0,0 +1,199 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: broadcaster
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Gabriel Naiman
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-01-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: redic
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: class_config
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '0.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '0.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.12'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.12'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '11.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '11.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: minitest
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '5.0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '5.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: minitest-colorin
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '0.1'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '0.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: minitest-line
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '0.6'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '0.6'
111
+ - !ruby/object:Gem::Dependency
112
+ name: simplecov
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '0.12'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '0.12'
125
+ - !ruby/object:Gem::Dependency
126
+ name: coveralls
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.8'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.8'
139
+ - !ruby/object:Gem::Dependency
140
+ name: pry-nav
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '0.2'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '0.2'
153
+ description: Broadcasting based on Redis PubSub
154
+ email:
155
+ - gabynaiman@gmail.com
156
+ executables: []
157
+ extensions: []
158
+ extra_rdoc_files: []
159
+ files:
160
+ - ".coveralls.yml"
161
+ - ".gitignore"
162
+ - ".ruby-gemset"
163
+ - ".ruby-version"
164
+ - ".travis.yml"
165
+ - Gemfile
166
+ - LICENSE.txt
167
+ - README.md
168
+ - Rakefile
169
+ - broadcaster.gemspec
170
+ - lib/broadcaster.rb
171
+ - spec/broadcast_spec.rb
172
+ - spec/minitest_helper.rb
173
+ homepage: https://github.com/gabynaiman/broadcaster
174
+ licenses:
175
+ - MIT
176
+ metadata: {}
177
+ post_install_message:
178
+ rdoc_options: []
179
+ require_paths:
180
+ - lib
181
+ required_ruby_version: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - ">="
184
+ - !ruby/object:Gem::Version
185
+ version: '0'
186
+ required_rubygems_version: !ruby/object:Gem::Requirement
187
+ requirements:
188
+ - - ">="
189
+ - !ruby/object:Gem::Version
190
+ version: '0'
191
+ requirements: []
192
+ rubyforge_project:
193
+ rubygems_version: 2.5.1
194
+ signing_key:
195
+ specification_version: 4
196
+ summary: Broadcasting based on Redis PubSub
197
+ test_files:
198
+ - spec/broadcast_spec.rb
199
+ - spec/minitest_helper.rb