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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca1e12a4b07ce8d4fa15ce2d92d8eed98fe9e34bcf7024106610fd8558c67c18
4
- data.tar.gz: e3c30f1281c87d569ae69b966a35d9ec05813890fca0b0ede639b416e4beb7b8
3
+ metadata.gz: 4f97f9d210de0a591fd2649095d07a8e6415a13b74d7abce02322d84cdcb29fd
4
+ data.tar.gz: 864239e8b577903cb9c3c1cad53e2d267f31de6839df37ecca8123d1a1340d84
5
5
  SHA512:
6
- metadata.gz: 117de890b3d5d5abfa0fff5a0c8da8b1681618c8c2726fa7cc248fa28321e90752500d83f005583a9cb886624a135386f7379c7f529c1da6205b274888ee6d5e
7
- data.tar.gz: 3db7a0b6b6a3a19fff7fb475ca372ad501de9031c4ec0d984e4ffcb0f95d81d83fc7840fe11df4464ea7c920d229e7ccc3dfc6f7099c7d9801559cb89b4a7569
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
@@ -10,5 +10,5 @@
10
10
  # License:: MIT
11
11
  module Fbe
12
12
  # Current version of the gem (changed by +.rultor.yml+ on every release)
13
- VERSION = '0.19.0' unless const_defined?(:VERSION)
13
+ VERSION = '0.19.1' unless const_defined?(:VERSION)
14
14
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fbe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.0
4
+ version: 0.19.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yegor Bugayenko