Permalink
Browse files

Added support for git-like config files with namespaced groups, which…

… implicitly squeezes a third level out of key/value config files. Removed redudant validate method from PropertiesFileParser. Moved PropertiesFileParser regexps to constants. Improved rdoc in some files.
  • Loading branch information...
1 parent b4b1c86 commit f5ba465e9f693d272decc884d08f63b1653f1bd0 @rahmal committed Feb 12, 2010
View
@@ -7,6 +7,9 @@
* Fixed unit test, rconfig_test.rb.
* Fixed minor typos, comments, and bugs.
* Refactored Hash#weave signature; changed dont_clobber=true, to clobber=false (reads more intuitively).
+* Added support for git-like config files, giving key/value properties files potentially three levels.
+* Removed redundant validate method from PropertiesFileParser.
+* Moved PropertiesFileParser regexps to constants.
0.3.2
=====
View
@@ -0,0 +1,41 @@
+0.3.3
+=====
+* Extend object to add short-hand access to config.
+* Moved constants, and class variables to separate modules to decrease core class size.
+* Fixed a syntax error in when clause of config_hash.rb for ruby 1.9.1 - From dvyjones/rconfig (github).
+* Fixed raise on allow_reload method.
+* Fixed unit test, rconfig_test.rb.
+* Fixed minor typos, comments, and bugs.
+* Refactored Hash#weave signature; changed dont_clobber=true, to clobber=false (reads more intuitively).
+* Added support for git-like config files, giving key/value properties files potentially three levels.
+* Removed redundant validate method from PropertiesFileParser.
+
+0.3.2
+=====
+* Fixed bug in 0.3.1 causing stackrace
+
+0.3.1 (bug - DO NOT USE)
+=====
+* Added rake scripts
+* Finished gemspec
+* Created rdocs
+* Built gem file
+
+0.3
+=====
+* Re-factored rconfig core.
+* Added new helper method to init rconfig.
+* Re-factored core_ext/hash.
+* Added custom exceptions.
+* Added global instance $config, for convenience.
+* Updated comments.
+
+0.2
+=====
+* Added support for setting config path(s) programmtically.
+* Added support for using multiple file types at once.
+* Cleaned up STDERR statements.
+
+0.1
+=====
+* First public release
View
@@ -8,6 +8,7 @@ The complete solution for Ruby Configuration Management. RConfig is a Ruby libra
* Simple, easy to install and use.
* Supports yaml, xml, and properties files.
* Yaml and xml files support infinite level of configuration grouping.
+* Properties files support git config-like configuration grouping.
* Intuitive dot-notation 'key chaining' argument access.
* Simple well-known hash/array based argument access.
* Implements multilevel caching to reduce disk access.
View
@@ -1,11 +1,13 @@
admin_email = root@localhost
listen_ip = 127.0.0.1
listen_port = 87345
+file_type: conf
+only_conf: true
[group1]
user_name = johnny
group_name = daemons
[group2]
user_name = rita
-group_name = daemons
+group_name = daemons
View
@@ -1,6 +1,7 @@
admin_email: root@localhost
listen_ip: 127.0.0.1
listen_port: 87345
+file_type: yml
group1:
user_name: johnny
@@ -0,0 +1,111 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: ClassVariables</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">ClassVariables</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/lib/rconfig/class_variables_rb.html">
+ lib/rconfig/class_variables.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+ <div id="description">
+ <p>
+These are all the variables used to store RConfigs state.
+</p>
+
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
View
5 doc/classes/ConfigError.html 100755 → 100644
@@ -80,7 +80,10 @@
<div id="description">
<p>
-General error in config initialization or operation.
+Copyright (c) 2009 Rahmal Conda &lt;rahmal@gmail.com&gt;
+</p>
+<p>
+<a href="RConfig.html">RConfig</a> Exceptions
</p>
</div>
Oops, something went wrong.

0 comments on commit f5ba465

Please sign in to comment.