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 +4 -4
- data/lib/cc/yaml/nodes/mapping.rb +2 -2
- data/lib/cc/yaml/parser/psych.rb +2 -2
- 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: 96413f28dca7fcb67103ef2fad802d08317eb2be
|
4
|
+
data.tar.gz: 0278dada6524de55fd2fa8bb531d8e93cddc290c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
190
|
+
error INCOMPATIBLE_KEYS_ERROR
|
191
191
|
end
|
192
192
|
end
|
193
193
|
|
data/lib/cc/yaml/parser/psych.rb
CHANGED
@@ -4,7 +4,7 @@ require 'delegate'
|
|
4
4
|
module CC::Yaml
|
5
5
|
module Parser
|
6
6
|
class Psych
|
7
|
-
|
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.
|
95
|
+
root.error NO_ANALYSIS_KEY_FOUND_ERROR
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
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.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-
|
11
|
+
date: 2015-07-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: secure_string
|