foundries 0.1.7 → 0.1.8

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: 26171ce16e8737361c8ac3dcfbed573f17ec11d274eade9a26b465b6a687bfd2
4
- data.tar.gz: 384a4c0d4f68ed3bb706262a3cea621666549d96e825b53884797c56f906cf8d
3
+ metadata.gz: ab6babf4d677507688b1d7bd9019f61a9b02e7d2c0b8ecc0e6b5a62c066509fd
4
+ data.tar.gz: 28c8aa33144c3fca2d424a44faa42ba72e453db04a7ddcd5dd4e7024d8e5591c
5
5
  SHA512:
6
- metadata.gz: 53632c7bc3809bb486bad25597d4044d75c3b923a4657bca554d4ca57b58de2524bcd9d054fc86fdf1c3dae71920ab93c873cd72252b70e447a6b8af6b74da68
7
- data.tar.gz: f73d427438035744750939c0a1f75491a3c930b1943bce3b97e007868a8e06ff0daeffaea0acd2e7937a322759991f074259a3d9a886d1371df8a6d78db93ce4
6
+ metadata.gz: 6f68876b0a0b4628c92d4e05eb5f7ede24d4cdb2b52c0a033e213900d90059c7fe695310d408b5ce2240cae7fed2a818338b6d503994b5316af7aa961a9e0eef
7
+ data.tar.gz: '087ee2693cd1ef2ef8eee07a547676e6ef90385509e5e5564c6002a2b7f4452eb36a4329f3c9497518c0102326ea3cb73deef9fc9abc1eb312f7b0ce44e71fa1'
data/CHANGELOG.md CHANGED
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](http://keepachangelog.com/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/).
7
7
 
8
+ ## [0.1.8] - 2026-10-05
9
+
10
+ ### Fixed
11
+
12
+ - Restore snapshots on the caller's current connection (460b709)
13
+
8
14
  ## [0.1.7] - 2026-09-10
9
15
 
10
16
  ### Added
@@ -17,10 +23,3 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
17
23
  - Reject incomplete snapshots before restoring rows (fe91e06)
18
24
  - Clean staging directories after failed snapshot captures (fe91e06)
19
25
  - Restore parent context when a nested blueprint block raises (7fd6e4b)
20
-
21
- ## [0.1.6] - 2026-08-25
22
-
23
- ### Fixed
24
-
25
- - Snapshot files are read and written in binary, so captured data with non-ASCII bytes round-trips (6a7d3a3)
26
- - Restoring a snapshot no longer rewinds a sequence below its current value (df66836)
@@ -43,12 +43,13 @@ module Foundries
43
43
  ENV["FOUNDRIES_CACHE"] == "1"
44
44
  end
45
45
 
46
+ # Built per call so a restore always runs on the caller's current
47
+ # connection, inside its transaction.
46
48
  def adapter
47
- @adapter ||= Adapter.for(connection)
49
+ Adapter.for(connection)
48
50
  end
49
51
 
50
52
  def reset!
51
- @adapter = nil
52
53
  @source_paths = nil
53
54
  end
54
55
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Foundries
4
- VERSION = "0.1.7"
5
- RELEASE_DATE = "2026-09-10"
4
+ VERSION = "0.1.8"
5
+ RELEASE_DATE = "2026-10-05"
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foundries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Dowd
@@ -93,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
93
93
  - !ruby/object:Gem::Version
94
94
  version: '0'
95
95
  requirements: []
96
- rubygems_version: 4.0.16
96
+ rubygems_version: 4.0.20
97
97
  specification_version: 4
98
98
  summary: Declarative trees of related data using factory_bot
99
99
  test_files: []