lapine 0.2.5 → 0.2.6

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: 7b67db53527c3fcbdc032eaa3103d89d19944e4d
4
- data.tar.gz: 72553194f0afe46b12da4ac8766cd450fbf2fcf3
3
+ metadata.gz: 89e5e020daab22750edbe3723c2fa8e1176f306b
4
+ data.tar.gz: 5af0be7890edbb6b86c5721f53ddcda39cf74c1f
5
5
  SHA512:
6
- metadata.gz: fa130e8a28eff29aeb287b618bade064dad3276faa3eeddc7dc396944b96165c75844242ab64bf7aff36481147eb989e15e0dc0fad339b6295f1d002de5e7a3c
7
- data.tar.gz: 351d96925897fcd913e0ba3ce0ab7fbfdd0e55435a5cc71814cc8fb4da7a46b9e778aad8e4de518fb1c9818c629678c1111df0b770e1a873d6e1a549ae4af931
6
+ metadata.gz: 6b4b37ad82d0ef7ffd18d52c8b5b0199815c9d99aa39d3fbc7bfea39427e1634c93294002d45f567580b0fc76a9648ae33238e17b8400e61b34f1cf5fb34c9e5
7
+ data.tar.gz: 37379a5f8219d9eb3a043854f0c9723a552d5fbfdd999d4a0e5fd2f2988ccd42bd176e7108e78fe25381116753c394ca028d06424408237dfd783813aeaad01a
@@ -83,7 +83,7 @@ module Lapine
83
83
  end
84
84
 
85
85
  def queues
86
- yaml_config['queues']
86
+ yaml_config['queues'] || []
87
87
  end
88
88
 
89
89
  def require
@@ -1,3 +1,3 @@
1
1
  module Lapine
2
- VERSION = '0.2.5'
2
+ VERSION = '0.2.6'
3
3
  end
@@ -162,6 +162,14 @@ RSpec.describe Lapine::Consumer::Config do
162
162
  end
163
163
  end
164
164
 
165
+ describe '#queues' do
166
+ let(:config_from_file) { {} }
167
+
168
+ it 'defaults to empty array' do
169
+ expect(config.queues).to eq([])
170
+ end
171
+ end
172
+
165
173
  describe '#transient?' do
166
174
  it 'is false by default' do
167
175
  expect(config.transient?).to be false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lapine
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric Saxby
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-09 00:00:00.000000000 Z
12
+ date: 2014-12-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: amqp
@@ -232,4 +232,3 @@ test_files:
232
232
  - spec/lib/lapine_spec.rb
233
233
  - spec/spec_helper.rb
234
234
  - spec/support/rspec_test_helper.rb
235
- has_rdoc: