codeclimate-yaml 0.0.4 → 0.0.5
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/mapping.rb +2 -4
- 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: 64b83201137eff338b53df17bcd0c40dc6c4080d
|
4
|
+
data.tar.gz: 765030581dbb359be2b1a64cbfb3c8afb32b7f1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdcc647a18fdd90f1641ba26e9f495f8d9f1d21a2fddafb88a372e616615e9d0e749fe0dc0093e2d33886403e1abdc61a7b1df2c0c8a319a33f7cb18652774c7
|
7
|
+
data.tar.gz: b255602577aeffcf93a4f642b21e5b69c60143203655fedd2e9aa4d1eb8a6b16f547ed478edf90b6406a4a26087a6813ff942079d0b941ce94b4250209d18b71
|
@@ -51,9 +51,7 @@ module CC::Yaml
|
|
51
51
|
|
52
52
|
def visit_pair(visitor, key, value)
|
53
53
|
key = visitor.generate_key(self, key)
|
54
|
-
|
55
|
-
get_warnings(key)
|
56
|
-
else
|
54
|
+
unless set_warnings(key)
|
57
55
|
visit_key_value(visitor, key, value)
|
58
56
|
end
|
59
57
|
end
|
@@ -64,7 +62,7 @@ module CC::Yaml
|
|
64
62
|
visitor.accept(node, value)
|
65
63
|
end
|
66
64
|
|
67
|
-
def
|
65
|
+
def set_warnings(key)
|
68
66
|
if subnode_for(key)
|
69
67
|
check_duplicates(key)
|
70
68
|
elsif key == "languages"
|
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.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code Climate
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-06-
|
11
|
+
date: 2015-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: secure_string
|