projects
/
quanlib.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Refactor page generations, and add hard-coded series naming.
[quanlib.git]
/
walkdir.rb
diff --git
a/walkdir.rb
b/walkdir.rb
index ce1954ca7a11d27417afecf739af99fdbd98c83e..1dadd2e35b95974f81ad43366698c46b93dac7b9 100644
(file)
--- a/
walkdir.rb
+++ b/
walkdir.rb
@@
-32,10
+32,10
@@
class WalkDir
result = []
for file in @files.sort
if Book.canHandle?(file)
- book = Book.new()
+ book = Book.new(
@store
)
book.loadFromFile(file)
- @store.store_book(book)
- result.push(
book
)
+
id =
@store.store_book(book)
+ result.push(
id
)
end
end
return result