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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c87debedccaa398765218009e2510a9af9c7a65f
4
- data.tar.gz: 5763001c96f55a2abc81863aa2a33e90cfd8eceb
3
+ metadata.gz: 64b83201137eff338b53df17bcd0c40dc6c4080d
4
+ data.tar.gz: 765030581dbb359be2b1a64cbfb3c8afb32b7f1a
5
5
  SHA512:
6
- metadata.gz: 40c5ecec68e59edfb2c518678a0cae4107e26844160f8823e2925d422aa1c7e7d586f0eb4fc7814e5eb903597b9fd9e696f06259b031d8e596fbf5bbcda5b883
7
- data.tar.gz: b47ae770a431cf9a20c7274d7ae3a9392ab10d53a970bfbd841433db5660a479e2e37d4a23ae831d8eb173aee372d2eca7bfb7bc734536194671e00c44c3a013
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
- if get_warnings(key)
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 get_warnings(key)
65
+ def set_warnings(key)
68
66
  if subnode_for(key)
69
67
  check_duplicates(key)
70
68
  elsif key == "languages"
@@ -1,5 +1,5 @@
1
1
  module CC
2
2
  module Yaml
3
- VERSION = "0.0.4".freeze
3
+ VERSION = "0.0.5".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.0.4
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-29 00:00:00.000000000 Z
11
+ date: 2015-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: secure_string