travis-config 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5562c44ebfeeefe6ba8e934dcb7794f3f0da5475
4
- data.tar.gz: 756842a754ed123b03c1eb466b7299055fa7b81f
3
+ metadata.gz: 67de0f0017df11901eb406bc43cf6b7ad52f4857
4
+ data.tar.gz: 05b1962b2089d429cf1c62196167b8c1520e2069
5
5
  SHA512:
6
- metadata.gz: 9e7e14e1f02e49b2b39b15f7899d9774e75adf7bb30945025d0b741b490462aafc4994aecc4d15114892944015c596b989d167e5ee42311078af60ff0666f4de
7
- data.tar.gz: 4db147e89757efe7828df287f06944c21e0af7daf9498aa9c063332c075ba11346cae835a899bcbfeddf8b6b1ae905878d7856a36ef1cf74d37054ef1645b4a6
6
+ metadata.gz: 5ae88bf2d9be78bc13914f2ef22069a55eb4da7ade28e6281d9ffda974bc642cc93b8ea2485334fbc552bef39acd65e7840fa96f459b7bfede6e6096e2bf8426
7
+ data.tar.gz: d50ac580463df69f5662f7dfcf17ba772f67f012499a4807d5a9194ef4c1302e5fd315e9562498c11c9aaa54edcc6cb5cfda9b337076fe640c73c2ff9eef1ffc
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- travis-config (1.0.6)
4
+ travis-config (1.0.7)
5
5
  hashr (~> 2.0.0)
6
6
 
7
7
  GEM
@@ -21,6 +21,7 @@ module Travis
21
21
  super.reject { |key, value| key == :database }.merge(vhost: vhost)
22
22
  end
23
23
  end
24
+ Amqps = Amqp
24
25
 
25
26
  class << self
26
27
  def parse(url)
@@ -1,3 +1,3 @@
1
1
  module TravisConfig
2
- VERSION = '1.0.7'
2
+ VERSION = '1.0.8'
3
3
  end
@@ -1,18 +1,36 @@
1
1
  describe Travis::Config::Heroku, :Amqp do
2
2
  let(:config) { Travis::Test::Config.load(:heroku) }
3
- let(:url) { 'amqp://username:password@hostname:1234/vhost' }
4
3
 
5
4
  before { ENV['RABBITMQ_URL'] = url }
6
5
  after { ENV.delete('RABBITMQ_URL') }
7
6
 
8
- it 'loads a RABBITMQ_URL' do
9
- expect(config.amqp.to_h).to eq(
10
- host: 'hostname',
11
- port: 1234,
12
- vhost: 'vhost',
13
- username: 'username',
14
- password: 'password',
15
- prefetch: 1
16
- )
7
+ describe 'using amqp as a protocol' do
8
+ let(:url) { 'amqp://username:password@hostname:1234/vhost' }
9
+
10
+ it 'loads a RABBITMQ_URL' do
11
+ expect(config.amqp.to_h).to eq(
12
+ host: 'hostname',
13
+ port: 1234,
14
+ vhost: 'vhost',
15
+ username: 'username',
16
+ password: 'password',
17
+ prefetch: 1
18
+ )
19
+ end
20
+ end
21
+
22
+ describe 'using amqps as a protocol' do
23
+ let(:url) { 'amqps://username:password@hostname:1234/vhost' }
24
+
25
+ it 'loads a RABBITMQ_URL' do
26
+ expect(config.amqp.to_h).to eq(
27
+ host: 'hostname',
28
+ port: 1234,
29
+ vhost: 'vhost',
30
+ username: 'username',
31
+ password: 'password',
32
+ prefetch: 1
33
+ )
34
+ end
17
35
  end
18
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: travis-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 1.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis CI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-05 00:00:00.000000000 Z
11
+ date: 2016-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashr