foobara-local-files-crud-driver 0.0.8 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ac3f878951193768f4270053f52ef083fdded58e48365dfe02884495a365c9e2
4
- data.tar.gz: a0bcaa7c8d7565842d64c5d0efa2e7cea005c168b6e2d71bd192a5b09dc67b00
3
+ metadata.gz: ccd447447e2efe06faae51c0854796cd84087bd1c57e3e911c99bf02c3cc6f11
4
+ data.tar.gz: 8b1df78e975cbfca0f4bb5e863321e80dc2d0f28436e4ccf21cadf7ed54af769
5
5
  SHA512:
6
- metadata.gz: 1f69ebb37262f861fa0f8881dedc0f8d663ab2c8c74ba51ae3afe37c0e53fe684dfd44a74c0c7c49431ff5b0b44c244d304c91d5bf0da00828fcb9dd47eeaab9
7
- data.tar.gz: 06da6c67ba0d4891841757ea60b8326fa344749a5a12b3a62250e28554f39a40b333cb9bb202bf70176df273b2aac8421e63d43634ec262055c44a11c25508cc
6
+ metadata.gz: 69cc3b74e0d6b8f4e0a846953785882034e87ba689ca4ada6c1801ee6cdf7318a3326006d3a7ca42f1bbb74b96e5434288e4192f5b4a19910307aef10d0e5404
7
+ data.tar.gz: f27c45f31e7994ee436edd6692b0ce299144f9c1bb0bd2d9b4db605061be16c03ba04c2a1be31f491c66c699eb7364959c435b30f3c529b1a44ae3d25673a4eb
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [0.0.9] - 2025-04-15
2
+
3
+ - Remove unused #fsync
4
+ - Make sure we flush files to disk
5
+
1
6
  ## [0.0.8] - 2025-03-29
2
7
 
3
8
  - Fix bug where writing out one table erases another
@@ -4,12 +4,11 @@ require "yaml"
4
4
  module Foobara
5
5
  # TODO: lots of duplication in this file. Need to DRY this up a bit.
6
6
  class LocalFilesCrudDriver < Persistence::EntityAttributesCrudDriver
7
- attr_accessor :data_path, :format, :fsync, :multi_process, :raw_data
7
+ attr_accessor :data_path, :format, :multi_process, :raw_data
8
8
 
9
- def initialize(data_path: "#{Dir.pwd}/local_data/records.yml", format: :yaml, fsync: false, multi_process: false)
9
+ def initialize(data_path: "#{Dir.pwd}/local_data/records.yml", format: :yaml, multi_process: false)
10
10
  self.data_path = data_path
11
11
  self.format = format
12
- self.fsync = fsync
13
12
  self.multi_process = multi_process
14
13
 
15
14
  unless format == :yaml
@@ -201,6 +200,7 @@ module Foobara
201
200
  f.truncate(0)
202
201
  f.rewind
203
202
  f.write(file_contents)
203
+ f.flush
204
204
  else
205
205
  FileUtils.mkdir_p File.dirname(data_path)
206
206
 
@@ -212,6 +212,7 @@ module Foobara
212
212
  file.truncate(0)
213
213
  file.rewind
214
214
  file.write(file_contents)
215
+ file.flush
215
216
  end
216
217
  end
217
218
 
metadata CHANGED
@@ -1,28 +1,28 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: foobara-local-files-crud-driver
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Miles Georgi
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-29 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: foobara
14
14
  requirement: !ruby/object:Gem::Requirement
15
15
  requirements:
16
- - - ">="
16
+ - - "~>"
17
17
  - !ruby/object:Gem::Version
18
- version: '0'
18
+ version: 0.0.102
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
- - - ">="
23
+ - - "~>"
24
24
  - !ruby/object:Gem::Version
25
- version: '0'
25
+ version: 0.0.102
26
26
  email:
27
27
  - azimux@gmail.com
28
28
  executables: []
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  - !ruby/object:Gem::Version
58
58
  version: '0'
59
59
  requirements: []
60
- rubygems_version: 3.6.6
60
+ rubygems_version: 3.6.7
61
61
  specification_version: 4
62
62
  summary: Stores all record data in a yaml file in a local directory
63
63
  test_files: []