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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6891013fb3cbe344ac476e8ac9aadfe1f58553a8b3a64aecb3d4671721bb5cdf
4
- data.tar.gz: 0b1d924179c6a2d508c6f94ee379e6433b6ce117f8dd0292de377a12c7069fae
3
+ metadata.gz: 5533186bb1aeb32033c3533b111140e56441be5e1f485b1feec72174274db6be
4
+ data.tar.gz: 712b85e997144cd8079a258cfb9c40ff82c9282bd37d355de302254443a4923c
5
5
  SHA512:
6
- metadata.gz: cb96d19a28732f3e8a717bf8de6e397045b64aa4d7ad8c2fd239ca31c0cffe79301d9f8932b9641e34bdf91a1d205c054e23960eae65a0f7338fa21f040ca6b8
7
- data.tar.gz: f484c9742f429cec68083d522cdfa4e4b37ef3db4e665dd042e00fa17fbe8b294718f7fa88c59b75f747522953f643ca9324473e4646077a371e23f430d320c0
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
@@ -19,7 +19,7 @@ You must have a Heroku remote set up (`heroku git:remote -a my-app-name`).
19
19
 
20
20
  Add this to your gemfile
21
21
 
22
- `gem 'morpheus-heroku', '0.2.3'`
22
+ `gem 'morpheus-heroku', '0.6.0'`
23
23
 
24
24
  Generate an initializer for `config/morpheus-heroku.rb` with
25
25
 
@@ -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[:database]
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.with_clean_env do
31
- system(command) || abort("\n== Command #{command} failed ==")
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
@@ -1,3 +1,3 @@
1
1
  module MorpheusHeroku
2
- VERSION = "0.4.2"
2
+ VERSION = "0.6.0"
3
3
  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.2
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: 2019-10-27 00:00:00.000000000 Z
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.0.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: []