goldiloader 3.1.0 → 3.1.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
- SHA1:
3
- metadata.gz: 4aa4a5f31beb13f5c8988e170cc8de16e2441305
4
- data.tar.gz: da00673ed5e3081b0ab5d9befc34f833a31ca244
2
+ SHA256:
3
+ metadata.gz: c918c5a42d411af88cbf257884d28de6e6c05516c4dbfa598e66e7b5fb54a620
4
+ data.tar.gz: 78fc565f12ba0261c1afac3db2f5392ac4b5516b7c5542e6ca4d9bce3d9c3685
5
5
  SHA512:
6
- metadata.gz: a3f519f3637cf37c7e4db93dca4430ef8f0ed8de7552ceb53aaa0ff476db8e4445e9ac334da081115d57865d6cc8ba3dbb8cad6179cfce193b6d43953f2b2dd8
7
- data.tar.gz: 4008049d2133866071087e6095667e3157b716ebc920fe26c2f3d2d1e983fca7b07683fb6b48b241febcfc59be5d066dbed7b1accdee0d4302d7f59dbe8b123f
6
+ metadata.gz: fa47be314d4124457dd1dcefecc3b7d6895594706d0555db45ea21e7c332d10fffe5487050324fbfb4fac5dfd48b7afdd87a6e171b8dbaab59416657ef108e8c
7
+ data.tar.gz: b41b5372296c6dcedc799d55aba82aa952ca5aea469d701411c4eaacbcfc0faee538ad8d16900fda3592c3050caf8d36f54e2e47dda45618d98a059f8c587fa3
@@ -47,7 +47,6 @@ module Goldiloader
47
47
  end
48
48
 
49
49
  def auto_include_value
50
- # Note: Don't use get_value because that doesn't work properly with defaulting boolean values
51
50
  @values.fetch(:auto_include, true)
52
51
  end
53
52
 
@@ -55,13 +54,11 @@ module Goldiloader
55
54
  if Goldiloader::Compatibility.rails_4?
56
55
  raise ::ActiveRecord::Relation::ImmutableRelation if @loaded
57
56
  check_cached_relation
58
- @values[:auto_include] = value
59
- elsif Goldiloader::Compatibility.rails_5_0?
60
- assert_mutability!
61
- @values[:auto_include] = value
62
57
  else
63
- set_value(:auto_include, value)
58
+ assert_mutability!
64
59
  end
60
+
61
+ @values[:auto_include] = value
65
62
  end
66
63
  end
67
64
  ::ActiveRecord::Relation.prepend(::Goldiloader::RelationPatch)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Goldiloader
4
- VERSION = '3.1.0'
4
+ VERSION = '3.1.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goldiloader
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0
4
+ version: 3.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joel Turkel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-12-11 00:00:00.000000000 Z
11
+ date: 2019-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -180,16 +180,16 @@ dependencies:
180
180
  name: sqlite3
181
181
  requirement: !ruby/object:Gem::Requirement
182
182
  requirements:
183
- - - ">="
183
+ - - "~>"
184
184
  - !ruby/object:Gem::Version
185
- version: '0'
185
+ version: '1.3'
186
186
  type: :development
187
187
  prerelease: false
188
188
  version_requirements: !ruby/object:Gem::Requirement
189
189
  requirements:
190
- - - ">="
190
+ - - "~>"
191
191
  - !ruby/object:Gem::Version
192
- version: '0'
192
+ version: '1.3'
193
193
  description: Automatically eager loads Rails associations as associations are traversed
194
194
  email:
195
195
  - jturkel@salsify.com
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  version: '0'
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.6.14
233
+ rubygems_version: 2.7.8
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: Automatic Rails association eager loading