travlrmap 0.0.16 → 0.0.17

Sign up to get free protection for your applications and to get access to all the features.
@@ -129,7 +129,11 @@ module Travlrmap
129
129
  point = {}
130
130
 
131
131
  ["title", "comment", "country", "date", "href", "linktext", "linkimg", "lon", "lat"].each do |i|
132
- point[i.intern] = data[i]
132
+ if data[i].is_a?(String)
133
+ point[i.intern] = data[i] unless data[i].empty?
134
+ else
135
+ point[i.intern] = data[i]
136
+ end
133
137
  end
134
138
 
135
139
  point[:type] = data["type"].intern
@@ -1,3 +1,3 @@
1
1
  module Travlmap
2
- VERSION = "0.0.16"
2
+ VERSION = "0.0.17"
3
3
  end