eaal 0.1.2 → 0.1.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.
data/History.txt CHANGED
@@ -1,3 +1,8 @@
1
+ == 0.1.3 2009-04-01
2
+
3
+ * 1 fix:
4
+ * fixing problem with hpricot 0.7
5
+
1
6
  == 0.1.2 2009-01-26
2
7
 
3
8
  * 1 workarround:
data/lib/eaal/eaal.rb CHANGED
@@ -28,7 +28,7 @@ module EAAL
28
28
 
29
29
  mattr_reader :version_string, :version
30
30
 
31
- @@version = "0.1.2"
31
+ @@version = "0.1.3"
32
32
  @@version_string = "EAAL" + EAAL.version # the version string, used as client name in http requests
33
33
 
34
34
  mattr_accessor :api_base, :additional_request_parameters, :cache
@@ -58,7 +58,7 @@ module EAAL
58
58
  re = EAAL::Rowset.new(prefix, element)
59
59
  else
60
60
  key = element.name
61
- if element.containers.length > 0
61
+ if element.children && element.containers.length > 0
62
62
  container = ResultContainer.new
63
63
  element.containers.each { |celement|
64
64
  cel = EAAL::Result::ResultElement.parse_element(prefix, celement)
@@ -17,12 +17,12 @@ module EAAL
17
17
  self.columns.each { |colname|
18
18
  row.send(colname +"=", xml[colname]) # row content ignored so far (needs to be added!!!)
19
19
  }
20
- if xml.containers.length > 0
20
+ if xml.children && xml.containers.length > 0
21
21
  xml.containers.each { |child|
22
22
  el = EAAL::Result::ResultElement.parse_element(self.rowclass.name, child)
23
23
  row.add_element(el.name, el)
24
24
  }
25
- end
25
+ end
26
26
  row
27
27
  end
28
28
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eaal
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Petermann
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-01-26 00:00:00 +01:00
12
+ date: 2009-04-01 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -40,7 +40,7 @@ dependencies:
40
40
  requirements:
41
41
  - - ">="
42
42
  - !ruby/object:Gem::Version
43
- version: 1.2.3
43
+ version: 1.3.0
44
44
  version:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: hoe