fixture_fox 0.2.9 → 0.2.11

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: 50051aef4f91108da08251be8bed03837c44b2fcc39c0a28156601ac8c36ddff
4
- data.tar.gz: 329e39a3220f4b9503d3a25a09bafcb0ad1605bfb8e38203a8ab89766a6607eb
3
+ metadata.gz: 90d7a14ad82dde55c17e4ceb7edc3693503f99cf6fcefbace3920e96309db0a6
4
+ data.tar.gz: c4edec8b817529d7e36a2e4e6c099f6cce6aaae3db0fb63d9c550d3f518bee5b
5
5
  SHA512:
6
- metadata.gz: 5f97dbaa8de152779d9b9b3d092b8b4ea10121d2ef79250b92f59e5a9aa9ab984108d6cb565d039e68a6c23ca6f164b243d985b0e7d855a789fe2bce5848592e
7
- data.tar.gz: 19671da5508132d13cfc5a3c9c5e796ad729e1daedae4eafe63e42911c36d9cbe9f89148aaa1e0e237ee560164970f28fa9cf0ae11f75d813a236b888b5bfdde
6
+ metadata.gz: 22ddf3e3fcce09c7d1db1b8be13b09535762883a8bb7306861de0a5957c61fae194c9533c86f205054449e6151306fa885dbab698f2fbdb3a6accaa34a7f81a8
7
+ data.tar.gz: 9bde6b3f5107c5d8e6078068ef287169065c4cd31cd77375d81802758b7c016e9f9d22bc9b66e104964ecb9619d47645699ffd8c6f9dcff5de4edb47d8958db1
data/exe/fox CHANGED
@@ -22,7 +22,7 @@ SPEC = %(
22
22
  Reflections YML file
23
23
 
24
24
  -s,state=EFILE?
25
- State file. fox(1) reads ids and anchors from this file. Default is
25
+ State file. fox reads ids and anchors from this file. Default is
26
26
  fox.yml
27
27
 
28
28
  -w,write=FILE? @ Write new state file
@@ -159,7 +159,7 @@ begin
159
159
  end
160
160
 
161
161
  if opts.exec?
162
- tg.time("write") { fox.data.write(conn, ids: ids) }
162
+ tg.time("write") { fox.data.write(conn, ids: ids, delete: opts.delete&.to_sym || :all) }
163
163
  else
164
164
  tg.time("emit") {
165
165
  # puts "Format: #{opts.format.inspect}"
@@ -174,7 +174,7 @@ module FixtureFox
174
174
  end
175
175
 
176
176
  values.each { |value|
177
- if value.is_a?(klass) || !f.type.array? &&
177
+ if value.nil? || value.is_a?(klass) || !f.type.array? &&
178
178
  (klass == Time || klass == Date) &&
179
179
  value.is_a?(String) &&
180
180
  value =~ /^\d\d\d\d-\d\d-\d\d(?: \d\d:\d\d(?::\d\d)?)?$/
@@ -1,3 +1,3 @@
1
1
  module FixtureFox
2
- VERSION = "0.2.9"
2
+ VERSION = "0.2.11"
3
3
  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.9
4
+ version: 0.2.11
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-09-15 00:00:00.000000000 Z
11
+ date: 2024-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg