codeclimate-yaml 0.1.0 → 0.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: 181d50bd384283cb7b4a8867dc97752ae26bc8c7
4
- data.tar.gz: c70bb6acd7af4dac2e849b26244e7eda720b565e
3
+ metadata.gz: 12f27478aa41fb741a3c11e4db37d1672c721f62
4
+ data.tar.gz: 3a4b5e11ee9cebcb38b4c7c53e8b450293d05f6a
5
5
  SHA512:
6
- metadata.gz: 843a9af668ebb5566c48d5eadcaa61bcbec309a123fbe3370903f105b112e13ed521db27d160301b613c98082db43a3db3d017eca505cfd958c08e95b3e284bb
7
- data.tar.gz: 7e5473dfd27416d5d043ca13642cf836bf339393f2863df4ea4950c7cb7f851d6db55c5566b548c7065593406855998b143823d2900f3da20f6e5f4143e4edba
6
+ metadata.gz: a143d84ca0aa95337f2943a4417844dc402bcfb03907629b1c7d5b7e4532e6caa767224db0d1944ad46aecaa19b3451973530c1880bf347b26e5a0303cd8a10c
7
+ data.tar.gz: b969c0f7065afdfd0c45e2a10a2ac46a810fc6b42a8c5051c6977a385d34fcef16421744e41ce8340529dfd442871242b7859d7e6a5c20c8dc9633e2f9789d17
data/lib/cc/yaml/nodes.rb CHANGED
@@ -1,6 +1,8 @@
1
1
  module CC
2
2
  module Yaml
3
3
  module Nodes
4
+ autoload :Check, "cc/yaml/nodes/check"
5
+ autoload :Checks, "cc/yaml/nodes/checks"
4
6
  autoload :Engine, "cc/yaml/nodes/engine"
5
7
  autoload :EngineList, "cc/yaml/nodes/engine_list"
6
8
  autoload :Glob, "cc/yaml/nodes/glob"
@@ -0,0 +1,9 @@
1
+ module CC
2
+ module Yaml
3
+ module Nodes
4
+ class Check < Mapping
5
+ map :enabled, to: Scalar[:bool], required: true
6
+ end
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module CC
2
+ module Yaml
3
+ module Nodes
4
+ class Checks < OpenMapping
5
+ default_type Check
6
+ end
7
+ end
8
+ end
9
+ end
@@ -3,6 +3,7 @@ module CC
3
3
  module Nodes
4
4
  class Engine < Mapping
5
5
  map :enabled, to: Scalar[:bool], required: true
6
+ map :checks, to: Checks
6
7
  end
7
8
  end
8
9
  end
@@ -1,5 +1,5 @@
1
1
  module CC
2
2
  module Yaml
3
- VERSION = "0.1.0".freeze
3
+ VERSION = "0.1.1".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
@@ -46,6 +46,8 @@ extra_rdoc_files: []
46
46
  files:
47
47
  - lib/cc/yaml.rb
48
48
  - lib/cc/yaml/nodes.rb
49
+ - lib/cc/yaml/nodes/check.rb
50
+ - lib/cc/yaml/nodes/checks.rb
49
51
  - lib/cc/yaml/nodes/engine.rb
50
52
  - lib/cc/yaml/nodes/engine_list.rb
51
53
  - lib/cc/yaml/nodes/glob.rb