Module: Taupe

Defined in:
lib/taupe.rb,
lib/taupe/core.rb,
lib/taupe/cache.rb,
lib/taupe/model.rb,
lib/taupe/database.rb,
lib/taupe/cache/redis.rb,
lib/taupe/model/table.rb,
lib/taupe/database/mysql.rb,
lib/taupe/model/validate.rb,
lib/taupe/cache/memcached.rb,
lib/taupe/database/sqlite.rb,
lib/taupe/database/postgresql.rb

Overview

File: postgresql.rb Time-stamp: <2014-09-11 16:29:13 pierre> Copyright © 2014 Pierre Lecocq Description: Taupe library postgresql driver class

Defined Under Namespace

Modules: Accessorized Classes: Cache, Database, Model, Validate

Constant Summary collapse

VERSION =

Current version constant in the form major.minor.patch

[0, 6, 3].join('.')

Class Method Summary collapse

Class Method Details

.require_gem(gem_name, description) ⇒ Object

Require a gem

Parameters:

  • gem_name (String)

    the gem name

  • description (String)

    a description of the gem



21
22
23
24
25
# File 'lib/taupe.rb', line 21

def self.require_gem(gem_name, description)
  require gem_name
rescue LoadError
  raise format('To use %s, install the "%s" gem', description, gem_name)
end