kafo 0.9.6 → 0.9.7

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: 1abb02cb76f9cc6da781a4445c9d64e70ca1e8e2
4
- data.tar.gz: 80bfce63b57202c0a67ce9c97ca9813e336b95aa
3
+ metadata.gz: 6d977cbbfdcfb16c28f69f44e0d3c9593d934964
4
+ data.tar.gz: 047115e922fc70200b408f2ffe597b8adabe7469
5
5
  SHA512:
6
- metadata.gz: f40af68f5e25559d989390c134de82122476c8f46321d52bcc5d76025405507f1206b246823298e7a37cfec43e000afd2c2f7603eb20eb66482f8b5553c8de88
7
- data.tar.gz: d30b8109790718f85b2ef2b3458c1d95b2f2358552ac6ec696acd4ed8fd36d6e1b65fe2014f6d28232286e0b6135e97056660d5ef4bc66f49f422ca1e7f19f82
6
+ metadata.gz: f40b32f9d1b923f4bda0e9fc3c7138c940571cb1ed3f04996ace8e2dce882df36847b0d611e490c915eaaff63cbb2bb4c29f4023c6f1f0dff7778676a4b94098
7
+ data.tar.gz: b66540ea8149b006cafeba80a343b056ddbe52455a2b6caf254efdf7e90ff542effa76abc5bf969b83d9a8091be78eacfbe494bcac231486ca7a3fab55afc241
@@ -197,6 +197,10 @@ module Kafo
197
197
  self.class.exit(:unknown_module)
198
198
  end
199
199
 
200
+ def enabled_params
201
+ params.select { |p| p.module.enabled? }
202
+ end
203
+
200
204
  def reset_params_cache
201
205
  @params = nil
202
206
  params
@@ -391,7 +395,7 @@ module Kafo
391
395
 
392
396
  def validate_all(logging = true)
393
397
  logger.info 'Running validation checks'
394
- results = params.map do |param|
398
+ results = enabled_params.map do |param|
395
399
  result = param.valid?
396
400
  errors = param.validation_errors.join(', ')
397
401
  progress_log(:error, "Parameter #{with_prefix(param)} invalid: #{errors}") if logging && !result
data/lib/kafo/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
  module Kafo
3
3
  PARSER_CACHE_VERSION = 1
4
- VERSION = "0.9.6"
4
+ VERSION = "0.9.7"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kafo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marek Hulan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-09-09 00:00:00.000000000 Z
11
+ date: 2016-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler