morpheus-heroku 0.4.2 → 0.6.0
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/CHANGELOG.md +11 -0
- data/README.md +1 -1
- data/lib/morpheus-heroku/config.rb +5 -1
- data/lib/morpheus-heroku/helper.rb +8 -2
- data/lib/morpheus-heroku/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5533186bb1aeb32033c3533b111140e56441be5e1f485b1feec72174274db6be
|
4
|
+
data.tar.gz: 712b85e997144cd8079a258cfb9c40ff82c9282bd37d355de302254443a4923c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4e644d053b5c440b2756276792ed4c262080022ae712c3d53ab2cac357c3aba9b888257ed2dd428aacff2eddd861977079b4097bfcec7ef1b6964333f8258bf
|
7
|
+
data.tar.gz: b3f6ce1905c4ff45896128bd03bac5726bf8229a4546cc2804fe059aa89065635d02a18d99f07d57ed0df5c886f1aac1c90338845279a3b3ee9a5d243b223500
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,16 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## 0.6.0
|
4
|
+
- Rails 7 replaced `ActiveRecord::Base.connection_config` with `ActiveRecord::Base.connection_db_config` so we handle both
|
5
|
+
|
6
|
+
## 0.5.1
|
7
|
+
|
8
|
+
- Bring back `Bundler.with_clean_env` if `Bundler.with_unbundled_env` is not defined
|
9
|
+
|
10
|
+
## 0.5.0
|
11
|
+
|
12
|
+
- Replace `Bundler.with_clean_env` with `Bundler.with_unbundled_env` (fix deprecation warning)
|
13
|
+
|
3
14
|
## 0.4.1
|
4
15
|
|
5
16
|
_Fixes_
|
data/README.md
CHANGED
@@ -3,7 +3,11 @@ module MorpheusHeroku
|
|
3
3
|
attr_accessor :database_name, :backup_location, :app_name, :log_events, :dev_email
|
4
4
|
|
5
5
|
def initialize
|
6
|
-
@database_name = ActiveRecord::Base.connection_config
|
6
|
+
@database_name = if ActiveRecord::Base.respond_to?(:connection_config)
|
7
|
+
ActiveRecord::Base.connection_config[:database].dup
|
8
|
+
elsif ActiveRecord::Base.respond_to?(:connection_db_config)
|
9
|
+
ActiveRecord::Base.connection_db_config.configuration_hash[:database].dup
|
10
|
+
end
|
7
11
|
@backup_location = "tmp/latest.dump"
|
8
12
|
@log_events = false
|
9
13
|
end
|
@@ -27,8 +27,14 @@ module MorpheusHeroku
|
|
27
27
|
|
28
28
|
def generic_run(command)
|
29
29
|
Helper.logger(command)
|
30
|
-
Bundler.
|
31
|
-
|
30
|
+
if Bundler.respond_to?(:with_unbundled_env)
|
31
|
+
Bundler.with_unbundled_env do
|
32
|
+
system(command) || abort("\n== Command #{command} failed ==")
|
33
|
+
end
|
34
|
+
else
|
35
|
+
Bundler.with_clean_env do
|
36
|
+
system(command) || abort("\n== Command #{command} failed ==")
|
37
|
+
end
|
32
38
|
end
|
33
39
|
end
|
34
40
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: morpheus-heroku
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Catalin Ionescu
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -97,7 +97,7 @@ licenses:
|
|
97
97
|
- MIT
|
98
98
|
metadata:
|
99
99
|
allowed_push_host: https://rubygems.org
|
100
|
-
post_install_message:
|
100
|
+
post_install_message:
|
101
101
|
rdoc_options: []
|
102
102
|
require_paths:
|
103
103
|
- lib
|
@@ -112,8 +112,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
112
|
- !ruby/object:Gem::Version
|
113
113
|
version: '0'
|
114
114
|
requirements: []
|
115
|
-
rubygems_version: 3.
|
116
|
-
signing_key:
|
115
|
+
rubygems_version: 3.2.3
|
116
|
+
signing_key:
|
117
117
|
specification_version: 4
|
118
118
|
summary: A set of Rake scrips to automate interactions with Heroku
|
119
119
|
test_files: []
|