lmdb 0.1.0 → 0.2.0

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.
@@ -1,33 +0,0 @@
1
- require 'bundler/setup'
2
- require 'lmdb'
3
- require 'rspec'
4
- require 'fileutils'
5
- require 'pathname'
6
-
7
- SPEC_ROOT = Pathname.new File.expand_path('..', __FILE__)
8
- TEMP_ROOT = SPEC_ROOT.join("tmp")
9
-
10
- module LMDB::SpecHelper
11
-
12
- def mkpath(name = 'env')
13
- TEMP_ROOT.join(name).to_s.tap do |path|
14
- FileUtils.mkpath(path)
15
- end
16
- end
17
-
18
- def path
19
- @path ||= mkpath
20
- end
21
-
22
- def env
23
- @env ||= LMDB::Environment.new path: path
24
- end
25
-
26
- end
27
-
28
- RSpec.configure do |c|
29
- #c.filter_run_excluding segfault: true
30
- c.include LMDB::SpecHelper
31
- c.after { FileUtils.rm_rf TEMP_ROOT.to_s }
32
- end
33
-