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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/travis/config/heroku.rb +2 -2
- data/lib/travis/config/version.rb +1 -1
- data/spec/travis/config/heroku_spec.rb +15 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fbc7a2d8183a191085935a7231c5b5dfd70aabc9
|
|
4
|
+
data.tar.gz: d93f522f61921493e144e8a1b03b4588439ab649
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 361e6fcbb5b39ae63d0463b14d362014e40f69495c19b34e251b74813655b50c3d37709dd45512e60e4cb95bc84ec3e1050022b6a997b80e0da4b666729c93f6
|
|
7
|
+
data.tar.gz: 1161fe3d03c1ef110be6d8bde3cb60b086fbfd263750e3a84f19c60584bd56bb9dba5d92293c62b963c32d9ce2d19244b4445cec79077b030b308ae33e24f5c0
|
data/Gemfile.lock
CHANGED
data/lib/travis/config/heroku.rb
CHANGED
|
@@ -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
|
|
@@ -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.
|
|
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-
|
|
11
|
+
date: 2015-08-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: hashr
|