support_table_cache 1.1.1 → 1.1.2

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: a4593056e89633a124e0301d60245fd7ce398d30c4e4df6bb83d0a982618e7e6
4
- data.tar.gz: 4a145eb106e73e8005df79dfff194fdfd1a6712a0452c5c782665321fc4f5e31
3
+ metadata.gz: 96d5ff63c1cd08f7389bf3b409d0afc4f706f42bed958c7b3a7f2b592d391453
4
+ data.tar.gz: 76e59a449b9eeffd9df794f014abcbf324f4df2590e250817a4dd3b77467e5b5
5
5
  SHA512:
6
- metadata.gz: d11be8910f52e30c5c7b4cdb0eb9acbb0d0c0c4921ab3eba158111ebdd9635a91387f1d440d7ccc9fdb1136b4482a0110811ba6c86eb620443011c0aa9a00b14
7
- data.tar.gz: 99df1e4070ed392e85dcb711c8cddf253733faf505d0b54d6288fb23a1c9eac67230a1a71ea05e73035133ae4fd519c0e1d9d94eb6d4d095f425faf1ca544a02
6
+ metadata.gz: 970762a6cb7aaf507552dce376efbcf1da64feb54b261fa315aaff2fc8898b4b8d3db755690c3c09e57e4c615ac7ae23e334e8d1426613b59a800a34c55f6b52
7
+ data.tar.gz: deed3048a34f40d30aec7c902f09f265642e34a6e8108cca9db806929ab74ef57fd2f31d24b01dd892717a463e5c3bfdb1f6aaaf15b74d9b791d987560c2bc0f
data/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 1.1.2
8
+
9
+ ### Fixed
10
+ - Do not cache records where only some of the columns have been loaded with a call to `select`.
11
+
7
12
  ## 1.1.1
8
13
 
9
14
  ### Fixed
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.1
1
+ 1.1.2
@@ -11,6 +11,8 @@ module SupportTableCache
11
11
  cache = klass.send(:current_support_table_cache)
12
12
  return super unless cache
13
13
 
14
+ return super if select_values.present?
15
+
14
16
  cache_key = nil
15
17
  attributes = ((args.size == 1 && args.first.is_a?(Hash)) ? args.first.stringify_keys : {})
16
18
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: support_table_cache
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Durand
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-11 00:00:00.000000000 Z
11
+ date: 2022-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord