bleib 0.0.11 → 0.0.12
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/lib/bleib/configuration.rb +10 -1
- data/lib/bleib/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 68851b89d057d623d8722d8f963d2e4d39bed6f503faa8b5cddd38866332151b
|
|
4
|
+
data.tar.gz: 34f282b7406cf20998405a417a8851e53ffec5c5e4dae3c708a26489d8d0acaf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 242c84b8082fc4834274a9d8eda8292c252905420f6302477fdd1693e59168241a997571a848a825856eb17088069e812bd22e03cafe2b7f556c5e6451dfcdcc
|
|
7
|
+
data.tar.gz: 271a6e8459260fa37c3640b658c48dce12a04d8d118ede656fdefd5886ba0c86e46314fbb26f82ce841d6408477e304c00ee87191d0ed67ba7a3a4736dfba144
|
data/lib/bleib/configuration.rb
CHANGED
|
@@ -79,10 +79,19 @@ module Bleib
|
|
|
79
79
|
|
|
80
80
|
def self.rails_database(database_yml_path, rails_env)
|
|
81
81
|
contents = File.read(database_yml_path)
|
|
82
|
-
config =
|
|
82
|
+
config = load_yaml(ERB.new(contents).result)
|
|
83
83
|
config[rails_env]
|
|
84
84
|
end
|
|
85
85
|
|
|
86
|
+
# Psych 4 Patch: https://github.com/rails/rails/commit/179d0a1f474ada02e0030ac3bd062fc653765dbe
|
|
87
|
+
def self.load_yaml(content)
|
|
88
|
+
begin
|
|
89
|
+
YAML.load(content, aliases: true)
|
|
90
|
+
rescue ArgumentError
|
|
91
|
+
YAML.load(content)
|
|
92
|
+
end
|
|
93
|
+
end
|
|
94
|
+
|
|
86
95
|
def check!
|
|
87
96
|
# We should add clean rescue statements to
|
|
88
97
|
# `Bleib::Database#database_down?`to support
|
data/lib/bleib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bleib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puzzle ITC
|
|
@@ -12,7 +12,7 @@ date: 2018-10-04 00:00:00.000000000 Z
|
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Intended for use in containerized setups whereanother component takes
|
|
14
14
|
care of migrating the database.
|
|
15
|
-
email:
|
|
15
|
+
email: viehweger@puzzle.ch
|
|
16
16
|
executables: []
|
|
17
17
|
extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
|
@@ -45,7 +45,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: '0'
|
|
47
47
|
requirements: []
|
|
48
|
-
rubygems_version: 3.1.
|
|
48
|
+
rubygems_version: 3.1.4
|
|
49
49
|
signing_key:
|
|
50
50
|
specification_version: 4
|
|
51
51
|
summary: Use a rake task to wait on database and migrations.
|