sparql-client 3.1.1 → 3.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/VERSION +1 -1
- data/lib/sparql/client.rb +8 -1
- metadata +9 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 512a63b7dcf77b57309f5c1cd734a4db60e84ba1977df4e3c8fab3529c0b96be
|
4
|
+
data.tar.gz: ea1e7413c3b92668960da2ad9ed632a5511d3ff334702631a29bb6bd3cf523b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 185b11ee8c1597a3ed72a1161d101fccae20dcadb025fa333d0c956930d92c0ff2d98f979c9213cd8ceef73cb287fb7073b338aefa47afb51c075c307172906d
|
7
|
+
data.tar.gz: 68c871d80127d46298bddd60b4bf4df7326d67a00d1d8c522862b870846bb08326a27a44ca5aa15a9a813fd2bb4299ec98d69a3b4a554e2ad8b78f307b5432cf
|
data/README.md
CHANGED
@@ -126,9 +126,9 @@ sparql.delete_data(data)
|
|
126
126
|
|
127
127
|
* [Ruby](https://ruby-lang.org/) (>= 2.4)
|
128
128
|
* [RDF.rb](https://rubygems.org/gems/rdf) (~> 3.1)
|
129
|
-
* [Net::HTTP::Persistent](https://rubygems.org/gems/net-http-persistent) (~>
|
129
|
+
* [Net::HTTP::Persistent](https://rubygems.org/gems/net-http-persistent) (~> 4.0, >= 4.0.1)
|
130
130
|
* Soft dependency on [SPARQL](https://rubygems.org/gems/sparql) (~> 3.1)
|
131
|
-
* Soft dependency on [Nokogiri](https://rubygems.org/gems/nokogiri) (>= 1.
|
131
|
+
* Soft dependency on [Nokogiri](https://rubygems.org/gems/nokogiri) (>= 1.11)
|
132
132
|
|
133
133
|
## Installation
|
134
134
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.
|
1
|
+
3.1.2
|
data/lib/sparql/client.rb
CHANGED
@@ -102,7 +102,7 @@ module SPARQL
|
|
102
102
|
@http = http_klass(@url.scheme)
|
103
103
|
|
104
104
|
# Close the http connection when object is deallocated
|
105
|
-
ObjectSpace.define_finalizer(self,
|
105
|
+
ObjectSpace.define_finalizer(self, self.class.finalize(@http))
|
106
106
|
end
|
107
107
|
|
108
108
|
if block_given?
|
@@ -113,6 +113,13 @@ module SPARQL
|
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
|
+
# Close the http connection when object is deallocated
|
117
|
+
def self.finalize(klass)
|
118
|
+
proc do
|
119
|
+
klass.shutdown if klass.respond_to?(:shutdown)
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
116
123
|
##
|
117
124
|
# Closes a client instance by finishing the connection.
|
118
125
|
# The client is unavailable for any further data operations; an IOError is raised if such an attempt is made. I/O streams are automatically closed when they are claimed by the garbage collector.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sparql-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.1.
|
4
|
+
version: 3.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arto Bendiken
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2021-01-18 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rdf
|
@@ -33,6 +33,9 @@ dependencies:
|
|
33
33
|
- - "~>"
|
34
34
|
- !ruby/object:Gem::Version
|
35
35
|
version: '4.0'
|
36
|
+
- - ">="
|
37
|
+
- !ruby/object:Gem::Version
|
38
|
+
version: 4.0.1
|
36
39
|
type: :runtime
|
37
40
|
prerelease: false
|
38
41
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -40,6 +43,9 @@ dependencies:
|
|
40
43
|
- - "~>"
|
41
44
|
- !ruby/object:Gem::Version
|
42
45
|
version: '4.0'
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 4.0.1
|
43
49
|
- !ruby/object:Gem::Dependency
|
44
50
|
name: rdf-spec
|
45
51
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
169
|
- !ruby/object:Gem::Version
|
164
170
|
version: '0'
|
165
171
|
requirements: []
|
166
|
-
rubygems_version: 3.
|
172
|
+
rubygems_version: 3.2.3
|
167
173
|
signing_key:
|
168
174
|
specification_version: 4
|
169
175
|
summary: SPARQL client for RDF.rb.
|