active_snapshot 1.2.0 → 1.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 +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/active_snapshot/models/snapshot.rb +7 -1
- data/lib/active_snapshot/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: ee649f66f2e086bbef5720bccb6987ede52b70cb8eac983e1fc1cd29338d13fe
|
|
4
|
+
data.tar.gz: f9e5be06846f445c533dbe85a569a2be47d83f35c1ad38402b9778d0f4b52562
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 43e4edaf15e318014f9c97b2425bf4d92f23e3f9c162ce0dc1b91712d0d98d448ae6002ed833186287603fb0e1c7bf675b9242f66b0a9d8ce760cd62f3296494
|
|
7
|
+
data.tar.gz: edff53f7b93136a6dbbd70625b17cd0a1b14b40fff67a15bf57af065c92d8e54d626ffa4de5268e166f9bad8dc350a48ed453d97dca9d1b89361f98e0f7f3cd7
|
data/CHANGELOG.md
CHANGED
|
@@ -2,9 +2,13 @@ CHANGELOG
|
|
|
2
2
|
---------
|
|
3
3
|
|
|
4
4
|
- **Unreleased**
|
|
5
|
-
* [View Diff](https://github.com/westonganger/active_snapshot/compare/v1.2.
|
|
5
|
+
* [View Diff](https://github.com/westonganger/active_snapshot/compare/v1.2.1...master)
|
|
6
6
|
* Nothing yet
|
|
7
7
|
|
|
8
|
+
- **v1.2.1** - July 24, 2026
|
|
9
|
+
* [View Diff](https://github.com/westonganger/active_snapshot/compare/v1.2.0...v1.2.1)
|
|
10
|
+
* [#82](https://github.com/westonganger/active_snapshot/pull/82) - Properly serialize PostgreSQL array columns
|
|
11
|
+
|
|
8
12
|
- **v1.2.0** - Jun 25, 2026
|
|
9
13
|
* [View Diff](https://github.com/westonganger/active_snapshot/compare/v1.1.0...v1.2.0)
|
|
10
14
|
* [#80](https://github.com/westonganger/active_snapshot/pull/80)
|
|
@@ -165,7 +165,13 @@ module ActiveSnapshot
|
|
|
165
165
|
end
|
|
166
166
|
|
|
167
167
|
def build_snapshot_item(instance, child_group_name: nil)
|
|
168
|
-
attrs = instance.attributes_for_database
|
|
168
|
+
attrs = instance.attributes_for_database.transform_values do |value|
|
|
169
|
+
if defined?(PG) && value.try(:encoder).is_a?(PG::TextEncoder::Array)
|
|
170
|
+
value.values
|
|
171
|
+
else
|
|
172
|
+
value
|
|
173
|
+
end
|
|
174
|
+
end
|
|
169
175
|
|
|
170
176
|
self.snapshot_items.new({
|
|
171
177
|
object: attrs,
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_snapshot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Weston Ganger
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-07-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activerecord
|