rails_config_validator 3.0.0 → 3.1.1
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e45eaa840b5d430a70231728e283e54d393b68af
|
4
|
+
data.tar.gz: 7e976021eeee28d75915e35d6f9df1e8384aa015
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 15d6688eaaf1f94df9234efdabc280e86a50035d18fb91cd61fbe42f9f7530e6d155e3220bd4258c664a3089a7a33ade4d588d6b73fa3a73c9be71a3ad0e90d6
|
7
|
+
data.tar.gz: fa410de6421a5a4b7114d347c11fa44fc830ed37dbaaed1658efb1c714f09beaf47e82a4402688a797e3128f16d47f1a969f2a566f210f54a1e9cd7aa4e0b8fc
|
@@ -5,6 +5,12 @@ module RailsConfigValidator
|
|
5
5
|
config.config_validator.configs %w(database)
|
6
6
|
end
|
7
7
|
|
8
|
+
rake_tasks do
|
9
|
+
require_relative 'rake_task'
|
10
|
+
|
11
|
+
RailsConfigValidator::RakeTask.new
|
12
|
+
end
|
13
|
+
|
8
14
|
initializer 'config_validator.configure' do
|
9
15
|
validators = config.config_validator.configs.map do |config|
|
10
16
|
RailsConfigValidator::Validator.new(config, Rails.env, pwd: Rails.root)
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'kwalify'
|
2
2
|
require 'yaml'
|
3
|
+
require 'erb'
|
3
4
|
require 'rails_config_validator/errors'
|
4
5
|
|
5
6
|
module RailsConfigValidator
|
@@ -65,7 +66,7 @@ module RailsConfigValidator
|
|
65
66
|
end
|
66
67
|
|
67
68
|
def config
|
68
|
-
YAML.
|
69
|
+
YAML.load(ERB.new((File.read(config_path))).result)
|
69
70
|
end
|
70
71
|
|
71
72
|
def env_config
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_config_validator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michał Knapik
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kwalify
|