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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e23a65eb08dfc3ed99f0866620573db756d00a429ae392f2ff5b3795d0bce977
4
- data.tar.gz: 0b5e8b3052f30faa2944029f487b27825aa6f183dc47a4b342626e1c8a419738
3
+ metadata.gz: ee649f66f2e086bbef5720bccb6987ede52b70cb8eac983e1fc1cd29338d13fe
4
+ data.tar.gz: f9e5be06846f445c533dbe85a569a2be47d83f35c1ad38402b9778d0f4b52562
5
5
  SHA512:
6
- metadata.gz: 82346ff73dc868ed37fb94b28dea73e6b228e8047c2a52f36a6d14e4b911995801fccec23effe56de353042fc991b26db3c48dd1c7f563e5c829eb0b00f31820
7
- data.tar.gz: 883e5df0beb0e4ff2288ef9fe0bcff1970b49ff5cae6858be53f5d65acae7324d96c8f43dea7d51f4a832bc5ddcd8780cbf354a8c6cbfa3d36690ff4f0a35513
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.0...master)
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,
@@ -1,3 +1,3 @@
1
1
  module ActiveSnapshot
2
- VERSION = "1.2.0".freeze
2
+ VERSION = "1.2.1".freeze
3
3
  end
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.0
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-06-25 00:00:00.000000000 Z
11
+ date: 2026-07-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord