Xregistry

Artifact [b913fe45a8]
Login

Artifact b913fe45a8023493304e9bd099709c0c4b8201e6:

Wiki page [Xregistry] by wbp 2018-01-28 23:27:35.
D 2018-01-28T23:27:35.325
L Xregistry
P d15ff1a01cebaa5214e6e19f7b5b76f698b71e79
U wbp
W 1355
<h1>Xregistry</h1>

A cross-platform registry class for Ruby for storing application
configuration parameters.

The application programming interface (API) is based on the FOX registry
class, which is part of the FOX GUI toolkit ([http://www.fox-toolkit.org/]).
This gem defines a class that can be used in the same way as the FOX
registry, but without needing the FOX toolkit.

The original FOX registry uses the Windows registry if running under Windows,
and an .INI type file if running under Unix-type systems.  This class also
uses the Windows registry if running under Windows, but uses an SQLite3
database if running under a Unix-type system.

<h2>Comparison with Wregistry</h2>

I have written another Ruby gem 
<a href="https://chiselapp.com/user/varro/repository/Rubygem-Wregistry/">Wregistry</a>
with similar capabilities to Xregistry.
The main differences between the two are:

<li> Xregistry is in itself a pure Ruby gem, but uses the sqlite3 gem to provide access to the SQLite3 database.</li>

<li> Xregistry uses the Windows registry (via 'win32/registry' if running under Windows.</li>

<li> Wregistry is a C-extension, and does <b>not</b> depend on the sqlite3 gem,
but uses the SQLite3 library directly.</li>

<li> Wregistry <b>always</b> uses the SQLite3 library, whether or not running under Windows.</li>
Z dd2bc418c13d40aeeaef5d35faa3e6a4