philotic 0.2.4 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,7 @@
1
1
  require 'spec_helper'
2
2
  require 'philotic/dummy_event'
3
+ require 'philotic/connection'
4
+ require 'philotic/publisher'
3
5
 
4
6
  describe Philotic::Publisher do
5
7
  let(:event) do
@@ -11,16 +13,9 @@ describe Philotic::Publisher do
11
13
 
12
14
  event
13
15
  end
14
- let(:publisher) { Philotic::Publisher }
16
+ let(:publisher) { Philotic::Connection.new.publisher }
15
17
  subject { publisher }
16
18
 
17
- describe 'config' do
18
- it 'should return the Philotic::Config singleton' do
19
- expect(subject.config).to eq Philotic::Config
20
- end
21
- end
22
-
23
-
24
19
  describe 'publish' do
25
20
  it 'should call _publish with the right values' do
26
21
  Timecop.freeze
@@ -51,10 +46,10 @@ describe Philotic::Publisher do
51
46
  it 'should call exchange.publish with the right values' do
52
47
  Timecop.freeze
53
48
  exchange = double
54
- expect(Philotic::Connection).to receive(:exchange).and_return(exchange)
49
+ expect(subject.connection).to receive(:exchange).and_return(exchange)
55
50
 
56
- expect(Philotic).to receive(:connect!)
57
- expect(Philotic::Connection).to receive(:connected?).and_return(true)
51
+ expect(subject.connection).to receive(:connect!)
52
+ expect(subject.connection).to receive(:connected?).and_return(true)
58
53
  metadata = {
59
54
  routing_key: nil,
60
55
  persistent: true,
@@ -94,10 +89,10 @@ describe Philotic::Publisher do
94
89
  it 'should log an error when there is no connection' do
95
90
 
96
91
 
97
- expect(Philotic).to receive(:connect!)
98
- expect(Philotic::Connection).to receive(:connected?).once.and_return(false)
92
+ expect(subject.connection).to receive(:connect!)
93
+ expect(subject.connection).to receive(:connected?).once.and_return(false)
99
94
 
100
- expect(Philotic.logger).to receive(:error)
95
+ expect(subject.logger).to receive(:error)
101
96
  subject.publish(event)
102
97
  end
103
98
 
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Philotic::Routable do
4
- context "including the module on class" do
4
+ context 'including the module on class' do
5
5
  let(:routable_event_class) {
6
6
  Class.new do
7
7
  include Philotic::Routable
@@ -21,7 +21,7 @@ describe Philotic::Routable do
21
21
  specify { expect(subject.methods).to include method_name.to_sym }
22
22
  end
23
23
 
24
- context " and then instantiating it" do
24
+ context ' and then instantiating it' do
25
25
  let(:routable_event_instance) { routable_event_class.new }
26
26
  subject { routable_event_instance }
27
27
 
@@ -37,16 +37,11 @@ describe Philotic::Routable do
37
37
  expect(subject.attributes).to eq({routable_attr: nil, payload_attr: nil})
38
38
  end
39
39
 
40
- it 'should call Philotic::Publisher.publish with subject' do
41
- expect(Philotic::Publisher).to receive(:publish).with(subject)
42
- subject.publish
43
- end
44
-
45
40
  it 'should have empty message_metadata' do
46
41
  expect(subject.message_metadata).to eq({})
47
42
  end
48
43
 
49
- context "overriding a value with message_metadata=" do
44
+ context 'overriding a value with message_metadata=' do
50
45
  before do
51
46
  routable_event_instance.message_metadata = {mandatory: false}
52
47
  end
@@ -1,12 +1,15 @@
1
1
  require 'spec_helper'
2
2
  require 'philotic/dummy_event'
3
+ require 'philotic/connection'
3
4
  require 'philotic/constants'
5
+ require 'philotic/subscriber'
4
6
 
5
7
  describe Philotic::Subscriber do
6
8
 
7
9
 
8
- describe '.subscribe' do
10
+ describe '#subscribe' do
9
11
  let(:subscription) { 'some_queue' }
12
+ subject { Philotic::Connection.new.subscriber }
10
13
  context 'when options is a string' do
11
14
  it 'binds to a queue defined by the options' do
12
15
 
@@ -19,18 +22,18 @@ describe Philotic::Subscriber do
19
22
 
20
23
  callback = lambda { |metadata, message|}
21
24
 
22
- expect(Philotic).to receive(:connect!)
25
+ expect(subject.connection).to receive(:connect!)
23
26
 
24
- expect(Philotic::Connection).to receive(:exchange).and_return(exchange)
25
- expect(Philotic::Connection).to receive(:channel).and_return(channel)
27
+ expect(subject.connection).to receive(:exchange).and_return(exchange)
28
+ expect(subject.connection).to receive(:channel).and_return(channel)
26
29
  expect(channel).to receive(:queue).and_return(queue)
27
30
 
28
31
  expect(queue).not_to receive(:bind)
29
32
  expect(queue).to receive(:subscribe).with({})
30
- expect(Philotic::Subscriber).to receive(:subscription_callback).and_yield(metadata, message)
33
+ expect(subject).to receive(:subscription_callback).and_yield(metadata, message)
31
34
  expect(callback).to receive(:call).with(metadata, message)
32
35
 
33
- Philotic::Subscriber.subscribe(subscription, &callback)
36
+ subject.subscribe(subscription, &callback)
34
37
  end
35
38
  end
36
39
 
@@ -51,23 +54,23 @@ describe Philotic::Subscriber do
51
54
 
52
55
  callback = lambda { |metadata, payload|}
53
56
 
54
- expect(Philotic).to receive(:connect!)
57
+ expect(subject.connection).to receive(:connect!)
55
58
 
56
- expect(Philotic::Connection).to receive(:exchange).and_return(exchange)
57
- expect(Philotic::Connection).to receive(:channel).and_return(channel)
59
+ expect(subject.connection).to receive(:exchange).and_return(exchange)
60
+ expect(subject.connection).to receive(:channel).and_return(channel)
58
61
  expect(channel).to receive(:queue).and_return(queue)
59
62
 
60
63
  expect(queue).to receive(:bind).with(exchange, hash_including(arguments: subscription))
61
64
  expect(queue).to receive(:subscribe).with({})
62
- expect(Philotic::Subscriber).to receive(:subscription_callback).and_yield(metadata, message)
65
+ expect(subject).to receive(:subscription_callback).and_yield(metadata, message)
63
66
  expect(callback).to receive(:call).with(metadata, message)
64
67
 
65
- Philotic::Subscriber.subscribe(subscription, &callback)
68
+ subject.subscribe(subscription, &callback)
66
69
  end
67
70
  end
68
71
  end
69
72
 
70
- describe '.subscribe_to_any' do
73
+ describe '#subscribe_to_any' do
71
74
  let(:headers) do
72
75
  {
73
76
  header1: 'h1',
@@ -75,37 +78,41 @@ describe Philotic::Subscriber do
75
78
  header3: 'h3',
76
79
  }
77
80
  end
81
+ subject { Philotic::Connection.new.subscriber }
82
+
78
83
  specify do
79
- expect(Philotic::Subscriber).to receive(:subscribe).with(headers.merge(:'x-match' => :any))
80
- Philotic::Subscriber.subscribe_to_any(headers) {}
84
+ expect(subject).to receive(:subscribe).with(headers.merge(:'x-match' => :any))
85
+ subject.subscribe_to_any(headers) {}
81
86
  end
82
87
  end
83
88
 
84
- describe '.acknowledge' do
89
+ describe '#acknowledge' do
85
90
  let(:channel) { double }
86
91
  let(:delivery_tag) { double }
87
92
  let(:delivery_info) { double }
88
93
  let(:message) { {delivery_info: delivery_info} }
94
+ subject { Philotic::Connection.new.subscriber }
89
95
 
90
96
  specify do
91
- expect(Philotic::Connection).to receive(:channel).and_return(channel)
97
+ expect(subject.connection).to receive(:channel).and_return(channel)
92
98
  expect(delivery_info).to receive(:delivery_tag).and_return(delivery_tag)
93
99
  expect(channel).to receive(:acknowledge).with(delivery_tag, false)
94
- Philotic::Subscriber.acknowledge(message)
100
+ subject.acknowledge(message)
95
101
  end
96
102
  end
97
103
 
98
- describe '.reject' do
104
+ describe '#reject' do
99
105
  let(:channel) { double }
100
106
  let(:delivery_tag) { double }
101
107
  let(:delivery_info) { double }
102
108
  let(:message) { {delivery_info: delivery_info} }
109
+ subject { Philotic::Connection.new.subscriber }
103
110
 
104
111
  specify do
105
- expect(Philotic::Connection).to receive(:channel).and_return(channel)
112
+ expect(subject.connection).to receive(:channel).and_return(channel)
106
113
  expect(delivery_info).to receive(:delivery_tag).and_return(delivery_tag)
107
114
  expect(channel).to receive(:reject).with(delivery_tag, true)
108
- Philotic::Subscriber.reject(message)
115
+ subject.reject(message)
109
116
  end
110
117
  end
111
118
  end
@@ -1,85 +1,10 @@
1
1
  require 'spec_helper'
2
+ require 'philotic'
2
3
 
3
4
  describe Philotic do
4
-
5
- describe '.initialize_named_queue!' do
6
-
7
- let(:test_queues) do
8
- {
9
- app_live_feed: {
10
- exchange: 'philotic.headers.test_app.feed.live',
11
- options: {
12
- arguments: {
13
- :'x-dead-letter-exchange' => 'philotic.headers.test_app.feed.delayed',
14
- :'x-message-ttl' => 600000 # ms
15
- }},
16
- bindings:
17
- [
18
- {
19
- philotic_product: 'test_app',
20
- philotic_component: 'app_component',
21
- :'x-match:' => 'all'
22
- },
23
- ],
24
- }
25
- }
26
- end
27
- it 'should throw an error when Philotic::Config.initialize_named_queues is falsey' do
28
- allow(Philotic::Config).to receive(:initialize_named_queues).and_return(nil)
29
- queue_name = test_queues.keys.first
30
- config = test_queues[queue_name]
31
- expect(Philotic).not_to receive(:connect!)
32
- expect { Philotic.initialize_named_queue! queue_name, config }.to raise_error
33
-
34
- end
35
-
36
- it 'should log a warning when Philotic::Config.delete_existing_queues is falsey and the queue already exists' do
37
- allow(Philotic::Config).to receive(:initialize_named_queues).and_return(true)
38
- allow(Philotic::Config).to receive(:delete_existing_queues).and_return(nil)
39
-
40
- test_queues.each_pair do |queue_name, config|
41
-
42
- connection = double
43
-
44
- expect(Philotic).to receive(:connect!)
45
- expect(Philotic::Connection).to receive(:connection).and_return(connection)
46
- expect(connection).to receive(:queue_exists?).and_return(true)
47
-
48
- expect(Philotic.logger).to receive(:warn)
49
-
50
- Philotic.initialize_named_queue! queue_name, config
51
- end
52
- end
53
-
54
- it 'should delete the queue first when Philotic::Config.delete_existing_queues is truthy and the queue already exists' do
55
- allow(Philotic::Config).to receive(:initialize_named_queues).and_return(true)
56
- allow(Philotic::Config).to receive(:delete_existing_queues).and_return(true)
57
-
58
- test_queues.each_pair do |queue_name, config|
59
-
60
- queue_options = Philotic::DEFAULT_NAMED_QUEUE_OPTIONS.dup
61
- queue_options.merge!(config[:options] || {})
62
-
63
- channel = double
64
- queue = double
65
- exchange = double
66
- connection = double
67
-
68
- expect(Philotic).to receive(:connect!)
69
- expect(Philotic::Connection).to receive(:connection).and_return(connection)
70
- expect(connection).to receive(:queue_exists?).and_return(true)
71
- expect(Philotic::Connection).to receive(:channel).and_return(channel).exactly(3).times
72
- expect(channel).to receive(:queue).with(queue_name, {passive: true}).and_return(queue)
73
- expect(queue).to receive(:delete)
74
- expect(channel).to receive(:queue).with(queue_name, queue_options).and_return(queue)
75
- expect(channel).to receive(:headers).with(config[:exchange], durable: true) { exchange }
76
- expect(queue).to receive(:name).and_return(queue_name).exactly(2).times
77
-
78
- config[:bindings].each do |arguments|
79
- expect(queue).to receive(:bind).with(exchange, {arguments: arguments})
80
- end
81
- Philotic.initialize_named_queue! queue_name, config
82
- end
5
+ describe '.connection' do
6
+ specify do
7
+ expect(Philotic.connection.class).to eq(Philotic::Connection)
83
8
  end
84
9
  end
85
10
  end
@@ -27,4 +27,5 @@ RSpec.configure do |config|
27
27
  Timecop.return
28
28
  end
29
29
  end
30
- Philotic.logger = Logger.new("/dev/null")
30
+
31
+ ENV['PHILOTIC_LOG_LEVEL'] = "#{Logger::FATAL}"
metadata CHANGED
@@ -1,164 +1,218 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: philotic
3
- version: !ruby/object:Gem::Version
4
- version: 0.2.4
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.3.0
5
5
  platform: ruby
6
- authors:
6
+ authors:
7
7
  - Nathan Keyes
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
-
12
- date: 2014-12-18 00:00:00 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
11
+ date: 2014-12-18 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
15
14
  name: codeclimate-test-reporter
16
- prerelease: false
17
- requirement: &id001 !ruby/object:Gem::Requirement
18
- requirements:
19
- - &id009
20
- - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
23
20
  type: :development
24
- version_requirements: *id001
25
- - !ruby/object:Gem::Dependency
26
- name: bundler
27
21
  prerelease: false
28
- requirement: &id002 !ruby/object:Gem::Requirement
29
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
30
31
  - - ~>
31
- - !ruby/object:Gem::Version
32
- version: "1.6"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.6'
33
34
  type: :development
34
- version_requirements: *id002
35
- - !ruby/object:Gem::Dependency
36
- name: evented-spec
37
35
  prerelease: false
38
- requirement: &id003 !ruby/object:Gem::Requirement
39
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '1.6'
41
+ - !ruby/object:Gem::Dependency
42
+ name: evented-spec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
40
45
  - - ~>
41
- - !ruby/object:Gem::Version
42
- version: "0.9"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.9'
43
48
  type: :development
44
- version_requirements: *id003
45
- - !ruby/object:Gem::Dependency
46
- name: pry
47
49
  prerelease: false
48
- requirement: &id004 !ruby/object:Gem::Requirement
49
- requirements:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
50
52
  - - ~>
51
- - !ruby/object:Gem::Version
52
- version: "0.10"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.9'
55
+ - !ruby/object:Gem::Dependency
56
+ name: pry
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '0.10'
53
62
  type: :development
54
- version_requirements: *id004
55
- - !ruby/object:Gem::Dependency
56
- name: rake
57
63
  prerelease: false
58
- requirement: &id005 !ruby/object:Gem::Requirement
59
- requirements:
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
60
66
  - - ~>
61
- - !ruby/object:Gem::Version
62
- version: "10.3"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.10'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ version: '10.3'
63
76
  type: :development
64
- version_requirements: *id005
65
- - !ruby/object:Gem::Dependency
66
- name: rspec
67
77
  prerelease: false
68
- requirement: &id006 !ruby/object:Gem::Requirement
69
- requirements:
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '10.3'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
70
87
  - - ~>
71
- - !ruby/object:Gem::Version
72
- version: "3.1"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.1'
73
90
  type: :development
74
- version_requirements: *id006
75
- - !ruby/object:Gem::Dependency
76
- name: rspec-its
77
91
  prerelease: false
78
- requirement: &id007 !ruby/object:Gem::Requirement
79
- requirements:
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ~>
95
+ - !ruby/object:Gem::Version
96
+ version: '3.1'
97
+ - !ruby/object:Gem::Dependency
98
+ name: rspec-its
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
80
101
  - - ~>
81
- - !ruby/object:Gem::Version
82
- version: "1.1"
102
+ - !ruby/object:Gem::Version
103
+ version: '1.1'
83
104
  type: :development
84
- version_requirements: *id007
85
- - !ruby/object:Gem::Dependency
86
- name: timecop
87
105
  prerelease: false
88
- requirement: &id008 !ruby/object:Gem::Requirement
89
- requirements:
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
90
108
  - - ~>
91
- - !ruby/object:Gem::Version
92
- version: "0.7"
109
+ - !ruby/object:Gem::Version
110
+ version: '1.1'
111
+ - !ruby/object:Gem::Dependency
112
+ name: timecop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: '0.7'
93
118
  type: :development
94
- version_requirements: *id008
95
- - !ruby/object:Gem::Dependency
96
- name: simplecov
97
119
  prerelease: false
98
- requirement: &id010 !ruby/object:Gem::Requirement
99
- requirements:
100
- - *id009
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: '0.7'
125
+ - !ruby/object:Gem::Dependency
126
+ name: simplecov
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
101
132
  type: :development
102
- version_requirements: *id010
103
- - !ruby/object:Gem::Dependency
104
- name: activesupport
105
133
  prerelease: false
106
- requirement: &id011 !ruby/object:Gem::Requirement
107
- requirements:
108
- - - ">="
109
- - &id012 !ruby/object:Gem::Version
110
- version: "3.2"
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: activesupport
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - '>='
144
+ - !ruby/object:Gem::Version
145
+ version: '3.2'
111
146
  type: :runtime
112
- version_requirements: *id011
113
- - !ruby/object:Gem::Dependency
114
- name: activerecord
115
147
  prerelease: false
116
- requirement: &id013 !ruby/object:Gem::Requirement
117
- requirements:
118
- - - ">="
119
- - *id012
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - '>='
151
+ - !ruby/object:Gem::Version
152
+ version: '3.2'
153
+ - !ruby/object:Gem::Dependency
154
+ name: activerecord
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '>='
158
+ - !ruby/object:Gem::Version
159
+ version: '3.2'
120
160
  type: :runtime
121
- version_requirements: *id013
122
- - !ruby/object:Gem::Dependency
123
- name: awesome_print
124
161
  prerelease: false
125
- requirement: &id014 !ruby/object:Gem::Requirement
126
- requirements:
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '3.2'
167
+ - !ruby/object:Gem::Dependency
168
+ name: awesome_print
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
127
171
  - - ~>
128
- - !ruby/object:Gem::Version
129
- version: "1.2"
172
+ - !ruby/object:Gem::Version
173
+ version: '1.2'
130
174
  type: :runtime
131
- version_requirements: *id014
132
- - !ruby/object:Gem::Dependency
133
- name: bunny
134
175
  prerelease: false
135
- requirement: &id015 !ruby/object:Gem::Requirement
136
- requirements:
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ~>
179
+ - !ruby/object:Gem::Version
180
+ version: '1.2'
181
+ - !ruby/object:Gem::Dependency
182
+ name: bunny
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
137
185
  - - ~>
138
- - !ruby/object:Gem::Version
186
+ - !ruby/object:Gem::Version
139
187
  version: 1.2.1
140
188
  type: :runtime
141
- version_requirements: *id015
142
- - !ruby/object:Gem::Dependency
143
- name: json
144
189
  prerelease: false
145
- requirement: &id016 !ruby/object:Gem::Requirement
146
- requirements:
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
147
192
  - - ~>
148
- - !ruby/object:Gem::Version
149
- version: "1.8"
193
+ - !ruby/object:Gem::Version
194
+ version: 1.2.1
195
+ - !ruby/object:Gem::Dependency
196
+ name: json
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ~>
200
+ - !ruby/object:Gem::Version
201
+ version: '1.8'
150
202
  type: :runtime
151
- version_requirements: *id016
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ~>
207
+ - !ruby/object:Gem::Version
208
+ version: '1.8'
152
209
  description: Lightweight, opinionated wrapper for using RabbitMQ headers exchanges
153
- email:
210
+ email:
154
211
  - nkeyes@gmail.com
155
212
  executables: []
156
-
157
213
  extensions: []
158
-
159
214
  extra_rdoc_files: []
160
-
161
- files:
215
+ files:
162
216
  - .gitignore
163
217
  - .rspec
164
218
  - .travis.yml
@@ -166,9 +220,7 @@ files:
166
220
  - LICENSE
167
221
  - README.md
168
222
  - Rakefile
169
- - examples/README.md
170
223
  - examples/creating_named_queues/manually.rb
171
- - examples/creating_named_queues/philotic_named_queues.yml
172
224
  - examples/creating_named_queues/with_rake.rb
173
225
  - examples/publishing/publish.rb
174
226
  - examples/simple_combined_example.rb
@@ -206,29 +258,30 @@ files:
206
258
  - spec/spec_helper.rb
207
259
  - tasks/bump.rake
208
260
  homepage: https://github.com/nkeyes/philotic
209
- licenses:
261
+ licenses:
210
262
  - MIT
211
263
  metadata: {}
212
-
213
264
  post_install_message:
214
265
  rdoc_options: []
215
-
216
- require_paths:
266
+ require_paths:
217
267
  - lib
218
- required_ruby_version: !ruby/object:Gem::Requirement
219
- requirements:
220
- - *id009
221
- required_rubygems_version: !ruby/object:Gem::Requirement
222
- requirements:
223
- - *id009
268
+ required_ruby_version: !ruby/object:Gem::Requirement
269
+ requirements:
270
+ - - '>='
271
+ - !ruby/object:Gem::Version
272
+ version: '0'
273
+ required_rubygems_version: !ruby/object:Gem::Requirement
274
+ requirements:
275
+ - - '>='
276
+ - !ruby/object:Gem::Version
277
+ version: '0'
224
278
  requirements: []
225
-
226
279
  rubyforge_project:
227
- rubygems_version: 2.4.5
280
+ rubygems_version: 2.2.2
228
281
  signing_key:
229
282
  specification_version: 4
230
283
  summary: Lightweight, opinionated wrapper for using RabbitMQ headers exchanges
231
- test_files:
284
+ test_files:
232
285
  - spec/philotic/config_spec.rb
233
286
  - spec/philotic/connection_spec.rb
234
287
  - spec/philotic/event_spec.rb
@@ -238,3 +291,4 @@ test_files:
238
291
  - spec/philotic/subscriber_spec.rb
239
292
  - spec/philotic_spec.rb
240
293
  - spec/spec_helper.rb
294
+ has_rdoc: