ppe-dbpediafinder 0.0.1 → 0.0.2

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.
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "ppe-dbpediafinder"
3
- s.version = "0.0.1"
4
- s.date = "2009-11-19"
3
+ s.version = "0.0.2"
4
+ s.date = "2010-03-30"
5
5
  s.summary = "DBpedia finder"
6
6
  s.email = "yves@dbtune.org"
7
7
  s.homepage = "http://github.com/moustaki/dbpediafinder"
@@ -50,7 +50,11 @@ module DbpediaFinder
50
50
  h.start do |h|
51
51
  res = h.get(url.path + "?" + url.query)
52
52
  json = JSON.parse(res.body)
53
- results = json["responseData"]["results"].map { |result| result["url"] }
53
+ begin
54
+ results = json["responseData"]["results"].map { |result| result["url"] }
55
+ rescue
56
+ return ""
57
+ end
54
58
  return results
55
59
  end
56
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ppe-dbpediafinder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yves Raimond
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-19 00:00:00 +00:00
12
+ date: 2010-03-30 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15