Sha256: d8714307b21853a9db003efbac9ec2fbf98bb45f0e978b60220f15d7640fed17

Contents?: true

Size: 1.19 KB

Versions: 4

Compression:

Stored size: 1.19 KB

Contents

= {project-name}
Marat Radchenko <marat@slonopotamus.org>
:project-name: FB2rb
:project-handle: fb2rb
:slug: slonopotamus/{project-handle}
:uri-project: https://github.com/{slug}
:uri-ci: {uri-project}/actions?query=branch%3Amaster
:uri-gem: https://rubygems.org/gems/{project-handle}

image:https://img.shields.io/gem/v/{project-handle}.svg[Latest Release,link={uri-gem}]
image:{uri-project}/workflows/CI/badge.svg?branch=master[Build Status,link={uri-ci}]

{project-handle} is a http://gribuser.ru/xml/fictionbook/index.html.en[Fiction Book 2] parser/generator library written in Ruby.

== Installation

Add this line to your application's Gemfile:

[source,ruby]
----
gem 'fb2rb'
----

And then execute:

[source,shell script]
----
$ bundle install
----

Or install it yourself as:

[source,shell script]
----
$ gem install fb2rb
----

== Usage

[source,ruby]
----
require 'fb2rb'

book = FB2rb::Book.new
book.description.title_info.book_title = 'Book title'

body = FB2rb::Body.new(nil, '<p>Book text</p>')
book.bodies << body

book.write('/path/to/book.fb2.zip')
----

== Development

After checking out the repo, run `bundle install` to install dependencies.
Then, run `bundle exec rake spec` to run the tests.

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fb2rb-0.2.1 README.adoc
fb2rb-0.2.0 README.adoc
fb2rb-0.1.1 README.adoc
fb2rb-0.1.0 README.adoc