chewy 8.2.0 → 8.2.1

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
  SHA256:
3
- metadata.gz: 4797e925ff275cb6b742ef6dd7be3a03d6033f73c93453305d08383c11252c00
4
- data.tar.gz: 46b165cfeda3df1558221bc668a7749b1c98ec8a937e4956f710dfbe93934cb1
3
+ metadata.gz: ec704929088d1e1f785d46b74dd62197c2a173ff5b405d500ab4068b6025d407
4
+ data.tar.gz: ed17897341f8c43713c41d6e0b22a71afa13899a3c553baf6d034072ad40712a
5
5
  SHA512:
6
- metadata.gz: 6451084c18ae23ee908f0ba6c00cffa2cc5abcec29ecc4c911f7e8340081f4b0b89c66d91f2c9dda988c412bcd5a995705ff219d00147c4d52209749f375ff84
7
- data.tar.gz: b2dd7dda7bae223e450165ff35be42ea814b57d8f06cd0546970a0aed3bed113f290ccc233724248a0cdce3af7b9ef8ac60d2e0e155b1dc6f19376375ccb1990
6
+ metadata.gz: e957fc1353e97b268ead1e99ac9665eac7bd8d0d4eceaff205c07763c7690f8ea173844aeac1be7a9f1af6138b875f49508ed68a21d92814660916aa057566ad
7
+ data.tar.gz: d3ece465fadfae3486f28303eadd1919e5b760e797e41ab231d797363c9ed5143fa616b270f342172ef63bd128780f21ca54f1675d6507749ae5c7aca1278025
data/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Changelog
2
2
 
3
- ## master (unreleased)
3
+ ## master (unreleased
4
4
 
5
5
  ### New Features
6
6
 
@@ -8,6 +8,16 @@
8
8
 
9
9
  ### Changes
10
10
 
11
+ ## 8.2.1 (2026-06-01)
12
+
13
+ ### New Features
14
+
15
+ ### Bug Fixes
16
+
17
+ * Fix `import_count` on relations with multiple `.select(...)` clauses so the bounded progressbar is used instead of silently falling back to the unbounded spinner. Bare `.count` produced `SELECT COUNT(col1, col2, ...)` (invalid SQL); `count(:all)` is used for relations. ([#1026](https://github.com/toptal/chewy/pull/1026))
18
+
19
+ ### Changes
20
+
11
21
  ## 8.2.0 (2026-05-29)
12
22
 
13
23
  ### New Features
@@ -113,7 +113,7 @@ module Chewy
113
113
  args.flatten.compact
114
114
  end
115
115
 
116
- collection.count
116
+ collection.is_a?(relation_class) ? collection.count(:all) : collection.count
117
117
  end
118
118
 
119
119
  def load(ids, **options)
data/lib/chewy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Chewy
2
- VERSION = '8.2.0'.freeze
2
+ VERSION = '8.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chewy
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.2.0
4
+ version: 8.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Toptal, LLC