-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
36 changed files
with
1,809 additions
and
773 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
admin_email: root@localhost | ||
listen_ip: 127.0.0.1 | ||
listen_port: 87345 | ||
file_type: yml | ||
|
||
group1: | ||
user_name: johnny | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.