iknow_view_models 3.2.6 → 3.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iknow_view_models/version.rb +1 -1
- data/lib/view_model.rb +3 -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: 4873d88f99bcdf0d63c3db8cbf36af0990bd9dd88bca0e170159b873b8aa7212
|
4
|
+
data.tar.gz: b190cb5ec7806dfe4f8decbf4acf8f54b7fcc0857f271d1417b4d680a87c0622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57c4fad3880aa1ce8f3434827df3dd6a789561a0f3bd8210b774c86258b8a0d4be777cbb827760f6c405b7caa61875efb8a780b3a2a9d7eff203315490d5f450
|
7
|
+
data.tar.gz: ffe26b3f24098c1ce7bd07453ce5a4f9a0bfd9611e57a53ccb7394b98fc2b8af724dc598bca85e0d2713c457d3fb5cc8575006ed947ade06aa7efd11f4436c16
|
data/lib/view_model.rb
CHANGED
@@ -245,7 +245,9 @@ class ViewModel
|
|
245
245
|
|
246
246
|
def schema_hash(schema_versions)
|
247
247
|
version_string = schema_versions.to_a.sort.join(',')
|
248
|
-
|
248
|
+
# We want a short hash value, as this will be used in cache keys
|
249
|
+
hash = Digest::SHA256.digest(version_string).byteslice(0, 16)
|
250
|
+
Base64.urlsafe_encode64(hash, padding: false)
|
249
251
|
end
|
250
252
|
|
251
253
|
def preload_for_serialization(viewmodels, serialize_context: new_serialize_context, include_referenced: true, lock: nil)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iknow_view_models
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- iKnow Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|