georss4rb 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/georss4rb.rb +5 -5
  2. data/rakefile.rb +1 -1
  3. metadata +2 -2
data/lib/georss4rb.rb CHANGED
@@ -104,7 +104,7 @@ module GeoRss4rb
104
104
  end
105
105
 
106
106
  def self.from_gml(gml)
107
- pos = gml.elements["//*[local-name()='pos']"]
107
+ pos = gml.elements[".//*[local-name()='pos']"]
108
108
  if pos.nil?
109
109
  nil
110
110
  else
@@ -154,7 +154,7 @@ module GeoRss4rb
154
154
  end
155
155
 
156
156
  def self.from_gml(gml)
157
- pos_list = gml.elements["//*[local-name()='posList']"]
157
+ pos_list = gml.elements[".//*[local-name()='posList']"]
158
158
  if pos_list.nil?
159
159
  nil
160
160
  else
@@ -196,7 +196,7 @@ module GeoRss4rb
196
196
  GeoRss4rb::Polygon.new(rings,options)
197
197
  end
198
198
  def self.from_gml(gml)
199
- pos_list = gml.elements["//*[local-name()='posList']"]
199
+ pos_list = gml.elements[".//*[local-name()='posList']"]
200
200
  if pos_list.nil?
201
201
  nil
202
202
  else
@@ -227,8 +227,8 @@ module GeoRss4rb
227
227
  GeoRss4rb::Box.new(lower_corner,upper_corner,options)
228
228
  end
229
229
  def self.from_gml(gml)
230
- lower_corner = gml.elements["//*[local-name()='lowerCorner']"]
231
- upper_corner = gml.elements["//*[local-name()='upperCorner']"]
230
+ lower_corner = gml.elements[".//*[local-name()='lowerCorner']"]
231
+ upper_corner = gml.elements[".//*[local-name()='upperCorner']"]
232
232
  if lower_corner and upper_corner
233
233
  self.from_text(lower_corner.text + " " + upper_corner.text) #the lazy solution
234
234
  end
data/rakefile.rb CHANGED
@@ -26,7 +26,7 @@ spec = Gem::Specification::new do |s|
26
26
  s.add_dependency('feedtools', '>= 0.2.26') #others should be ok though...
27
27
 
28
28
  s.name = 'georss4rb'
29
- s.version = "0.0.1"
29
+ s.version = "0.0.2"
30
30
  s.summary = "Adds support for all GeoRSS dialects in FeedTools"
31
31
  s.description = "Adds support for all GeoRSS dialects in FeedTools"
32
32
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: georss4rb
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.0.1
7
- date: 2006-11-01 00:00:00 +01:00
6
+ version: 0.0.2
7
+ date: 2006-11-27 00:00:00 +01:00
8
8
  summary: Adds support for all GeoRSS dialects in FeedTools
9
9
  require_paths:
10
10
  - lib