dataisland 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dataisland.rb +5 -2
- metadata +2 -2
data/lib/dataisland.rb
CHANGED
@@ -19,7 +19,7 @@ class DataIsland
|
|
19
19
|
@html_doc = Rexle.new(buffer)
|
20
20
|
|
21
21
|
#exit
|
22
|
-
@html_doc.xpath('//script[@class="dataisland"]').map(&:delete)
|
22
|
+
@html_doc.xpath('//script[@class="dataisland"]').map(&:delete)
|
23
23
|
@html_doc.xpath('//div[@datactl]').map(&:delete)
|
24
24
|
|
25
25
|
@html_doc.root.element('body').attributes.delete :onload
|
@@ -57,6 +57,8 @@ class DataIsland
|
|
57
57
|
@html_doc.xpath(xpath).each do |island|
|
58
58
|
render(records, x.attributes, island.element('//*[@datafld]'));
|
59
59
|
end
|
60
|
+
|
61
|
+
x.delete
|
60
62
|
end
|
61
63
|
end
|
62
64
|
|
@@ -191,7 +193,8 @@ class DataIsland
|
|
191
193
|
when :img
|
192
194
|
e2.attributes[:src] = record[field]
|
193
195
|
end
|
194
|
-
|
196
|
+
|
197
|
+
e2.attributes.delete :datafld
|
195
198
|
end
|
196
199
|
end
|
197
200
|
|
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.10
|
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: 2012-11-
|
13
|
+
date: 2012-11-29 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: dynarex
|