BSD Ports

devel/rubygem-active_hash 4.1.0 FreeBSD

Include the ability to specify data using hashes, yml files or JSON files

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
MIT
Categories
devel, rubygems
Package size
23.7 KiB, 84.8 KiB installed

Description

ActiveHash is a simple base class that allows you to use a ruby hash as a readonly datasource for an ActiveRecord-like model.

ActiveHash assumes that every hash has an :id key, which is what you would probably store in a database. This allows you to seamlessly upgrade from ActiveHash objects to full ActiveRecord objects without having to change any code in your app, or any foreign keys in your database.

It also allows you to use #has_many and #belongs_to (via belongs_to_active_hash) in your AR objects.

ActiveHash can also be useful to create simple test classes that run without a database - ideal for testing plugins or gems that rely on simple AR behavior, but don't want to deal with databases or migrations for the spec suite.

ActiveHash also ships with:

  • ActiveFile: a base class that you can use to create file data sources
  • ActiveYaml: a base class that will turn YAML into a hash and load the data into an ActiveHash object

In the other systems

SystemPortVersion
FreeBSDdevel/rubygem-active_hash4.1.0
DragonFlydevel/rubygem-active_hash3.3.1

Install

Binary package:

pkg install rubygem-active_hash

From the ports tree:

cd /usr/ports/devel/rubygem-active_hash/ && make install clean

To depend on this port in another port's Makefile:

RUN_DEPENDS=	rubygem-active_hash>0:devel/rubygem-active_hash

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest4.1.04.1.0-3.3.14.1.0
FreeBSD:14:quarterly4.1.04.1.0n/a3.3.14.1.0
FreeBSD:15:latest4.1.04.1.0n/a3.3.13.3.1
FreeBSD:15:quarterly4.1.04.1.0n/an/an/a
FreeBSD:16:latest4.1.04.1.0n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Runtime 1

The full lists below include those, and their dependencies in turn.

Build dependencies 6
Run dependencies 19

Configuration

No options to configure.

USES
gem
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/active_hash-4.1.0.gem27648388c8d14c20e7e38602a47c19f4d958605217dd3d7ce57c7d45e7b65cea3c61b
Master sites 1
  • RG

Commit history 0

No commits in the history this site was built from.