perus 0.1.31 → 0.1.32

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: 4dffad6633b9cc4d3c1d8769c469fb8f22ac9d4e
4
- data.tar.gz: a27811eaae60988d004642feba8b3c0baed9bfd3
3
+ metadata.gz: 71880ac5a65089aaa8aceb84e3e9628f08a1207a
4
+ data.tar.gz: 7a3bc0e61ddca2e3dd6bdcea056c6f5c5dcd7974
5
5
  SHA512:
6
- metadata.gz: ac2d80e5ce30cd91fa06a9d49a09072658a440950d5a50d1fc75959267b154198f14e38d7109b9d8e39218a9e90d582522953dc6550dfa3b619851895b0ea570
7
- data.tar.gz: f181bb5de480f96d9a0c42d2a7e9f0f826c66eb79bbfa2f0ca336d30afcfc9bc9533312c2c6f4c0d1cab93e76ec198a2a92a3e99f2ba8d70b530f340efa16a5f
6
+ metadata.gz: 4b8fd846c3800d8b3ae16aa74a276ed62b8c045fef18e12ad3050dc99e96aca618b0f5a4d974e248f990d66e1bd6b291a5ed56b8fe86a8d8d0089108b06d38fe
7
+ data.tar.gz: c59862a9475df45e1279bd3b4aa8f47fab8c3c160eb283155c7513c24c5e6e104275b2f2979f19c9cdcbcc7ac5bd4aa73e1f1d8d96c822b8aac9c590b14366f4
@@ -17,7 +17,7 @@ module Perus::Server
17
17
  Sequel.extension :inflector
18
18
 
19
19
  # connect/create the database and run any new migrations
20
- @db = Sequel.postgres('perus', host: 'localhost', username: Server.options.db['username'], password: Server.options.db['password'])
20
+ @db = Sequel.postgres('perus', host: (Server.options.db['host'] || ENV['POSTGRES_HOST'] || 'localhost'), username: Server.options.db['username'], password: Server.options.db['password'])
21
21
  Sequel::Migrator.run(@db, File.join(__dir__, 'migrations'))
22
22
 
23
23
  # load models - these rely on an existing db connection
data/lib/perus/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Perus
2
- VERSION = "0.1.31"
2
+ VERSION = "0.1.32"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.31
4
+ version: 0.1.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Cannings