maptp-service 0.0.2 → 0.0.3

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.
@@ -2,11 +2,11 @@
2
2
 
3
3
  == FINALLY, A RUBY CLIENT FOR MAP TP!
4
4
 
5
- Repository: http://github.com/ffwdme/maptp-service
5
+ Repository: http://github.com/fabrik42/maptp-service
6
6
 
7
7
  Gem: http://rubygems.org/gems/maptp-service
8
8
 
9
- Bug Tracker: http://github.com/ffwdme/maptp-service/issues
9
+ Bug Tracker: http://github.com/fabrik42/maptp-service/issues
10
10
 
11
11
  == DESCRIPTION:
12
12
 
@@ -25,7 +25,7 @@ require "maptp-service/parser/geocoding_result"
25
25
 
26
26
  module MapTP
27
27
 
28
- VERSION = '0.0.2'
28
+ VERSION = '0.0.3'
29
29
 
30
30
 
31
31
  def self.set_credentials( map24id, maptp_server )
@@ -27,12 +27,13 @@ module MapTP
27
27
 
28
28
  results = resp[:search_free_response][:map_search_response][:alternatives][:item]
29
29
 
30
- # Return empty array if no results are returned
31
- return { :results => [], :ERROR => "No match found" } unless results
32
30
 
33
31
  output = Hash.new
34
32
 
35
- output[:results] = Array.new
33
+ output[:results] = Array.new
34
+
35
+ # Return empty array if no results are returned
36
+ return output unless results
36
37
 
37
38
  results.each do |result|
38
39
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - "Christian B\xC3\xA4uerlein"
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-23 00:00:00 +02:00
17
+ date: 2010-10-21 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency