lib/epub/maker.rb in epub-maker-0.0.8 vs lib/epub/maker.rb in epub-maker-0.0.9
- old
+ new
@@ -2,11 +2,10 @@
require 'pathname'
require 'fileutils'
require 'tempfile'
require 'tmpdir'
require 'time'
-require 'uuid'
require 'archive/zip'
require 'epub'
require 'epub/constants'
require 'epub/book'
require 'epub/parser'
@@ -112,14 +111,14 @@
end
def make_package
package = Publication::Package.new
package.book = self
+ no_package_rootfile = rootfiles.find {|rf| rf.package.nil?}
+ no_package_rootfile.package = package if no_package_rootfile
package.make do |package|
yield package if block_given?
end
- no_package_rootfile = rootfiles.find {|rf| rf.package.nil?}
- no_package_rootfile.package = package if no_package_rootfile
package
end
def save
ocf.save