Skip to content

Commit 43c9805

Browse files
authored
Merge pull request #286 from webmachine/orien/rubies
2 parents 699136b + a9779b0 commit 43c9805

3 files changed

Lines changed: 11 additions & 12 deletions

File tree

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
strategy:
1010
fail-fast: false
1111
matrix:
12-
ruby_version: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"]
12+
ruby_version: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3", "3.4", "4.0"]
1313
experimental: [false]
1414
include:
1515
- ruby_version: "ruby-head"
1616
experimental: true
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@v6
2020
- uses: ruby/setup-ruby@v1
2121
with:
2222
ruby-version: ${{ matrix.ruby_version }}

Gemfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@ source 'https://rubygems.org'
22
gemspec
33

44
group :development do
5-
gem 'rake', '~> 12.0'
5+
gem 'rake', '~> 13'
66
gem 'standard', '~> 1.21'
77
gem 'webrick', '~> 1.7'
88
end
99

1010
group :test do
11-
gem 'rack', '~> 2.0'
12-
gem 'rack-test', '~> 0.7'
11+
gem 'rack', '~> 2'
12+
gem 'rack-test', '~> 2'
1313
gem 'rspec', '~> 3.0', '>= 3.6.0'
1414
gem 'rspec-its', '~> 1.2'
15-
gem 'websocket_parser', '~>1.0'
15+
gem 'websocket_parser', '~> 1.0'
1616
end
1717

1818
group :docs do
@@ -29,7 +29,7 @@ if RUBY_VERSION >= '3.4'
2929
end
3030

3131
if RUBY_VERSION >= '4.0'
32-
gem 'pstore'
3332
gem 'logger'
3433
gem 'ostruct'
34+
gem 'pstore'
3535
end

lib/webmachine/trace/pstore_trace_store.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
require 'pstore'
2-
31
module Webmachine
42
module Trace
5-
# Implements a trace storage using PStore from Ruby's standard
6-
# library. To use this trace store, specify the :pstore engine
7-
# and a path where it can store traces:
3+
# Implements a trace storage using the pstore gem. To use this trace store,
4+
# add `pstore` to your Gemfile and specify the :pstore engine and a path
5+
# where it can store traces:
86
# @example
97
# Webmachine::Trace.trace_store = :pstore, "/tmp/webmachine.trace"
108
class PStoreTraceStore
119
# @api private
1210
# @param [String] path where to store traces in a PStore
1311
def initialize(path)
12+
require 'pstore' # JIT load of the pstore gem. Avoid requiring the dependency when this class is not used.
1413
@pstore = PStore.new(path)
1514
end
1615

0 commit comments

Comments
 (0)