fixture_fox 0.2.3 → 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/fixture_fox.gemspec +2 -1
- data/lib/fixture_fox/version.rb +1 -1
- data/lib/fixture_fox.rb +6 -1
- metadata +7 -7
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/fixture_fox.gemspec
CHANGED
@@ -28,7 +28,8 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_dependency "developer_exceptions"
|
29
29
|
spec.add_dependency "constrain"
|
30
30
|
|
31
|
-
|
31
|
+
# spec.add_dependency "shellopts", '=2.1.3'
|
32
|
+
spec.add_dependency "shellopts"
|
32
33
|
spec.add_dependency "pg_graph"
|
33
34
|
|
34
35
|
spec.add_development_dependency "rake"
|
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:
|
11
|
+
date: 2024-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pg
|
@@ -98,16 +98,16 @@ dependencies:
|
|
98
98
|
name: shellopts
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- -
|
101
|
+
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: '0'
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
|
-
- -
|
108
|
+
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: pg_graph
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -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
|