Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Define guide #24

Merged
merged 1 commit into from

2 participants

@larryfox

build_guide was written, but the guide variable wasn't being set up.
This fixes that.

@jugyo jugyo merged commit e120406 into jugyo:master
@jugyo
Owner

thx!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 20, 2013
  1. @larryfox

    Define guide

    larryfox authored
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 4 deletions.
  1. +6 −4 lib/eeepub/maker.rb
View
10 lib/eeepub/maker.rb
@@ -7,7 +7,7 @@ module EeePub
# Note on unique identifiers:
#
# At least one 'identifier' must be the unique identifer represented by the name
- # given to 'uid' and set via the hash option :id => {name}. The default name for
+ # given to 'uid' and set via the hash option :id => {name}. The default name for
# uid is 'BookId' and doesn't need to be specified explicitly. If no identifier is
# marked as the unique identifier, the first one give will be chosen.
#
@@ -55,7 +55,8 @@ def #{name}(value)
:nav,
:cover,
:ncx_file,
- :opf_file
+ :opf_file,
+ :guide
].each do |name|
define_method(name) do |arg|
instance_variable_set("@#{name}", arg)
@@ -84,7 +85,7 @@ def save(filename)
create_epub.save(filename)
end
- # instead of saving to file, output the file contents.
+ # instead of saving to file, output the file contents.
# important for serving on-the-fly doc creation from
# web interface where we don't want to allow file system
# writes (Heroku, et al.)
@@ -142,7 +143,8 @@ def create_epub
File.join(dir_path, File.basename(file_path))
end
},
- :ncx => @ncx_file
+ :ncx => @ncx_file,
+ :guide => @guide
).save(File.join(dir, @opf_file))
OCF.new(
Something went wrong with that request. Please try again.