codeclimate-yaml 0.0.9 → 0.0.10

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: 539f7cb64937f6b5b7ce7929f26e8f3709977322
4
- data.tar.gz: 4718db65dc7d7bf2cb4ad8fee602f636f478b0c2
3
+ metadata.gz: 96413f28dca7fcb67103ef2fad802d08317eb2be
4
+ data.tar.gz: 0278dada6524de55fd2fa8bb531d8e93cddc290c
5
5
  SHA512:
6
- metadata.gz: 7e9afb6e8dfcb24e6914ef38e5f39d27be3a4f24e7bd239b572e74422445dba526b1d93beb5e3fd125ad125647c3c34b2e8ed148d6359402161676aa21c3ad81
7
- data.tar.gz: f25a7655fa95d85e5227683cf71d879e61be986264b0e932c601fef4f8145a23612a5d73e3cf6303f3996e1326d1b5760094d8fc4b521130049cc414dcd23ff0
6
+ metadata.gz: eb10b2e95ebe103577df46a89385756dfffc36787314b1dc8ef984d5f9125e3f5059e2399d4de5dea60df8e3553804bee608ba2a5cbebb35d5967376ac3148f2
7
+ data.tar.gz: 916fc2294a513516eaf650ecd3eaa88893f8ac9ec410aad026d2e2c956e8ddcf3d0bf9673f7be861103f36c2a44a572292ecd755007145d4bfda6bebd65b745c
@@ -1,7 +1,7 @@
1
1
  module CC::Yaml
2
2
  module Nodes
3
3
  class Mapping < Node
4
- INCOMPATIBLE_KEYS_WARNING = "Use either a Languages key or an Engines key, but not both. They are mutually exclusive.".freeze
4
+ INCOMPATIBLE_KEYS_ERROR = "Use either a Languages key or an Engines key, but not both. They are mutually exclusive.".freeze
5
5
 
6
6
  def self.mapping
7
7
  @mapping ||= superclass.respond_to?(:mapping) ? superclass.mapping.dup : {}
@@ -187,7 +187,7 @@ module CC::Yaml
187
187
 
188
188
  def check_incompatibility(key)
189
189
  if creates_incompatibility?(key)
190
- warning(INCOMPATIBLE_KEYS_WARNING, key)
190
+ error INCOMPATIBLE_KEYS_ERROR
191
191
  end
192
192
  end
193
193
 
@@ -4,7 +4,7 @@ require 'delegate'
4
4
  module CC::Yaml
5
5
  module Parser
6
6
  class Psych
7
- WARNING_NO_ANALYSIS_KEY_FOUND = "No languages or engines key found. Must have analysis key.".freeze
7
+ NO_ANALYSIS_KEY_FOUND_ERROR = "No languages or engines key found. Must have analysis key.".freeze
8
8
 
9
9
  class SetNode < DelegateClass(::Psych::Nodes::Mapping)
10
10
  def children
@@ -92,7 +92,7 @@ module CC::Yaml
92
92
 
93
93
  def check_for_analysis_key(root)
94
94
  unless root.engines? || root.languages?
95
- root.warnings << WARNING_NO_ANALYSIS_KEY_FOUND
95
+ root.error NO_ANALYSIS_KEY_FOUND_ERROR
96
96
  end
97
97
  end
98
98
 
@@ -1,5 +1,5 @@
1
1
  module CC
2
2
  module Yaml
3
- VERSION = "0.0.9".freeze
3
+ VERSION = "0.0.10".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.9
4
+ version: 0.0.10
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-07-17 00:00:00.000000000 Z
11
+ date: 2015-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: secure_string