Sha256: a5fa16d6eccd6c9a77cecee64c5b17390a50234d516cacd923f2b36e982d72b6

Contents?: true

Size: 605 Bytes

Versions: 20

Compression:

Stored size: 605 Bytes

Contents

# -*- coding: utf-8 -*-
require 'gepub'

gbook = GEPUB::Book.new do |book|
  book.identifier = 'http://example.jp/bookid_in_url'
  book.title = 'GEPUB Sample Book'
  book.creator = 'KOJIMA Satoshi'
  book.contributor = '電書部'
  book.add_contributor 'アサガヤデンショ'
  book.add_contributor '電子雑誌トルタル'
  book.language = 'ja'

  book.ordered do
    item = book.add_item('name.xhtml')
    item.add_content StringIO.new('<html xmlns="http://www.w3.org/1999/xhtml"><head><title>c1</title></head><body><p>the first page</p></body></html>')end
end

gbook.generate_epub("test.epub")

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
gepub-1.0.16 examples/new_book_example.rb
gepub-1.0.15 examples/new_book_example.rb
gepub-1.0.14 examples/new_book_example.rb
gepub-1.0.13 examples/new_book_example.rb
gepub-1.0.12 examples/new_book_example.rb
gepub-1.0.11 examples/new_book_example.rb
gepub-1.0.10 examples/new_book_example.rb
gepub-1.0.9 examples/new_book_example.rb
gepub-1.0.8 examples/new_book_example.rb
gepub-1.0.7 examples/new_book_example.rb
gepub-1.0.6 examples/new_book_example.rb
gepub-1.0.5 examples/new_book_example.rb
gepub-1.0.4 examples/new_book_example.rb
gepub-1.0.3 examples/new_book_example.rb
gepub-1.0.2 examples/new_book_example.rb
gepub-1.0.1 examples/new_book_example.rb
gepub-1.0.0 examples/new_book_example.rb
gepub-1.0.0rc1 examples/new_book_example.rb
gepub-1.0.0beta1 examples/new_book_example.rb
gepub-0.7.1 examples/new_book_example.rb