rubocop-ast 1.25.0 → 1.26.0

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
  SHA256:
3
- metadata.gz: 14c750eb97731379a218878594a598b7cceed776f13d5ff441af5db441dcc0d2
4
- data.tar.gz: d89472b765082acad983ff690a465e0ad3485560d2ee9acabc7d44733c90421a
3
+ metadata.gz: bc10e7c795dab5de6b3af9e4256ac4312e5c3593dac55ac4bf290386813d8375
4
+ data.tar.gz: 4f5712401b5ce837a33b44a9e1e5061ca134fe794a04a9bdb46d7941564be73d
5
5
  SHA512:
6
- metadata.gz: 4e78ae1a18f0f24c68bb3bdb5b60cb21c32b0eb937c137c8f17a7b7148ee7de8b4e566316cbc1c10b05e795bf3692361bbfe69b1a8e6f1dc7a77b97a6678e10a
7
- data.tar.gz: 29ec502d4e4dbac037d477293255e6951c6d4081292df7efdddc18b1cec0ee1dcc812d6f03575557468274704ac828e361890103337a579ac4d10ec5cd14346d
6
+ metadata.gz: db2491014949e08395d008635c29a22d56b6495d020adc3ecc83071bf9f8614be7ff00088a69e82cc4add3ea118a71a28f3903ed3905012312191988cb61ec92
7
+ data.tar.gz: 7ba42b76e1fa3721ac7d41e83d9ad4a87ec214c02938af1b6f2162e80ec55a4706698bee254591cdf50c3467648a95d972ad615fc559f0e8669a8de64552aa83
@@ -510,8 +510,14 @@ module RuboCop
510
510
 
511
511
  # @!method class_constructor?(node = self)
512
512
  def_node_matcher :class_constructor?, <<~PATTERN
513
- { (send #global_const?({:Class :Module :Struct}) :new ...)
514
- (block (send #global_const?({:Class :Module :Struct}) :new ...) ...)}
513
+ {
514
+ (send #global_const?({:Class :Module :Struct}) :new ...)
515
+ (send #global_const?(:Data) :define ...)
516
+ ({block numblock} {
517
+ (send #global_const?({:Class :Module :Struct}) :new ...)
518
+ (send #global_const?(:Data) :define ...)
519
+ } ...)
520
+ }
515
521
  PATTERN
516
522
 
517
523
  # @deprecated Use `:class_constructor?`
@@ -3,7 +3,7 @@
3
3
  module RuboCop
4
4
  module AST
5
5
  module Version
6
- STRING = '1.25.0'
6
+ STRING = '1.26.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.25.0
4
+ version: 1.26.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bozhidar Batsov