Commit Graph

120 Commits

Author SHA1 Message Date
Thomas von Dein
f860be0f71 1.31: - i'm such a moron ... I forgot to do a make clean
in 1.30, pf. So this is 1.31, which is clean.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@20 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:16:43 +00:00
Thomas von Dein
c9f8ce58b0 i 1.31: - i'm such a moron ... I forgot to do a make clean
in 1.30, pf. So this is 1.31, which is clean.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@19 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:15:53 +00:00
Thomas von Dein
2ae16df3ad 1.30: - fixed typo, which made 1.29 unusable (undefined var %config)
- added code to check if unknown parameters to new()
	   has been supplied.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@18 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:15:02 +00:00
Thomas von Dein
5dabbe586a 1.29:
- added 2 procedural functions ParseConf and SaveConf
	 - added new parameters -AutoTrue and -FlagBits
	 - added save_file() which replaces save(), which was
	   weird implemented. If the user only supplied a hash
           as parameter to save(), then the first key was
	   used as the filename and the rest was used
	   as a config hash (which was then of an uneven size).
	 - save_file() takes now instead of a hash a hash-ref
	   and a filename. And the hashref is optional, since
	   the object already contains a complete hash.
	 - new method save_string() added, which returns the
	   ready generated string instead of writing it to
	   disk. The user can then save it himself.
	 - POD updated.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@17 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:14:41 +00:00
Thomas von Dein
b906f49050 1.28:
- added contributed sub module Config::General::Interpolated
	   by "Wei-Hon Chen" <plasmaball@pchome.com.tw> with
	   help from "Autrijus Tang" <autrijus@autrijus.org>
	   which makes it possible to use variables inside
	   config files.
	 - _read() accepts now c-comments inside c-comments if
	   they are on a single line.
	 - _read() is now more tolerant to here-identifiers
	   (the ends of here-docs), whitespaces right after
	   such an identifier are allowed (i.e. "EOF  ").
	 - _read() does now behave somewhat different with
	   C-comments, they will be the first thing being
	   processed in a config, so the parser really
	   ignores everything inside C-comments. Previously
	   it did not do that, for example here-docs has
	   not been ignored.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@16 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:14:18 +00:00
Thomas von Dein
2c5ee3d876 1.27: - "make test" complained about uninitialized value
in :146, which is now fixed.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@15 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:13:50 +00:00
Thomas von Dein
60c541d1c0 i 1.26: - added filehandle capability to -file.
- added -String parameter to new(), which allows
           one to supply the whole config as a string.
         - added -MergeDuplicateBlocks option, which causes
	   duplicate blocks to be merged.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@14 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:12:40 +00:00
Thomas von Dein
dd1ed568a1 1.25: - include statements are now case insensitive
- include statements may now also being used with
	   indentation(leading and following whitespaces are
	   allowed)
	 - changed the end here-doc regexp from .+? to \S+?
	   so "  <<include..." works as expected (this was a bug, imo)
	 - added new option -IncludeRelative (idea contributed
	   by Valerio_Valdez Paolini <paolini@students.cs.unibo.it>
	   and Anton Luht <luht@ank.ru> :-)
	   This allows to include files from the location of
	   the configfile instead from the working directory.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@13 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:11:48 +00:00
