rdf-lmdb 0.3.3 → 0.3.4

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: 0c021040c4ca9c7021c79808072cf55ce2c4f378f995726dfd7eec48c1f1b3ca
4
- data.tar.gz: 62d9f85388152eddb2f7965ac32cb4fcbb0955d35ab410fa36726632f8f235c0
3
+ metadata.gz: af391230f651d1a891379a96c2ce2fd5a28dc0fc1e094c61bdfa285d0f5778d3
4
+ data.tar.gz: da776b5c1acff8e8184f99955868124aecdcc386f48a4fb7d2710fef77a9bfb5
5
5
  SHA512:
6
- metadata.gz: c76ff224facd0128e6554018bb85937a0f27175f061e2a59093ba007bd6c790330a93ec20c5346d0ba5ec45f242bad0f393d05b322b8d8ce80d705ee122af1f6
7
- data.tar.gz: 5771bec23b120002df5d94e2c8f1e85657409f447924cacb1f2ec464e1fab5751ac1adbaf5fe3286e7e96051fe012e530ddac8ead2097e3e39a0033195b599c1
6
+ metadata.gz: e1dfec2d450287001e0bd2ee8998844f66ea4196fab3d644a5dfc12104b482e43cbff882e2697f6661b5f8bedb6bf9f5d07e9bb94f2edebb9813faf7da23e10a
7
+ data.tar.gz: 46aec34649aaff508943353d7de50288b9a2eed00083b37204f65969ea9401ab58fb39a904935a8aefac7b39a62d394cbd65c8e34734a53127b1a24265735fee
@@ -1,5 +1,5 @@
1
1
  module RDF
2
2
  module LMDB
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
data/lib/rdf/lmdb.rb CHANGED
@@ -529,7 +529,7 @@ Currently you have to dump from the old layout and reload the new one. Sorry!
529
529
  ihash = thash.transform_values { |v| int_for v }
530
530
  cache = thash.keys.map { |k| [ihash[k], thash[k]] }.to_h
531
531
 
532
- body = -> do
532
+ body = -> _ = nil do
533
533
  # if the graph is nonexistent there is nothing to show
534
534
  return if thash[:graph_name] and !ihash[:graph_name]
535
535
 
@@ -586,8 +586,9 @@ Currently you have to dump from the old layout and reload the new one. Sorry!
586
586
  return unless db.has? anchor
587
587
 
588
588
  db.each_value anchor do |spack|
589
- spo = @dbs[:statement][spack]
590
- return unless @dbs[:stmt2g].has? spack, ihash[:graph_name]
589
+ spo = @dbs[:statement][spack]
590
+ gpack = [ihash[:graph_name]].pack ?J
591
+ return unless @dbs[:stmt2g].has? spack, gpack
591
592
  spo = resolve_terms spo
592
593
  yield RDF::Statement(*spo, graph_name: thash[:graph_name])
593
594
  end
@@ -632,14 +633,14 @@ Currently you have to dump from the old layout and reload the new one. Sorry!
632
633
  end
633
634
  end
634
635
 
635
- #@lmdb.active_txn ? body.call : @lmdb.transaction(true, &body)
636
+ @lmdb.active_txn ? body.call : @lmdb.transaction(true, &body)
636
637
 
637
- ret = nil
638
- @lmdb.transaction do
639
- ret = body.call
640
- end
638
+ # ret = nil
639
+ # @lmdb.transaction do
640
+ # ret = body.call
641
+ # end
641
642
 
642
- ret
643
+ # ret
643
644
  end
644
645
 
645
646
  def log_mtime time = nil
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-lmdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Taylor
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2025-04-05 00:00:00.000000000 Z
10
+ date: 2025-05-07 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: bundler
@@ -141,7 +140,6 @@ homepage: https://github.com/doriantaylor/rb-rdf-lmdb
141
140
  licenses:
142
141
  - Apache-2.0
143
142
  metadata: {}
144
- post_install_message:
145
143
  rdoc_options: []
146
144
  require_paths:
147
145
  - lib
@@ -156,8 +154,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
156
154
  - !ruby/object:Gem::Version
157
155
  version: '0'
158
156
  requirements: []
159
- rubygems_version: 3.4.20
160
- signing_key:
157
+ rubygems_version: 3.6.3
161
158
  specification_version: 4
162
159
  summary: Symas LMDB back-end for RDF::Repository
163
160
  test_files: []