lib/gepub/resource_builder.rb in gepub-0.6.4 vs lib/gepub/resource_builder.rb in gepub-0.6.4.1
- old
+ new
@@ -129,10 +129,10 @@
private
def create_one_file(val)
name = val
- io = val
+ io = val if (String === val && !val.start_with?('http'))
if Hash === val
name = val.first[0]
io = val.first[1]
end
if Array === val