phenix 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
2
  SHA256:
3
- metadata.gz: 8e08178e36e4d3383fa93d7410ef0b870dd5549e50d69a79c8cf74b7e74d5110
4
- data.tar.gz: 2387284ebdf301559fb301579254c31f40d279060b14ddb4daf279602656243e
3
+ metadata.gz: ae74806ff8278a94e7129e262c977eb9f8a4fe1bdf15f4010aa5c783c726611e
4
+ data.tar.gz: 257a4f7ad4dc019f64722bed3126147804420e831c9ab4f917027efe9cadf828
5
5
  SHA512:
6
- metadata.gz: 3c56dda05491a697ba6fd0444eacf0b19bbc69e18af43a05d731a5a4d30e41bb21759ab38be6ac23e7cd47e31a04be8cb3cd64d121a36affb1610b691ce2fb3d
7
- data.tar.gz: 64d70cf6691b14b5b8ccdbcea277f9752daaa08f1652081f72dcc23db0d871d26c5395cd019d62f091b7304b5ce69854a6787eedf01c09892cf771e1fd53931c
6
+ metadata.gz: 4b399a58479278268d4135cb1014f798e521ed061a50f22995c6a267a04967805bb6a24bd291bc0d50c0c3288b9ca5002959655f487a6615f21beb0d074c1f99
7
+ data.tar.gz: eb46bf6ddc58543692f264f644a165669066056c5c703b5761a748fe33fd5961c0fdc3a20a187613f5a9db8a36c3c8fb97eebb4bc14fb3e548127c6a2a47da99
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Phenix
3
- VERSION = '1.0.1'
3
+ VERSION = '1.1.0'
4
4
  end
data/lib/phenix.rb CHANGED
@@ -36,7 +36,11 @@ module Phenix
36
36
  def load_database_config(config_path = Phenix.database_config_path)
37
37
  erb_config = IO.read(config_path)
38
38
  yaml_config = ERB.new(erb_config).result
39
- ActiveRecord::Base.configurations = Phenix.current_configuration = YAML.load(yaml_config)
39
+ begin
40
+ ActiveRecord::Base.configurations = Phenix.current_configuration = YAML.load(yaml_config, aliases: true)
41
+ rescue ArgumentError
42
+ ActiveRecord::Base.configurations = Phenix.current_configuration = YAML.load(yaml_config)
43
+ end
40
44
  end
41
45
 
42
46
  private
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phenix
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
  - Pierre Schambacher
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-17 00:00:00.000000000 Z
11
+ date: 2022-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler