associationist 0.1.9 → 0.2.1

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: 187820657e6aa46774e5161d105e4ae1e939d062ec389be51a9e510b5eda7aed
4
- data.tar.gz: 57b2cdc4270aaf9b75a3b52957ce272e8c4492087079c20b5771208b8a2a9fe0
3
+ metadata.gz: 1d0203bfe4bd1ddbccf693b78b40ef893c83ae9d4b85fb35f794cfdf195310e5
4
+ data.tar.gz: d9d7f40a9292bb95bba1939549a7cd6da2691d7554776155255cf024a9507abe
5
5
  SHA512:
6
- metadata.gz: 938dd23506837a38292a3ae074a72a2b40815ddae10f0f946e14e00514b8cd601baa006b4589f580406aad73ff7ed8065e0d710544ba90c3847c63e4916cf30e
7
- data.tar.gz: 830e60e54c9c865ff97c5b6d57b92270b67625093a3c28828e6d89f9abb44cbd2565080c9b8fcc3bdd967cd4e9cbce1b0307728e6ee9000844777c7af808c297
6
+ metadata.gz: 3a08a5834974748c7e56c77d110c85f3861bd6d23ded410ddbc0ec1ac00578c296d870c1ef53548929ed80cd5a866b11c8e7ceab5647dc37642c5ff9e8968068
7
+ data.tar.gz: 79303f9760fc82ad5317189f1f4a8acdee8fe7c7b52fc5b3678a09896bfedd440f6518ac79bb453dd77c55eb08ef282901394ec680c9c4669abf1c32f020aaf7
@@ -39,7 +39,7 @@ module Associationist
39
39
  end
40
40
 
41
41
  def preloaded_records
42
- @owners.flat_map { |owner| owner.association(@reflection.name).target }
42
+ @owners.flat_map { |owner| owner.association(@reflection.name).target }.compact
43
43
  end
44
44
 
45
45
  # handle >=7.0
@@ -16,6 +16,8 @@ module Associationist
16
16
  def config
17
17
  options[:associationist]
18
18
  end
19
+
20
+ alias :check_validity! :check_validity_of_inverse!
19
21
  end
20
22
  end
21
23
  end
@@ -20,6 +20,8 @@ module Associationist
20
20
  def config
21
21
  options[:associationist]
22
22
  end
23
+
24
+ alias :check_validity! :check_validity_of_inverse!
23
25
  end
24
26
  end
25
27
  end
@@ -1,3 +1,3 @@
1
1
  module Associationist
2
- VERSION = '0.1.9'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: associationist
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - onyxblade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-19 00:00:00.000000000 Z
11
+ date: 2023-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5.0'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7.1'
22
+ version: '7.2'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5.0'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7.1'
32
+ version: '7.2'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: pry
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -123,7 +123,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  requirements: []
126
- rubygems_version: 3.2.15
126
+ rubygems_version: 3.2.33
127
127
  signing_key:
128
128
  specification_version: 4
129
129
  summary: ''