rails_config_validator 3.0.0 → 3.1.1

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
  SHA1:
3
- metadata.gz: f93583591e13258cc8ed95209de28ade1b585681
4
- data.tar.gz: 6976741ebe7d7f9bfb00062ebec2326e9467867f
3
+ metadata.gz: e45eaa840b5d430a70231728e283e54d393b68af
4
+ data.tar.gz: 7e976021eeee28d75915e35d6f9df1e8384aa015
5
5
  SHA512:
6
- metadata.gz: 82f940f1a026542327ff42a55f0a12ce7cac4fc04c3d5924efabed4d5f276f11ec9dceeb4d8fbb46471f809114602c5b99a1d44814e343c2f0defb82949242ec
7
- data.tar.gz: 1d789358c7c353b2a19e67fa22cae69514a38846e380ef011749f61ac2aea0610a7409f40863e76d0433c7a5d710524142d1d54aea1dc7de066fc0fde285b5d8
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.load_file(config_path)
69
+ YAML.load(ERB.new((File.read(config_path))).result)
69
70
  end
70
71
 
71
72
  def env_config
@@ -1,3 +1,3 @@
1
1
  module RailsConfigValidator
2
- VERSION = '3.0.0'
2
+ VERSION = '3.1.1'
3
3
  end
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.0.0
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-26 00:00:00.000000000 Z
11
+ date: 2015-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: kwalify