<< | Index | >>
Error
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require': no such file to load -- oddb/util/m10l_document (MissingSourceFile) from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:521:in `new_constants_in' from /usr/lib64/ruby/gems/1.8/gems/activesupport-2.3.2/lib/active_support/dependencies.rb:156:in `require'
Note
Solution
Experiment
#require 'oddb/util/m10l_document'
require 'migel/util/m10l_document'
Run
Result
masa@masa ~/ywesee/migel $ bin/migeld /home/masa/ywesee/migel/lib/migel/model_super.rb:98:in `has_many': undefined method `singular' for "subgroups":String (NoMethodError) from /home/masa/ywesee/migel/lib/migel/model/group.rb:9 from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from /home/masa/ywesee/migel/lib/migel/model.rb:6 from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' from bin/migeld:10
Updates
require 'fixes/singular'
#require 'oddb/util/m10l_document'
require 'migel/util/m10l_document'
#!/usr/bin/env ruby # Fix for String#singular -- migel -- 10.10.2011 -- mhatakeyama@ywesee.com # Fix for String#singular -- de.oddb.org -- 20.11.2006 -- hwyss@ywesee.com require 'rubygems' require 'facet/string/singular' class String inflection_rule '', 'e', 'es' end
Run
Result
Note
Commit
Problem
Note
Task
suspend
First
Current state
Compare two top page html files with eyes
Note
Problem
Note
Run (locally)
masa@masa ~/ywesee/ebps $ ruby1.9 -I lib bin/oddb_kindle config="etc/oddb_kindle.yml"
Result
Note
Next
Result
Note
Experiment
def table_of_contents =begin if title = EBPS.config.content_title id = "toc-#@uid" @ids.push [id, title] @builder.h2(title, :id => id) end @builder.p 'class' => 'ebps' do |xml| @subject.chapters.each_with_index do |chapter, idx| unless chapter.partial? xml.a chapter.heading, 'href' => "#chapter-#{idx.next}-#@uid" xml.br end end end =end end
Run
masa@masa ~/ywesee/ebps/data/books $ ruby1.9 -I lib bin/oddb_kindle config="etc/oddb_kindle.yml"
Result
Note
Experiment
def self.to_ncx docs, ids, tmpdir
#NcxFactory.new(docs, ids, tmpdir).to_ncx
end
Result
Note
Note
... Info(prcgen): Parsing files 0004525 Info(prcgen): Resolving hyperlinks Info(prcgen): Building table of content URL: /tmp/d20111010-7588-1dc3h71/toc.ncWarning(index build): string too long (max=255). Truncated.
Warning(index build): string too long (max=255). Truncated.
...
Reference
Note