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 +4 -4
- data/CHANGELOG.md +8 -1
- data/lib/baby_squeel/active_record/query_methods.rb +5 -1
- data/lib/baby_squeel/join_dependency.rb +1 -1
- data/lib/baby_squeel/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e13379a85b00158faa5f8994dc69a579af9c4dcf3d35038368c3680027334ab2
|
4
|
+
data.tar.gz: 2b6ea8355d38af2512667edb454c0632b7d883173d9a534a29634a92b1a45054
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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)
|
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
|
data/lib/baby_squeel/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2022-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|