rubocop-nueca 1.1.3 → 1.1.5

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: 0e3ce6ea4962d0409ef753cd4cfb316f81a8f40228539b62871d968b54df17f2
4
- data.tar.gz: 34d40d5a28a407927510a815ce108121d2ab60bfc157ce2eac671af5b3a18c16
3
+ metadata.gz: 6d780fbfedb280b9cb1348a3559a27639ea9139b726de9de211d2fb8bc908dc8
4
+ data.tar.gz: 90b26a394731353973252722260e66f080fab38d6f94ccea5da2f9ac43caca72
5
5
  SHA512:
6
- metadata.gz: 10f24a5fd49e0ee7344e4a260fb58af10ff80a6711a828ff76dfc204d7f17177ed79757fcea03488efba7cc46051c9bcb9c2bdf297ddef3207367340caebafab
7
- data.tar.gz: c446cf64ec058628f6c7540ee9519844b83e81d28db772524d86438a96d1343407a7a8af5ef8f6172f5cd5e6afe200c66b7089433114af45ed36931625b7dbea
6
+ metadata.gz: ac985c1f32b83fdec80085a665a0219f75558df08be4ed73ef5828397822ab214cc7c605fcaf9ec464a51fc3ed7614cd717a9e1e4ea1b8310c4e2356c639dddc
7
+ data.tar.gz: 7334aae4c9f2d30c41d55bfbc51135f8985b5be4b6699fc32caf79a06fd058b17a126bdea0528186b301103a9bd0de3997926ca3709c5af0b1adfe8b986b4791
@@ -118,7 +118,7 @@ module RuboCop
118
118
  end
119
119
 
120
120
  def build_association_lookup(associations)
121
- associations.index_by { |assoc| assoc[:name] }
121
+ associations.each_with_object({}) { |assoc, lookup| lookup[assoc[:name]] = assoc } # rubocop:disable Rails/IndexBy
122
122
  end
123
123
 
124
124
  def build_dependency_graph(associations, lookup)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Nueca
5
- VERSION = '1.1.3'
5
+ VERSION = '1.1.5'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-nueca
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tien