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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 592b7393da5e5461ec8f1fd5b425f33b8a13db56552e31af5fdd6eee1859b720
4
- data.tar.gz: 6d6d3fb2bb44a445cffe5c399b98426c04b146a7b9f6257efb88a8c4e04cd9dd
3
+ metadata.gz: bf722b9085f88b0a7424bcaac13ce4081aaa500bc5dc47d14340bce047f94d5b
4
+ data.tar.gz: 29281c56272fb78bd3890c979059e611469f67521900b396b6ab682b16f6942e
5
5
  SHA512:
6
- metadata.gz: 0ab101689e22a8eba622ad61074e49c4a1227b523c18616c57090aadfc3e63af79c0a21ed481096112cd581e629a909ba0e18fe5ed87fe5e833420b0d0282ca1
7
- data.tar.gz: 657961e75e63fb6e187aeac3f11b6275247c59b7138f6236e99d141f0120542ebf85e35c117e7936adcf1d2093dfd7d0c30aa9ba473fec53f4daeebe3449abe1
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
@@ -1,3 +1,3 @@
1
1
  module TogoStanza
2
- VERSION = '2.2.1'
2
+ VERSION = '2.2.2'
3
3
  end
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.1
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: 2020-02-12 00:00:00.000000000 Z
11
+ date: 2021-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport