travis-config 0.1.1 → 0.1.2

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: d28c9bf4b9fe2cad9b9320fc1c0f75a79f78bfc1
4
- data.tar.gz: 8f80aa3063b9c09846c277bb8616349f2b273e84
3
+ metadata.gz: fbc7a2d8183a191085935a7231c5b5dfd70aabc9
4
+ data.tar.gz: d93f522f61921493e144e8a1b03b4588439ab649
5
5
  SHA512:
6
- metadata.gz: a80aeac2d95ff766b3e5446ce0a23ad7ee49523e34a6b6b7b96602985c9fa70ee502d9ce5efea94386756975455a8b701682a0d4e52ba96edc6e1e2f8e1af4e0
7
- data.tar.gz: ebb04bd02c4348d37d9bb26b32a4af29630b430ac0815e91c29a46c8886a5db83b706892a68cd43373a21ffd4e666ad98814a414844560a2e5b29c64fe6a67e4
6
+ metadata.gz: 361e6fcbb5b39ae63d0463b14d362014e40f69495c19b34e251b74813655b50c3d37709dd45512e60e4cb95bc84ec3e1050022b6a997b80e0da4b666729c93f6
7
+ data.tar.gz: 1161fe3d03c1ef110be6d8bde3cb60b086fbfd263750e3a84f19c60584bd56bb9dba5d92293c62b963c32d9ce2d19244b4445cec79077b030b308ae33e24f5c0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- travis-config (0.1.0)
4
+ travis-config (0.1.1)
5
5
  hashr (~> 0.0)
6
6
 
7
7
  GEM
@@ -26,11 +26,11 @@ module Travis
26
26
  end
27
27
 
28
28
  def pool_size
29
- ENV.values_at('DB_POOL', 'DATABASE_POOL_SIZE').first
29
+ ENV.values_at('DB_POOL', 'DATABASE_POOL_SIZE').compact.first
30
30
  end
31
31
 
32
32
  def database_url
33
- ENV.values_at('DATABASE_URL', 'SHARED_DATABASE_URL').first
33
+ ENV.values_at('DATABASE_URL', 'SHARED_DATABASE_URL').compact.first
34
34
  end
35
35
  end
36
36
  end
@@ -1,3 +1,3 @@
1
1
  module TravisConfig
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
@@ -43,4 +43,19 @@ describe Travis::Config::Heroku do
43
43
  pool: 25
44
44
  )
45
45
  end
46
+
47
+ it 'loads DATABASE_POOL_SIZE' do
48
+ ENV['DATABASE_POOL_SIZE'] = '25'
49
+
50
+ expect(config.database.to_hash).to eq(
51
+ adapter: 'postgresql',
52
+ host: 'hostname',
53
+ port: 'port',
54
+ database: 'database',
55
+ username: 'username',
56
+ password: 'password',
57
+ encoding: 'unicode',
58
+ pool: 25
59
+ )
60
+ end
46
61
  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: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Travis CI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-27 00:00:00.000000000 Z
11
+ date: 2015-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hashr