dataisland 0.1.8 → 0.1.9

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.
Files changed (2) hide show
  1. data/lib/dataisland.rb +6 -1
  2. metadata +1 -1
data/lib/dataisland.rb CHANGED
@@ -164,7 +164,7 @@ class DataIsland
164
164
  end
165
165
 
166
166
  when :a
167
-
167
+
168
168
  classx = e2.attributes[:class]
169
169
 
170
170
  if classx and classx[/{#{field}/] then
@@ -182,6 +182,11 @@ class DataIsland
182
182
  new_href = href.sub(/\{[^\}]+\}/,val)
183
183
  e2.attributes[:href] = new_href
184
184
  end
185
+
186
+ if e2.attributes[:datafld] then
187
+ e2.attributes[:href] = record[field]
188
+ end
189
+
185
190
 
186
191
  when :img
187
192
  e2.attributes[:src] = record[field]
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: dataisland
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.8
5
+ version: 0.1.9
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Robertson