lib/review/book/base.rb in review-5.9.0 vs lib/review/book/base.rb in review-5.10.0

- old
+ new

@@ -8,19 +8,21 @@ # For details of the GNU LGPL, see the file "COPYING". # require 'review/configure' require 'review/catalog' require 'review/book/bib' +require 'review/book/cache' module ReVIEW module Book class Base attr_accessor :config attr_writer :parts attr_accessor :catalog attr_reader :basedir attr_accessor :bibpaper_index + attr_reader :cache def self.load(basedir = '.', config: nil) new(basedir, config: config) end @@ -37,9 +39,11 @@ parse_catalog_file(catalog_path) end @warn_old_files = {} # XXX for checking CHAPS, PREDEF, POSTDEF @basedir_seen = {} + + @cache = ReVIEW::Book::Cache.new update_rubyenv end def update_rubyenv if File.file?(File.join(@basedir, 'review-ext.rb'))