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 +4 -4
- data/lib/fixture_fox/version.rb +1 -1
- data/lib/fixture_fox.rb +6 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f3f2ea4b0e398cac6c0991a681acf9fb40ac1f4bd4c6dc2a8b949cf0cadf2e72
|
4
|
+
data.tar.gz: d5cf5dc9034d44348ca6dfc6c468adf3559985aad2256d6950438f30909bfa30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fde4ddeb3362318b6d1a19f90790020b6743b535dcd55394e40f6a94a49873f2c4a167e301e516bf02f39248dae5fdf166bc8bb69d3c6d2d027ed6bbc7cc202
|
7
|
+
data.tar.gz: 528cf8d9ab1f760a60ad01ab0463236df628ec77e10904ac6497a0b659fc0c3057bf5343ba0618eb2f4049cc86caa60f4082d4ce2c87ceaac7e4e0012af0f88c
|
data/lib/fixture_fox/version.rb
CHANGED
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
|
-
|
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
|
+
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-
|
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.
|
251
|
+
rubygems_version: 3.3.7
|
252
252
|
signing_key:
|
253
253
|
specification_version: 4
|
254
254
|
summary: fixture_fox gem
|