Skip to content
A minimalistic ebook library
Branch: master
Clone or download
Pull request Compare This branch is 22 commits ahead of mispy:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
data
lib
spec
.codeclimate.yml
.disabled.yml
.enabled.yml
.gitattributes
.gitignore
.rspec
.rubocop.yml
.travis.yml
Gemfile
Gemfile.lock
LICENSE
README.md
moo_ebooks.gemspec

README.md

Moo ebooks: A minimalistic ebook library

Build Status

Gem Version GitHub Release Date

Maintainability Test Coverage

Inline docs

Description

Moo ebooks is a fork from the unmaintained Twitter ebooks and reduced it to a library.

The original project was a framework to handle ebook accounts on Twitter, where this library concentrates on the language modeling and text creation part.

That means that data gathering needs to be done externally, but it also allows more freedom of what platforms to connect.

If you want features, like nice bots, you have to implement it yourself. Literally all interactions with social media accounts have to be done externally.

Installation

Add gem 'moo_ebooks', '~> 1.0' to you gemfile and then run bundle install

or simply run gem install moo_ebooks

Example usage code

Say, for example, we have a json file full of statuses in 'statuses.json'. These statuses are arranged so that there is an array of strings with the key ':statuses'. The following code will read that file in, create a model based off of it and print out a randomly generated status based off of them.

require 'moo_ebooks'

Model = Ebooks::Model.from_json(File.read('statuses.json'))

Model.update

Versioning

This gem follows Semantic Versioning 2.0.0!

Donations

Patreon KoFi

Social Media

Follow me on Twitter, if you're brave enough.

Twitter Follow

License

MIT

Copyright 2013 ©️ Jaiden Mispy

Copyright 2018 ©️ Maxine Michalski

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request
You can’t perform that action at this time.