togostanza 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/togostanza/stanza/querying.rb +3 -1
- data/lib/togostanza/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf722b9085f88b0a7424bcaac13ce4081aaa500bc5dc47d14340bce047f94d5b
|
4
|
+
data.tar.gz: 29281c56272fb78bd3890c979059e611469f67521900b396b6ab682b16f6942e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a8be169ab78bf527c6aecfbcf1456071c0813cedcebcdcd971b512300e887d3bd7589f23f0d14d6b42375a6207d0404c7a26f4f57f212044f0562bee9dae4bf0
|
7
|
+
data.tar.gz: 4f935735930e994f4c8ecda4e8052d23b3c7e963658726d70c457b7475e06187f952e08f11a724fd6eb95524f191075ba2baf1d3c86eab7a42cd60cb9d75c178
|
@@ -17,11 +17,13 @@ module TogoStanza::Stanza
|
|
17
17
|
|
18
18
|
client = SPARQL::Client.new(MAPPINGS[endpoint] || endpoint, method: 'get')
|
19
19
|
|
20
|
-
client.query(text_or_filename, **{content_type: 'application/sparql-results+json'}.merge(options)).map {|binding|
|
20
|
+
result = client.query(text_or_filename, **{content_type: 'application/sparql-results+json'}.merge(options)).map {|binding|
|
21
21
|
binding.each_with_object({}) {|(name, term), hash|
|
22
22
|
hash[name] = term.to_s
|
23
23
|
}
|
24
24
|
}
|
25
|
+
client.close
|
26
|
+
result
|
25
27
|
end
|
26
28
|
end
|
27
29
|
end
|
data/lib/togostanza/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: togostanza
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Keita Urashima
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|