rdf-kv 0.1.3 → 0.1.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: e5e9ee04b73aea9ca848276b9e7c28efe2e42a7617b4c4be587f26a262d1e487
4
- data.tar.gz: 90a5036bbb9d090c1859c7fd1069dba484b4533ee3bcbbfb53751e7c792494e5
3
+ metadata.gz: 0ae8b165dd5ec6b9b0d5537be00fd9bdad78451db3a7d26004b83dc891e132f8
4
+ data.tar.gz: 2e66180337cd279075ef50978b175c04799d1e3d22206c6d12cc1cfc55c31a31
5
5
  SHA512:
6
- metadata.gz: 13160ab47776b4fc531de45f341f0d05e7cb5eb04886b541aaf1f6418bf1aeaf5943bd2b9bfca8da0054af2f2cc964a79401757ac3d5482454fb0dd2f1d3dedd
7
- data.tar.gz: 67da241b365cb8d278b0d0588fe3dc5df93984e1734c0c865d0b76a04e8fb34bfddf93f7357bca85119f649441da768ef104fd46a22479202e278b9c05fca932
6
+ metadata.gz: 46fe633378e76f51b004b26c6e3ceea96acedd4ab64dcc2e2801cd71c771cb4e879a9d13e87133fd9be6c2119423d2be04369954919f10dbc86bccaa72345063
7
+ data.tar.gz: b43fa6bf6d8106d67d016548c7313c41cebe883559fef3149c256727fb56a1f6af8646ec6064a5150115df560391db89ad65f940ddf38105f07202f13f4eb3c4
@@ -1,5 +1,5 @@
1
1
  module RDF
2
2
  class KV
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
data/lib/rdf/kv.rb CHANGED
@@ -1,6 +1,7 @@
1
1
  require 'rdf/kv/version'
2
2
 
3
3
  require 'rdf'
4
+ require 'time'
4
5
  require 'uri'
5
6
  require 'uuidtools'
6
7
  require 'uuid-ncname'
@@ -56,6 +57,14 @@ class RDF::KV
56
57
  UUID::NCName.to_ncname_64 UUIDTools::UUID.random_create.to_s, version: 1
57
58
  end
58
59
 
60
+ # just the classics
61
+ DEFAULT_NS = {
62
+ rdf: RDF::RDFV,
63
+ rdfs: RDF::RDFS,
64
+ owl: RDF::OWL,
65
+ xsd: RDF::XSD,
66
+ }.freeze
67
+
59
68
  # macros are initially represented as a pair: the macro value and a
60
69
  # flag denoting whether or not the macro itself contains macros and to
61
70
  # try to dereference it.
@@ -63,14 +72,7 @@ class RDF::KV
63
72
  NEW_UUID: [[-> { UUIDTools::UUID.random_create.to_s }, false]],
64
73
  NEW_UUID_URN: [[-> { UUIDTools::UUID.random_create.to_uri }, false]],
65
74
  NEW_BNODE: [[-> { "_:#{random_uuid_ncname}" }, false]],
66
- }.freeze
67
-
68
- # just the classics
69
- DEFAULT_NS = {
70
- rdf: RDF::RDFV,
71
- rdfs: RDF::RDFS,
72
- owl: RDF::OWL,
73
- xsd: RDF::XSD,
75
+ NEW_TIME_UTC: [[-> { Time.now.utc.iso8601 }, false]],
74
76
  }.freeze
75
77
 
76
78
  # Given a (massaged) set of macros, dereference the given array of
@@ -270,7 +272,7 @@ class RDF::KV
270
272
  graph.nil? or graph.is_a? RDF::Resource
271
273
  raise ArgumentError, 'prefixes must be hashable' unless
272
274
  prefixes.respond_to? :to_h
273
- rase ArgumentError, 'callback must be callable' unless
275
+ raise ArgumentError, 'callback must be callable' unless
274
276
  callback.nil? or callback.respond_to? :call
275
277
 
276
278
  @subject = subject
data/rdf-kv.gemspec CHANGED
@@ -38,7 +38,7 @@ RDF::Changeset.
38
38
 
39
39
  # stuff we use
40
40
  spec.add_runtime_dependency 'rdf', '~> 3' # include my changes
41
- spec.add_runtime_dependency 'uuidtools', '~> 2'
41
+ spec.add_runtime_dependency 'uuidtools', '~> 3'
42
42
 
43
43
  # stuff i wrote
44
44
  spec.add_runtime_dependency 'uuid-ncname', '>= 0.4'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rdf-kv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dorian Taylor
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-19 00:00:00.000000000 Z
11
+ date: 2025-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '2'
89
+ version: '3'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '2'
96
+ version: '3'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: uuid-ncname
99
99
  requirement: !ruby/object:Gem::Requirement
@@ -152,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  requirements: []
155
- rubygems_version: 3.3.15
155
+ rubygems_version: 3.4.20
156
156
  signing_key:
157
157
  specification_version: 4
158
158
  summary: Ruby implementation of the RDF-KV protocol