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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10239b636d0a68acab049bd59ce937b950bab074
4
- data.tar.gz: 8162ee3fabe6440cba610ec0e89ac52993f4266c
3
+ metadata.gz: 635473b8db0a7d23ad458dcfbee10c2cc8057d13
4
+ data.tar.gz: 3a671158391d8039a99c6895978f493be22aef3e
5
5
  SHA512:
6
- metadata.gz: ba460f2fcc63048f42ee4c3b9479dfde5addb24635d5d3e9ef77c1285179d64918f364a99b98b9aade896770bfe8462505a5d6d36b2bb9ceb5e8b26be3d065d4
7
- data.tar.gz: 4722e1bb0d1aab71bb58b431f53c821dde8ca03f5f7deb88b5dbae60d6bd39599964eab9f6f15f1f9ac947bd8723470c110a87dc7418de24b129507ed214b0ec
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)
@@ -1,5 +1,5 @@
1
1
  module CC
2
2
  module Yaml
3
- VERSION = "0.2.1".freeze
3
+ VERSION = "0.2.2".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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code Climate