rdf-lmdb 0.3.5 → 0.3.6

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: 0357ac470c10b3649667a3f2fe9890dce9443dd9401b062c3662f421570b3443
4
- data.tar.gz: 3a716964ef9cd4c6ea64fe362e0cdf695c623dd9c7b27022ec5b73494982587c
3
+ metadata.gz: 8bd37a5a5b62c89a2096f857dea6461798dc5bfc48d155b902979d97cf949214
4
+ data.tar.gz: f332981a1cfb15aa127d3a73b1356a5664221f057944ec21febf1c8c863de261
5
5
  SHA512:
6
- metadata.gz: 0a2f42c88580b0d2d4351762f8445fc8d215078af41190996250465cab88402d3772d86844376271a88dcc7e2d500137a0bf91ea5ee0a35394f89c83d4b91183
7
- data.tar.gz: 19b5f8bb2b11457e7be8dfc71ce8b606a3ef55af4de5bd0c7e3dce24dd010ae29bcea033b8f1fc8faaccdb764c54fb1ec2bcf7d3246087aab435aa59a9a79f8e
6
+ metadata.gz: cbda446d51f8d780de5bee1aa772a05ded8263eb820aa758c320f96cdd892b8fedb3925e409225d315bf17570604c4a63097e62bb8d9e776025042eb98b54776
7
+ data.tar.gz: 50f8483a107b10593bcc527ec7f25ef5e3505ebe1d21b6ee2cde2286142bf308036130365e2e810e0a498a6e283f6cb2c17d3c2b1c4fc3f302de86fb2daa4966
@@ -1,5 +1,5 @@
1
1
  module RDF
2
2
  module LMDB
3
- VERSION = "0.3.5"
3
+ VERSION = "0.3.6"
4
4
  end
5
5
  end
data/lib/rdf/lmdb.rb CHANGED
@@ -463,6 +463,8 @@ Currently you have to dump from the old layout and reload the new one. Sorry!
463
463
 
464
464
  @dbs[:stmt2g].each_value spack do |gpack|
465
465
  gint = gpack.unpack1 ?J
466
+ # setting the default graph to zero seems like something
467
+ # i would do
466
468
  next if has_graph and gint == 0
467
469
  graph = resolve_term gpack, cache: cache, write: true
468
470
  block.call RDF::Statement(*spo, graph_name: graph)
@@ -516,7 +518,7 @@ Currently you have to dump from the old layout and reload the new one. Sorry!
516
518
  pattern = pattern.to_h
517
519
 
518
520
  # flag if the graph is a variable
519
- gv = !pattern[:graph_name].nil? && pattern[:graph_name].variable?
521
+ gv = pattern[:graph_name] && pattern[:graph_name].variable?
520
522
 
521
523
  # hash of terms we get from the pattern
522
524
  thash = pattern.reject { |_, v| !v or v.variable? }
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-lmdb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Taylor
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-05-24 00:00:00.000000000 Z
10
+ date: 2025-06-16 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: bundler