fbe 0.19.0 → 0.19.1
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 +4 -4
- data/lib/fbe/middleware/sqlite_store.rb +3 -1
- data/lib/fbe/octo.rb +1 -0
- data/lib/fbe.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f97f9d210de0a591fd2649095d07a8e6415a13b74d7abce02322d84cdcb29fd
|
4
|
+
data.tar.gz: 864239e8b577903cb9c3c1cad53e2d267f31de6839df37ecca8123d1a1340d84
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac1618f1d123e8ef210f33fe73e23d3b324bea096d3bfc18f97f9671100f0a75312524ea8fbb9eead93cb9e1c22635def15365e99f35e2000abbd89b209d3f51
|
7
|
+
data.tar.gz: f69b7743409715b8fb42b44641414e235cc6c259316ea8427fa19295c23a50cb9d40750721a9a18d1873ca511f3434a37042fee3857fb117c0975e00c2fa031d
|
@@ -14,11 +14,13 @@ require_relative '../../fbe/middleware'
|
|
14
14
|
# Copyright:: Copyright (c) 2024-2025 Zerocracy
|
15
15
|
# License:: MIT
|
16
16
|
class Fbe::Middleware::SqliteStore
|
17
|
+
attr_reader :path
|
18
|
+
|
17
19
|
def initialize(path)
|
18
20
|
raise ArgumentError, 'Database path cannot be nil or empty' if path.nil? || path.empty?
|
19
21
|
dir = File.dirname(path)
|
20
22
|
raise ArgumentError, "Directory #{dir} does not exist" unless File.directory?(dir)
|
21
|
-
@path = path
|
23
|
+
@path = File.absolute_path(path)
|
22
24
|
open
|
23
25
|
prepare
|
24
26
|
at_exit { close }
|
data/lib/fbe/octo.rb
CHANGED
@@ -84,6 +84,7 @@ def Fbe.octo(options: $options, global: $global, loog: $loog)
|
|
84
84
|
if options.sqlite_cache
|
85
85
|
store = Fbe::Middleware::SqliteStore.new(options.sqlite_cache)
|
86
86
|
serializer = JSON
|
87
|
+
loog.info("Using HTTP cache in SQLite file: #{store.path}")
|
87
88
|
end
|
88
89
|
builder.use(
|
89
90
|
Faraday::HttpCache,
|
data/lib/fbe.rb
CHANGED