dataisland 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dataisland.rb +5 -3
- metadata +2 -2
data/lib/dataisland.rb
CHANGED
@@ -44,11 +44,11 @@ class DataIsland
|
|
44
44
|
|
45
45
|
case parentName
|
46
46
|
when 'body'
|
47
|
-
return
|
48
|
-
when 'tr'
|
47
|
+
return nil
|
48
|
+
when 'tr', 'li'
|
49
49
|
return parent
|
50
50
|
else
|
51
|
-
|
51
|
+
return node_to_clone(parent)
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
@@ -103,6 +103,8 @@ class DataIsland
|
|
103
103
|
dest_nodes[field].text = record[field]
|
104
104
|
when :a
|
105
105
|
dest_nodes[field].attributes['href'] = record[field]
|
106
|
+
when :img
|
107
|
+
dest_nodes[field].attributes['src'] = record[field]
|
106
108
|
end
|
107
109
|
end
|
108
110
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: dataisland
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.1
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- James Robertson
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2012-03-30 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|