baby_squeel 1.4.2 → 1.4.3

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: 154cc7b5379993dfa67f76c182bfe810f5c9b941930ec69e386270e5751201da
4
- data.tar.gz: 873324d4d500c03621c6a3fb20321a948f2b9ae9dadf098aff028b154dc57f36
3
+ metadata.gz: e13379a85b00158faa5f8994dc69a579af9c4dcf3d35038368c3680027334ab2
4
+ data.tar.gz: 2b6ea8355d38af2512667edb454c0632b7d883173d9a534a29634a92b1a45054
5
5
  SHA512:
6
- metadata.gz: b29e8eb5d1225e3e8f00908af60da6b5deeebeb49467a52aa875fcad70972002d312dac0151be4d4ca7562012cc7c21593c630f1b44b2f20733cb43bdc997854
7
- data.tar.gz: 3b3b9957bc49729ffdcf5bda14ef4446816cf8cbd12facf67a30ec8912bbb260e0a0543334a3e840a0d691ee8d990754dbe23e687129321b88a46360b2d60e76
6
+ metadata.gz: f75a420d6e922df3a174408a11a212edf5663a3d1593608f6cd59b3e9fc52ecd542067364d8f159e6615e695dd7a6c2b0858ca6b4be6905dca706c8e252a17c5
7
+ data.tar.gz: a3dac244446df4f543e871daf5bf1d680a1d8389e5d63853cdf475da55024ee34c0f783d4d24f1eefbd46dc855feef08cae57cc80dc0a2680a42a4775dfa5dc7
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.4.3] - 2022-02-04
4
+
5
+ ### Fixed
6
+
7
+ - ActiveRecord::Relation#left_joins performs INNER JOIN on Active Record 6.1 (#118)
8
+
3
9
  ## [1.4.2] - 2022-01-24
4
10
 
5
11
  ### Fixed
@@ -219,7 +225,8 @@
219
225
 
220
226
  - Initial support for selects, orders, wheres, and joins.
221
227
 
222
- [unreleased]: https://github.com/rzane/baby_squeel/compare/v1.4.2...HEAD
228
+ [unreleased]: https://github.com/rzane/baby_squeel/compare/v1.4.3...HEAD
229
+ [1.4.3]: https://github.com/rzane/baby_squeel/compare/v1.4.2...v1.4.3
223
230
  [1.4.2]: https://github.com/rzane/baby_squeel/compare/v1.4.1...v1.4.2
224
231
  [1.4.1]: https://github.com/rzane/baby_squeel/compare/v1.4.0...v1.4.1
225
232
  [1.4.0]: https://github.com/rzane/baby_squeel/compare/v1.4.0.beta1...v1.4.0
@@ -61,7 +61,11 @@ module BabySqueel
61
61
  end
62
62
 
63
63
  def construct_join_dependency(associations, join_type)
64
- super(associations, join_type).extend(BabySqueel::JoinDependency::Injector6_1)
64
+ result = super(associations, join_type)
65
+ if associations.any? { |assoc| assoc.is_a?(BabySqueel::Join) }
66
+ result.extend(BabySqueel::JoinDependency::Injector6_1)
67
+ end
68
+ result
65
69
  end
66
70
  elsif BabySqueel::ActiveRecord::VersionHelper.at_least_6_0?
67
71
  # Active Record will call `each` on the `joins`. The
@@ -50,7 +50,7 @@ module BabySqueel
50
50
  # Maybe this could be fixed in joining but I do not know how.
51
51
  module Injector6_1 # :nodoc:
52
52
  def make_constraints(parent, child, join_type) # :nodoc:
53
- join_type = child.join_type if child.join_type
53
+ join_type = child.join_type if child.join_type == Arel::Nodes::OuterJoin
54
54
  super(parent, child, join_type)
55
55
  end
56
56
  end
@@ -1,3 +1,3 @@
1
1
  module BabySqueel
2
- VERSION = '1.4.2'.freeze
2
+ VERSION = '1.4.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baby_squeel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ version: 1.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ray Zane
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-01-25 00:00:00.000000000 Z
11
+ date: 2022-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord