fixture_fox 0.2.4 → 0.2.5

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: 7581c59d3d7efa1d8f559da1031eefa8cbefdf86bf248a752010d654fbaf25de
4
- data.tar.gz: a70b6e9af1d19d61f694a038dd75551e460f801b2b5a5c26bbc075e5ee8cdbe9
3
+ metadata.gz: f3f2ea4b0e398cac6c0991a681acf9fb40ac1f4bd4c6dc2a8b949cf0cadf2e72
4
+ data.tar.gz: d5cf5dc9034d44348ca6dfc6c468adf3559985aad2256d6950438f30909bfa30
5
5
  SHA512:
6
- metadata.gz: ea176e378870d9e6d4870273de052711ee9a32e832c34ca9d7405650bc3bf8b671ef960cee325e26aff62202fe145ccd498dd9726a5949778387621295a67484
7
- data.tar.gz: 488630dcc4b7e5fe656fe3b23a5015002e38b8a3b84d653fcfe30b903f12bbdca3da05cebcaee2fa21975d0e07e3cf93b653538294505bf87429730a607103ae
6
+ metadata.gz: 6fde4ddeb3362318b6d1a19f90790020b6743b535dcd55394e40f6a94a49873f2c4a167e301e516bf02f39248dae5fdf166bc8bb69d3c6d2d027ed6bbc7cc202
7
+ data.tar.gz: 528cf8d9ab1f760a60ad01ab0463236df628ec77e10904ac6497a0b659fc0c3057bf5343ba0618eb2f4049cc86caa60f4082d4ce2c87ceaac7e4e0012af0f88c
@@ -1,3 +1,3 @@
1
1
  module FixtureFox
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
data/lib/fixture_fox.rb CHANGED
@@ -190,7 +190,12 @@ module FixtureFox
190
190
  end
191
191
 
192
192
  def to_sql(format: :psql, ids: nil, delete: :all)
193
- data.to_sql(format: format, ids: ids || {}, delete: delete, files: files)
193
+ if [:touched, :recursive, :all].include?(delete)
194
+ # Ugly quick-fix because pg_graph doens't to dependencies(!)
195
+ data.to_sql(format: format, ids: ids || {}, delete: :none, truncate: delete, files: files)
196
+ else
197
+ data.to_sql(format: format, ids: ids || {}, delete: delete, files: files)
198
+ end
194
199
  end
195
200
 
196
201
  def self.read_ids(file) YAML.load(IO.read(file)) end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fixture_fox
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Claus Rasmussen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-21 00:00:00.000000000 Z
11
+ date: 2024-06-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg
@@ -248,7 +248,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
248
248
  - !ruby/object:Gem::Version
249
249
  version: '0'
250
250
  requirements: []
251
- rubygems_version: 3.3.18
251
+ rubygems_version: 3.3.7
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: fixture_fox gem