BSD Ports

devel/rubygem-pstore 0.2.1 MidnightBSD

Transactional File Storage for Ruby Objects

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
License
bsd2, ruby
Categories
devel, rubygems

Description

PStore implements a file based persistence mechanism based on a Hash. User code can store hierarchies of Ruby objects (values) into the data store file by name (keys). An object hierarchy may be just a single object. User code may later read values back from the data store or even update data, as needed.

The transactional behavior ensures that any changes succeed or fail together. This can be used to ensure that the data store is not left in a transitory state, where some values were updated but others were not.

Behind the scenes, Ruby objects are stored to the data store file with Marshal. That carries the usual limitations. Proc objects cannot be marshalled, for example.

In the other systems

SystemPortVersion
MidnightBSDdevel/rubygem-pstore0.2.1
FreeBSDdevel/rubygem-pstore0.2.1
DragonFlydevel/rubygem-pstore0.2.0
HardenedBSDdevel/rubygem-pstore0.2.1
GhostBSDdevel/rubygem-pstore0.2.1

Install

Binary package:

mport install pstore

From mports:

cd /usr/mports/devel/rubygem-pstore && make install clean

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

RUN_DEPENDS=	pstore>0:devel/rubygem-pstore

Dependencies

Required by 1

Configuration

No options to configure.

USES
gem
Service scripts
none

Files

distinfo 1
FileSizeSHA256
rubygem/pstore-0.2.1.gem1536003904d0f2c66579e96d1e6704cdabc0c88df7ea8ed8782d9f3569f6f6c702c1a
Master sites 1
  • RG