ridgepoler-rails 1.0.1 → 1.1.0

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
- SHA1:
3
- metadata.gz: 1f2caa65b8da67f8b3abb67838eb8f037b76ecf0
4
- data.tar.gz: dd9dd18a521dedaac21baf596359122139bb07e4
2
+ SHA256:
3
+ metadata.gz: 8a40e137a4638da6a5880e4df0b0c7158f2f1825709aecd016cd77520e892ec3
4
+ data.tar.gz: 4f0b5ae3c34da482d3df5686adea75001a54278989d7151a99916a490cbc818d
5
5
  SHA512:
6
- metadata.gz: 50311369a7f00a02a74502f48869edd57656b9131a2e0ce7c9255784128d0188a2b79d3a6e47f2d50684eee7dff258287775e49efe2e21884493781fe089a32c
7
- data.tar.gz: 952e52a7af6f096f6844ff24b7d06ee2e1730bbc4aac09108998987678daaa8974aac73e70e15143e89b92af9ade93c814c155f5f5b6db978240015ad8b48f13
6
+ metadata.gz: 8fa1476bf3119f45bedea25796fff4038ed99f56952e6add9d2aa73203548486d8484dcb4383b5e7208e1e19ddc08bf1f159bf38895056c14ca990adee0358f4
7
+ data.tar.gz: 9a23f99d28b15faeb5dfe073512eb841d6961dae33912c4df9aa68b06507dee68626e72f6b779d928479f44e67f1ebe25f5b2b2b8e5b4670f5c1292fd894b485
@@ -18,7 +18,14 @@ namespace :ridgepole do
18
18
  private
19
19
 
20
20
  def ridgepole(env: Rails.env, dry_run: false)
21
- args = ['ridgepole', '-a', '-c', 'config/database.yml', '-E', env]
21
+ args = ['ridgepole', '-a']
22
+
23
+ if ENV['DATABASE_URL'].to_s.empty?
24
+ args << ['-c', 'config/database.yml', '-E', env]
25
+ else
26
+ args << ['-c', ENV['DATABASE_URL']]
27
+ end
28
+
22
29
  args.push('--dry-run') if dry_run
23
30
  args.push('--debug') if config.debug
24
31
  args.push('--verbose') if config.verbose
@@ -1,5 +1,5 @@
1
1
  module Ridgepoler
2
2
  module Rails
3
- VERSION = '1.0.1'.freeze
3
+ VERSION = '1.1.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ridgepoler-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sho Kusano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-10-05 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -103,8 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubyforge_project:
107
- rubygems_version: 2.6.13
106
+ rubygems_version: 3.0.2
108
107
  signing_key:
109
108
  specification_version: 4
110
109
  summary: Provides integration between ridgepole and rails 5 newer