bleib 0.0.7 → 0.0.8
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 +5 -5
- data/lib/bleib/configuration.rb +6 -4
- data/lib/bleib/version.rb +1 -1
- metadata +4 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: f4179c2fc5fecac31c6e9a78def4cc26732055829dab659d6228c47fd942b8bd
|
|
4
|
+
data.tar.gz: 3f9651be9c35735ad1f41cf068610b44e94433ae65989c277eb0c61471de9538
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e04ab8ca2f1d598dcad1ec87c9c52845bcec3e415a936cd4d47b380be948dcce4a804e15c39335d8db934637b547ae63906ca36c9defbcfe571dbbfcbf70dc5b
|
|
7
|
+
data.tar.gz: b6ffd596ca831e4939aad7b2da4304e25f62a595e3497fb75b09784893b4286f0aba2e9aa94c845d25dc8e88a2a7039778c84ab88c548b2a2679ec97015e5ba6
|
data/lib/bleib/configuration.rb
CHANGED
|
@@ -9,6 +9,8 @@ module Bleib
|
|
|
9
9
|
DEFAULT_CHECK_MIGRATIONS_INTERVAL = 5 # Seconds
|
|
10
10
|
DEFAULT_DATABASE_YML_PATH = 'config/database'
|
|
11
11
|
|
|
12
|
+
SUPPORTED_ADAPTERS = %w(postgresql postgis)
|
|
13
|
+
|
|
12
14
|
def self.from_environment
|
|
13
15
|
check_database_interval = interval_or_default(
|
|
14
16
|
ENV['BLEIB_CHECK_DATABASE_INTERVAL'],
|
|
@@ -85,10 +87,10 @@ module Bleib
|
|
|
85
87
|
# We should add clean rescue statements to
|
|
86
88
|
# `Bleib::Database#database_down?`to support
|
|
87
89
|
# other adapters.
|
|
88
|
-
if @database['adapter']
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
return if SUPPORTED_ADAPTERS.include?(@database['adapter'])
|
|
91
|
+
|
|
92
|
+
fail UnsupportedAdapterException,
|
|
93
|
+
"Unknown database adapter #{@database['adapter']}"
|
|
92
94
|
end
|
|
93
95
|
end
|
|
94
96
|
end
|
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.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Puzzle ITC
|
|
@@ -36,19 +36,18 @@ require_paths:
|
|
|
36
36
|
- lib
|
|
37
37
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
38
|
requirements:
|
|
39
|
-
- -
|
|
39
|
+
- - ">="
|
|
40
40
|
- !ruby/object:Gem::Version
|
|
41
41
|
version: '0'
|
|
42
42
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
43
43
|
requirements:
|
|
44
|
-
- -
|
|
44
|
+
- - ">="
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
46
|
version: '0'
|
|
47
47
|
requirements: []
|
|
48
48
|
rubyforge_project:
|
|
49
|
-
rubygems_version: 2.
|
|
49
|
+
rubygems_version: 2.7.6
|
|
50
50
|
signing_key:
|
|
51
51
|
specification_version: 4
|
|
52
52
|
summary: Use a rake task to wait on database and migrations.
|
|
53
53
|
test_files: []
|
|
54
|
-
has_rdoc:
|