codeclimate-yaml 0.2.1 → 0.2.2
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 +1 -5
- data/lib/cc/yaml/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 635473b8db0a7d23ad458dcfbee10c2cc8057d13
|
4
|
+
data.tar.gz: 3a671158391d8039a99c6895978f493be22aef3e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d0f7a03b47f158303aad0c95ba52848451f7b49774b05a2ac73cf85c6c2640ca7eeb226b947a5d92ab2eae301095e6faafc9a3a7d6af71c48fca1cc884480ac
|
7
|
+
data.tar.gz: 72b66cfa36f7f3ab3f939ce6e7f3462c09e6f2f7ce9e5b7d148fd2041ac7bc29a12c9bfc3bd52399eb3b1f96f25e30ca9344f3b6a4bb2340438d8bffc8828d97
|
@@ -54,6 +54,7 @@ module CC::Yaml
|
|
54
54
|
def visit_pair(visitor, key, value)
|
55
55
|
key = visitor.generate_key(self, key)
|
56
56
|
unless set_warnings(key)
|
57
|
+
check_incompatibility(key)
|
57
58
|
visit_key_value(visitor, key, value)
|
58
59
|
end
|
59
60
|
end
|
@@ -67,7 +68,6 @@ module CC::Yaml
|
|
67
68
|
def set_warnings(key)
|
68
69
|
if subnode_for(key)
|
69
70
|
check_duplicates(key)
|
70
|
-
check_incompatibility(key)
|
71
71
|
else
|
72
72
|
warning("unexpected key %p, dropping", key)
|
73
73
|
end
|
@@ -75,10 +75,6 @@ module CC::Yaml
|
|
75
75
|
|
76
76
|
def []=(key, value)
|
77
77
|
if mapped_key = mapped_key(key)
|
78
|
-
unless value.is_a? Node
|
79
|
-
node = subnode_for(mapped_key)
|
80
|
-
value = node if Parser::Ruby.new(value).parse(node)
|
81
|
-
end
|
82
78
|
@mapping[mapped_key] = value
|
83
79
|
else
|
84
80
|
warning("unexpected key %p, dropping", key)
|
data/lib/cc/yaml/version.rb
CHANGED