baby_squeel 1.1.2 → 1.1.3

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
  SHA1:
3
- metadata.gz: 3f4792b9f869cd23c5910a52a2d95188ee75c806
4
- data.tar.gz: c2d75c755301787ac04d5aa8220396be848f9f28
3
+ metadata.gz: 4567e1ad82a18c7be246a9c76c51d97869dacdac
4
+ data.tar.gz: c0fdfe706fad8048de09f7f4dbd714cbd1a86f32
5
5
  SHA512:
6
- metadata.gz: 6a91030415fc3afd7017e92f89440207bf7069b8f3681a549d3abba3629847e9dd589aabe6398104ff6c89d780660a7f600ddccecd3d69a07decb10fabcbc8f6
7
- data.tar.gz: 4b1d040212307df0175af66a8e5ce59b7f398abcfae50387a857434d16b06da9b4598ffc3078a42f852272ad2981164f2fde42f3729435a44953d86b1dc17e10
6
+ metadata.gz: 560f14bb971c76e166d4ac673c483d7fcee7929ad13337fadcb40cb90f965709422745c402464703d634247c6ae03229f86da3be64ced4e20c50034287efb232
7
+ data.tar.gz: c02dcaaf7afb4011dd364ba749f2bb0132ab61f3ad1a7cd3a52c708811044d7049b87969774808d8dc041784b0eab461548cd3ea7c5900a61ba4ed79a0480ce9
@@ -1,3 +1,18 @@
1
+ ## [Unreleased]
2
+
3
+ Nothing to see here.
4
+
5
+ ## [1.1.3] - 2017-03-31
6
+ ### Fixed
7
+ - Nodes::Attribute#in was not returning BabySqueel node. As a result, you couldn't chain on it. This fixes #61.
8
+
9
+ ## [1.1.2] - 2017-03-21
10
+ ### Fixed
11
+ - Check if a reflection has a parent reflection before comparing them. This fixes #56.
12
+
13
+ ### Refactored
14
+ - The logic encapsulated in `#method_missing` and `#respond_to_missing?` was difficult to follow, because it was falling back to `super`, sometimes going up the inheritance tree multiple levels. The addition of `BabySqueel::Resolver` now handles this a little more gracefully.
15
+
1
16
  ## [1.1.1] - 2017-02-14
2
17
  ### Fixed
3
18
  - There is a bug in Active Record where the `AliasTracker` initializes `Arel::Table`s use the wrong `type_caster`. To address this, BabySqueel must re-initialize the `Arel::Table` with the correct `type_caster` (#54).
@@ -99,7 +114,9 @@
99
114
  ### Added
100
115
  - Initial support for selects, orders, wheres, and joins.
101
116
 
102
- [Unreleased]: https://github.com/rzane/baby_squeel/compare/v1.1.1...HEAD
117
+ [Unreleased]: https://github.com/rzane/baby_squeel/compare/v1.1.2...HEAD
118
+ [1.1.3]: https://github.com/rzane/baby_squeel/compare/v1.1.2...v1.1.3
119
+ [1.1.2]: https://github.com/rzane/baby_squeel/compare/v1.1.1...v1.1.2
103
120
  [1.1.1]: https://github.com/rzane/baby_squeel/compare/v1.1.0...v1.1.1
104
121
  [1.1.0]: https://github.com/rzane/baby_squeel/compare/v1.0.3...v1.1.0
105
122
  [1.0.3]: https://github.com/rzane/baby_squeel/compare/v1.0.2...v1.0.3
@@ -11,7 +11,8 @@ module BabySqueel
11
11
 
12
12
  def in(rel)
13
13
  if rel.is_a? ::ActiveRecord::Relation
14
- ::Arel::Nodes::In.new(self, Arel.sql(rel.to_sql))
14
+ expr = ::Arel.sql(rel.to_sql)
15
+ Nodes.wrap ::Arel::Nodes::In.new(self, expr)
15
16
  else
16
17
  super
17
18
  end
@@ -1,3 +1,3 @@
1
1
  module BabySqueel
2
- VERSION = '1.1.2'.freeze
2
+ VERSION = '1.1.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.1.2
4
+ version: 1.1.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: 2017-03-21 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord