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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2df98a0f3709e924fc29ae7f8d155191bc5e6e49338e5f6673376f36bf3d0a1f
4
- data.tar.gz: b578b8fbaeec78c200bc387de6d3cbbfa0a8d468131fea552329bb5088234085
3
+ metadata.gz: f3f2ea4b0e398cac6c0991a681acf9fb40ac1f4bd4c6dc2a8b949cf0cadf2e72
4
+ data.tar.gz: d5cf5dc9034d44348ca6dfc6c468adf3559985aad2256d6950438f30909bfa30
5
5
  SHA512:
6
- metadata.gz: 7fbb05bacc4362fc47fee303969b9b0e621da953f8b8f9f21e62441121ce89f5ce4784d1242fa38a061d905bf865b1fb3db7b33bb76309eb1ddb2a424076f6ef
7
- data.tar.gz: 9a7ff187e819d3f7f9ced5755df25382b7da9bb350fb1d9ac788ec8951d19b446b33eaf3cac6bf3883e44eabaff84b9b2b9fbd110e0fda43c479449e1593a24c
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
- spec.add_dependency "shellopts", '=2.1.3'
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"
@@ -1,3 +1,3 @@
1
1
  module FixtureFox
2
- VERSION = "0.2.3"
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.3
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: 2023-12-17 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
@@ -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: 2.1.3
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: 2.1.3
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.18
251
+ rubygems_version: 3.3.7
252
252
  signing_key:
253
253
  specification_version: 4
254
254
  summary: fixture_fox gem