rubocop-ast 1.14.0 → 1.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rubocop/ast/node/pair_node.rb +7 -0
- data/lib/rubocop/ast/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce48c1e9913885c28482d59910c019c8bf48a19459829d7b99c692cb3dfa007d
|
4
|
+
data.tar.gz: 71feb87662f110131da0d58313102b2d78bd145eac6c23e71326253423b06625
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2abb94317042e4cc1bfc108ec0344cb59b0592bb30c5c25107e0d610333728ddd6f4b60d280e36fbf6033994959f12a7b63a912b84247442505d16351f8e90f
|
7
|
+
data.tar.gz: 22a25f0d1cce473d4d328ba8c62924dec8cbe0c47aae9531baf7acac9ec243075feec1a7340c0c556a13c788621b2d2705a007836c894ec7f5b046cc358d28cd
|
@@ -62,6 +62,13 @@ module RuboCop
|
|
62
62
|
def value_on_new_line?
|
63
63
|
key.loc.line != value.loc.line
|
64
64
|
end
|
65
|
+
|
66
|
+
# Checks whether the `pair` uses hash value omission.
|
67
|
+
#
|
68
|
+
# @return [Boolean] whether this `pair` uses hash value omission
|
69
|
+
def value_omission?
|
70
|
+
source.end_with?(':')
|
71
|
+
end
|
65
72
|
end
|
66
73
|
end
|
67
74
|
end
|
data/lib/rubocop/ast/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-ast
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bozhidar Batsov
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-12-
|
13
|
+
date: 2021-12-12 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: parser
|