Gembase - YAML DB Manager

Telegram Gem Gembase Version GitHub license

Gembase is a YAML database manager gem for Ruby. Very powerful, simple and effective.

Dependencies

  • Ruby >= 2.0
  • figlet

Runtime dependencies

  • colorize (0.8.x)
  • yaml_vault (1.1.x)

Windows OS additional dependencies

  • An installed build system for native extensions (on Windows, make sure you download the "Ruby+Devkit" version of RubyInstaller)

Note: RubyInstaller for Ruby versions 2.4+ will install the DevKit as the last step of the installation.

Installation

Bundler

That's the most recommended option to install the dependencies to your project. You can add Gembase to your Gemfile by using this.

gem 'gembase'

And then install via bundle install.

GPM (Gem Package Manager)

As an alternative, you can use the gem package manager but it's not the most recommended option.

gem install gembase

Windows OS

gem install gembase --platform=ruby

Usage Example

app.rb

# Let's request the gembase gem
require 'gembase'

# Gembase.settings(db, protect_db, path)
Gembase.settings('users', true, 'root')

# Gembase.create_db(db)
Gembase.create_db('users')

# Gembase.create_object(db, key, value, category=nil, subcategory=nil)
Gembase.create_object('users', 'developer', 'bloodbath')

users.rudb

---
developer: bloodbath

Changelog

  • 1.0.1 - 1.0.6
    • Bug fixes
    • Update files
  • 1.0.0
    • Added settings method
    • Added working_db method
    • Added encrypt_db method
    • Added decrypt_db method
    • Added rename_db method
    • Added delete_db method
    • Added restart_db method
    • Added Errors Class
    • Added Services Class

Support

You can get support for Gembase on the following platforms:

Telegram

You can join here for support: https://t.me/joinchat/KtW5PhYuY

Discord

You can join here for support: https://discord.gg/V3n6JZF

Contribution

Bug reports and pull requests are welcome on GitHub at Gembase repo

License

The gem is available as open source under the terms of the MIT License.