rails_config_validator 0.2.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -0
- data/README.md +1 -1
- data/lib/rails_config_validator/rake_task.rb +1 -1
- data/lib/rails_config_validator/validator.rb +1 -1
- data/lib/rails_config_validator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba8536a2e15844c5d235f20655bc72f93af878c9
|
4
|
+
data.tar.gz: cb9abde9e0090beb2395fe2519e103ba36878299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1c15769940bcce4ac92ece69ce073c3a3f663092bae8d8513adea9627056d1832b28b0b54c71e6a8f8adf8aab63b9606f0ce3807c38bbbbfcd7311507f8a613
|
7
|
+
data.tar.gz: c80b2bc3c8a6db3d500fbe8598487d9f2771dc072cd46669874b86c473e0cefcd88ab51a8ae35ba1962aa125ae429d94538df96fe1a58401a81393668b88b5eb
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -33,7 +33,7 @@ module RailsConfigValidator
|
|
33
33
|
env = args[:env] || Rails.env
|
34
34
|
fail 'Missing parameter :config' if args[:config].nil?
|
35
35
|
|
36
|
-
v = RailsConfigValidator::Validator.new(config, env,
|
36
|
+
v = RailsConfigValidator::Validator.new(config, env, schema)
|
37
37
|
v.valid!
|
38
38
|
end
|
39
39
|
end
|
@@ -4,7 +4,7 @@ require 'rails_config_validator/errors'
|
|
4
4
|
|
5
5
|
module RailsConfigValidator
|
6
6
|
class Validator
|
7
|
-
def initialize(config_path, env, schema_path
|
7
|
+
def initialize(config_path, env, schema_path = nil)
|
8
8
|
@config_path = config_path
|
9
9
|
@schema_path = schema_path || config_to_schema_path(config_path)
|
10
10
|
@env = env
|
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: 0.
|
4
|
+
version: 1.0.0
|
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-07-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kwalify
|