We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
pstore
1 parent 1fdef03 commit 5899d1aCopy full SHA for 5899d1a
2 files changed
Gemfile
@@ -29,7 +29,7 @@ if RUBY_VERSION >= '3.4'
29
end
30
31
if RUBY_VERSION >= '4.0'
32
- gem 'pstore'
33
gem 'logger'
34
gem 'ostruct'
+ gem 'pstore'
35
lib/webmachine/trace/pstore_trace_store.rb
@@ -1,5 +1,3 @@
1
-require 'pstore'
2
-
3
module Webmachine
4
module Trace
5
# Implements a trace storage using PStore from Ruby's standard
@@ -11,6 +9,7 @@ class PStoreTraceStore
11
9
# @api private
12
10
# @param [String] path where to store traces in a PStore
13
def initialize(path)
+ require 'pstore' # JIT load of the pstore gem. Avoid requiring the dependency when this class is not used.
14
@pstore = PStore.new(path)
15
16
0 commit comments