Thomas von Dein
95195c0038 i 1.24: - AllowMultiOptions printed out the value and not the
option itself, if more than one of this particular
           option occured.
         - added -UseApacheInclude feature, contributed by
           Thomas Klausner <domm@zsi.at>
         - fixed bug with multiple options stuff, which did not
           work with blocks or named blocks. Pointed out by
           Thomas Klausner <domm@zsi.at>, who meant it being
           feature request, but in fact it was a bug (IMHO).
	 - Config::General does now contain also it's OO-sister
	   Config::General::Extended, which is from now on
 	   no more available as an extra module, because it
	   lived a shadowy existence.
	 - finally(!) created a Changelog file (this one, yes).


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@12 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:11:25 +00:00
Thomas von Dein
fc54974d01 1.23: - fixed bug, which removed trailing or leading " even
no matching " was there.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@11 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:10:41 +00:00
Thomas von Dein
1ffbf95665 1.22: - added a new option to new(): -LowerCaseNames, which
lowercases all option-names (feature request)


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@10 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:10:12 +00:00
Thomas von Dein
93316ddc2e 1.21: - lines with just one "#" became an option array named
"#" with empty entries, very weird, fixed


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@9 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:09:33 +00:00
Thomas von Dein
7c03404fe9 1.20: - added an if(exists... to new() for checking of the
existence of -AllowMultiOptions.
         - use now "local $_" because it caused weird results
           if a user used $_ with the module.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@8 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:08:54 +00:00
Thomas von Dein
c395e5d596 1.19: - you can escape "#" characters using a backslash: "\#"
which will now no more treated as a comment.
         - comments inside here-documents will now remain in the
           here-doc value.


git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@7 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:08:33 +00:00
Thomas von Dein
016cd6f07a history logs 1.17+1.18 are lost in space :-(
git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@6 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:08:08 +00:00
Thomas von Dein
f1c21f4750 revision 1.16
date: 2000/08/03 16:54:58;  author: jens;  state: Exp;  lines: +4 -1
An jedes File eine Sektion
# Local Variables: ***
# perl-master-file: ../../webmin/index.pl ***
# End: ***

rangehängt, damit ich mit C-c d das debugging von jedem File aus 
einschalten kann
(siehe mein .emacs file)
----------------------------
revision 1.15
date: 2000/08/01 09:12:52;  author: tom;  state: Exp;  lines: +57 -68
added comments to _open() and _parse()
----------------------------
revision 1.14
date: 2000/07/31 18:07:12;  author: tom;  state: Exp;  lines: +44 -19
added <<include ... >> capability
----------------------------
revision 1.13
date: 2000/07/16 18:35:33;  author: tom;  state: Exp;  lines: +135 -10
added here-doc and multi-line feature, updated perlpod
----------------------------
revision 1.12
date: 2000/07/14 14:56:09;  author: tom;  state: Exp;  lines: +2 -2
bug fixed, it did not ignore options inside c-comments with a # comment 
@ the end of line
----------------------------
revision 1.11
date: 2000/07/14 11:26:04;  author: tom;  state: Exp;  lines: +42 -6
added C-Style comments and allow also comments after a statement.
----------------------------
revision 1.10
date: 2000/07/12 14:04:51;  author: tom;  state: Exp;  lines: +2 -1
i woas ned
----------------------------
revision 1.9
date: 2000/07/12 10:59:53;  author: jens;  state: Exp;  lines: +5 -3
hehe :)
----------------------------
revision 1.8
date: 2000/07/12 10:43:20;  author: tom;  state: Exp;  lines: +5 -2
fixed bug in getall(), which doubled %config if called more than onse.
----------------------------
revision 1.7
date: 2000/07/12 09:09:33;  author: tom;  state: Exp;  lines: +22 -24
100% Apache Config complete ;-) it supports now "named blocks"!
----------------------------
revision 1.6
date: 2000/07/11 23:43:03;  author: tom;  state: Exp;  lines: +72 -19
added named block support (<server holland>)
----------------------------
revision 1.5
date: 2000/07/11 20:49:47;  author: tom;  state: Exp;  lines: +2 -2
typo in pod corrected
----------------------------
revision 1.4
date: 2000/07/11 17:07:04;  author: tom;  state: Exp;  lines: +61 -7
a config file can now contain an option more than once and will be 
returned as array
----------------------------
revision 1.3
date: 2000/07/07 11:27:38;  author: cvs;  state: Exp;  lines: +2 -2
folgende Parameterform geht jetzt auch:
parameter=   blabla

vorher musste man
parameter =     blabla
schreiben
----------------------------
revision 1.2
date: 2000/07/04 13:21:12;  author: tom;  state: Exp;  lines: +9 -4
added better failurehandling in case of missing block start/end statements
----------------------------
revision 1.1
date: 2000/07/04 12:52:09;  author: tom;  state: Exp;
implemented module and method getall, works as expected.




git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@5 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-10 16:07:21 +00:00
Thomas von Dein
0eda635652 ..
git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@4 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-01 18:52:31 +00:00
Thomas von Dein
068c852f4f ii
git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@3 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-01 18:51:25 +00:00
Thomas von Dein
0138edc92c x
git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@2 be1acefe-a474-0410-9a34-9b3221f2030f
2009-10-01 18:51:06 +00:00
Matthew T
28e9743382 create layout dirs
git-svn-id: http://dev.catalyst.perl.org/repos/Config-General/trunk@1 be1acefe-a474-0410-9a34-9b3221f2030f
2009-09-28 15:48:18 +00:00