phenix 1.0.1 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/phenix/version.rb +1 -1
  3. data/lib/phenix.rb +5 -1
  4. metadata +9 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e08178e36e4d3383fa93d7410ef0b870dd5549e50d69a79c8cf74b7e74d5110
4
- data.tar.gz: 2387284ebdf301559fb301579254c31f40d279060b14ddb4daf279602656243e
3
+ metadata.gz: 70cb1dd01a4270ebce0f2bc5cac5478d0c437170b938356c25f22be67c55c259
4
+ data.tar.gz: 16c9f137d035d221740ee01444c72c1de737fa4272594ab77abb63e8ceccbe7c
5
5
  SHA512:
6
- metadata.gz: 3c56dda05491a697ba6fd0444eacf0b19bbc69e18af43a05d731a5a4d30e41bb21759ab38be6ac23e7cd47e31a04be8cb3cd64d121a36affb1610b691ce2fb3d
7
- data.tar.gz: 64d70cf6691b14b5b8ccdbcea277f9752daaa08f1652081f72dcc23db0d871d26c5395cd019d62f091b7304b5ce69854a6787eedf01c09892cf771e1fd53931c
6
+ metadata.gz: b8410523daf622012be889eb520c3cb1550bd1aa19886b28de0cd13d94609ee45d5b583811eaae1f195f2641d079437c7e22ccffe882eca84fb77ddb4165531f
7
+ data.tar.gz: 71e82fe02afeaee6af74dd75a53e53d62736c3e4bd59e85b862c0a2e8e0fb3f1fa336c9bee82f546c3b2403395f3dc2358dc5ff4908b463417672384b38a5bf7
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Phenix
3
- VERSION = '1.0.1'
3
+ VERSION = '1.2.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.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pierre Schambacher
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-17 00:00:00.000000000 Z
11
+ date: 2023-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -33,7 +33,7 @@ dependencies:
33
33
  version: '4.2'
34
34
  - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: '7.1'
36
+ version: '7.2'
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '4.2'
44
44
  - - "<"
45
45
  - !ruby/object:Gem::Version
46
- version: '7.1'
46
+ version: '7.2'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rake
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -72,20 +72,6 @@ dependencies:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
74
  version: '3.4'
75
- - !ruby/object:Gem::Dependency
76
- name: bump
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: '0'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- version: '0'
89
75
  - !ruby/object:Gem::Dependency
90
76
  name: mysql2
91
77
  requirement: !ruby/object:Gem::Requirement
@@ -114,7 +100,7 @@ dependencies:
114
100
  - - ">="
115
101
  - !ruby/object:Gem::Version
116
102
  version: '0'
117
- description:
103
+ description:
118
104
  email:
119
105
  - pschambacher@zendesk.com
120
106
  executables: []
@@ -126,7 +112,7 @@ files:
126
112
  homepage: https://github.com/zendesk/phenix
127
113
  licenses: []
128
114
  metadata: {}
129
- post_install_message:
115
+ post_install_message:
130
116
  rdoc_options: []
131
117
  require_paths:
132
118
  - lib
@@ -141,8 +127,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
127
  - !ruby/object:Gem::Version
142
128
  version: '0'
143
129
  requirements: []
144
- rubygems_version: 3.1.6
145
- signing_key:
130
+ rubygems_version: 3.0.3.1
131
+ signing_key:
146
132
  specification_version: 4
147
133
  summary: Read a dynamic database.yml file and allow you to drop/create the database
148
134
  on demand.