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 +4 -4
- data/lib/cc/yaml/nodes/engine.rb +7 -0
- data/lib/cc/yaml/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: 2287a1160b8518aa4c54714ba3edf06cfb3fbfa0
|
4
|
+
data.tar.gz: 1ef0b5da351f2a29bb2718f8999a2df584899337
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18cd4dc8b3d4ed6d8393c7cec8c3365190f74fa03ead8a3f25da5cf7d40a1b6b466d04c8c2832547cde53af6ebba0086dbc1ef56a1cc4564cc64c73c39202934
|
7
|
+
data.tar.gz: fc0e285e26bd07d30f21a35bdf56bc6594a058dc3be198987ce32a272d4a94e26f1d1bfaa01b96c7a4ea65e08795602cd2ec025df35a48064e6f7b4abe91ef9c
|
data/lib/cc/yaml/nodes/engine.rb
CHANGED
@@ -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
|
data/lib/cc/yaml/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2016-05-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: secure_string
|