geordi 3.0.2 → 3.0.3
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 +7 -0
- data/Gemfile.lock +1 -1
- data/lib/geordi/dump_loader.rb +3 -1
- data/lib/geordi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b149c149a52f1e02ca3573aa238d31d5a1fb9a018f2bdea2a19498d75282650e
|
|
4
|
+
data.tar.gz: 5bd2b8ddf0190307b93fab2081434fe05a7207c3b5105ec566eeb211d82532d0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6a607dcb1475b70f9053c4fe950f8ee6fa2d657b0c6771b514c3356ac28c8f2704be396cfc2f19b8990edd3dc67dfdc7dad1a92344947c23fa30e72cf7a4564c
|
|
7
|
+
data.tar.gz: d499c7936be74a6eb30f14287b0af2fd44dd89e6bc2dd4db772e6b7a0450f8013df200604027a95fd4808a32f3b860760876e40e0af5b7d9427c1c3cb8646e6f
|
data/CHANGELOG.md
CHANGED
|
@@ -11,6 +11,13 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
|
|
|
11
11
|
### Breaking changes
|
|
12
12
|
|
|
13
13
|
|
|
14
|
+
## 3.0.3 2020-05-27
|
|
15
|
+
|
|
16
|
+
### Compatible changes
|
|
17
|
+
|
|
18
|
+
- Fix #98: Changing the `config/database.yml` reader from `YAML.load` to `YAML.safe_load` dropped the support for aliases. We now allow aliases and the classes `Time` and `Symbol`. If we encounter further issues with this approach a revert to `YAML.load` would be an option, too.
|
|
19
|
+
|
|
20
|
+
|
|
14
21
|
## 3.0.2 2020-05-18
|
|
15
22
|
|
|
16
23
|
### Compatible changes
|
data/Gemfile.lock
CHANGED
data/lib/geordi/dump_loader.rb
CHANGED
|
@@ -13,7 +13,9 @@ module Geordi
|
|
|
13
13
|
def development_database_config
|
|
14
14
|
require 'yaml'
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
evaluated_config_file = ERB.new(File.read('config/database.yml')).result
|
|
17
|
+
# Allow aliases and a special set of classes like symbols and time objects
|
|
18
|
+
@config ||= YAML.safe_load(evaluated_config_file, [Symbol, Time], [], true)
|
|
17
19
|
@config['development']
|
|
18
20
|
end
|
|
19
21
|
alias_method :config, :development_database_config
|
data/lib/geordi/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: geordi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 3.0.
|
|
4
|
+
version: 3.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Henning Koch
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|