Registry / utility / transaction-simple

transaction-simple

JSON →
library1.4.0rbrubygemsunverified

Generic in-memory transaction support for Ruby objects with rollback and commit.

gem install transaction-simple
INSTALL
IMPORT
SIG · TRANSACTION-SIMPLE
T
transaction-simple
utilityrubyv1.4.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Transaction::Simple
require 'transaction-simple'

Use transactions to safely modify an object

require 'transaction-simple' obj = 'hello' Transaction::Simple.start(obj) do |txn| txn << ' world' puts txn # => 'hello world' txn.abort! end puts obj # => 'hello'
Debug
Known issues
gotchaUses Marshal for state snapshots; objects must be Marshal-able.
fix
Ensure objects do not contain bindings, procs, IO, or singletons.
affects: >= 1.0.0
Upgrade
Version history
1.4.0latest on RubyGems
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
transaction-simple — gem install transaction-simple · libregistry