codeclimate-yaml 0.8.0 → 0.9.0

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: 0ef414bbe74d4f6cf8f22713d3386fe8d309e9b6
4
- data.tar.gz: fd8d685db080e22c4270bc99cacf9989a37b4004
3
+ metadata.gz: 2287a1160b8518aa4c54714ba3edf06cfb3fbfa0
4
+ data.tar.gz: 1ef0b5da351f2a29bb2718f8999a2df584899337
5
5
  SHA512:
6
- metadata.gz: eff75337b523245c5e76222792c5a0bdec25e3370f53bddfe0c76beccadb9eb469cf3c6cdbe49f34a0dd7601dea1b812fcbcad3367f4805688c28c64fc2f24c4
7
- data.tar.gz: f9ec914744a46db49026e375dc6bf5653d5225a57a773b5f44fea4a04703387eb5aec4d76ec4dae12032f6b255b56cc59eab74f219ed33902c770c7124d6b093
6
+ metadata.gz: 18cd4dc8b3d4ed6d8393c7cec8c3365190f74fa03ead8a3f25da5cf7d40a1b6b466d04c8c2832547cde53af6ebba0086dbc1ef56a1cc4564cc64c73c39202934
7
+ data.tar.gz: fc0e285e26bd07d30f21a35bdf56bc6594a058dc3be198987ce32a272d4a94e26f1d1bfaa01b96c7a4ea65e08795602cd2ec025df35a48064e6f7b4abe91ef9c
@@ -2,11 +2,18 @@ module CC
2
2
  module Yaml
3
3
  module Nodes
4
4
  class Engine < Mapping
5
+ DEFAULT_CHANNEL = "stable".freeze
6
+
5
7
  map :enabled, to: Scalar[:bool], required: true
8
+ map :channel, to: Scalar
6
9
  map :checks, to: Checks
7
10
  map :config, to: EngineConfig
8
11
  map :exclude_fingerprints, to: Sequence
9
12
  map :exclude_paths, to: GlobList
13
+
14
+ def channel
15
+ self["channel"] || DEFAULT_CHANNEL
16
+ end
10
17
  end
11
18
  end
12
19
  end
@@ -1,5 +1,5 @@
1
1
  module CC
2
2
  module Yaml
3
- VERSION = "0.8.0".freeze
3
+ VERSION = "0.9.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codeclimate-yaml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-01 00:00:00.000000000 Z
11
+ date: 2016-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: secure_string