rubocop-ast 1.14.0 → 1.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1693e1ea234859e4e84ac9ff85465e2779d1588aa82593e41e2fe1348611a286
4
- data.tar.gz: d8fee8a82d5fa065c29f8801979d4a90a45b4fb8ac25ee9b8dc0f3c44da07c20
3
+ metadata.gz: ce48c1e9913885c28482d59910c019c8bf48a19459829d7b99c692cb3dfa007d
4
+ data.tar.gz: 71feb87662f110131da0d58313102b2d78bd145eac6c23e71326253423b06625
5
5
  SHA512:
6
- metadata.gz: 6219c5798d3f7a9f8cf40a3ee1e85754547ae2ded2b037a4847811db03b575d558e183919bab53c11b824cca19d012846aa9b3e6d208fb217729a54c0b0cd4b1
7
- data.tar.gz: 1b2db6a28cb91be686411c52de1af8b1dcceb09c1726e173a7d3d91c0c5384cfa6ac165fb12110e01156496b2b64da37998828eb1752423230ff64091a2fadd3
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
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module AST
5
5
  module Version
6
- STRING = '1.14.0'
6
+ STRING = '1.15.0'
7
7
  end
8
8
  end
9
9
  end
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.14.0
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-02 00:00:00.000000000 Z
13
+ date: 2021-12-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: parser