README in dbi-dbrc-1.1.9 vs README in dbi-dbrc-1.2.0

- old
+ new

@@ -4,11 +4,11 @@ be used as a general password storage mechanism for other types of connections, e.g. ssh, ftp, etc. == Requirements * sys-admin - * win32-file (MS Windows only) + * win32-file-attributes (MS Windows only) * win32-dir (MS Windows only) * win32-process (MS Windows only) == Installation gem install dbi-dbrc @@ -56,18 +56,18 @@ decrypted. The format for XML (using the example above) is as follows: <dbrc> - <database name="mydb"> - <user>dan</user> - <password>mypass</password> - <driver>oracle</driver> - <interval>30</interval> - <timeout>10</timeout> - <maximum_reconnects>2</maximum_reconnects> - </database> + <database name="mydb"> + <user>dan</user> + <password>mypass</password> + <driver>oracle</driver> + <interval>30</interval> + <timeout>10</timeout> + <maximum_reconnects>2</maximum_reconnects> + </database> </dbrc> The format for YAML is as follows: - mydb: @@ -187,22 +187,22 @@ db = DBI::DBRC.new("somedb") n = db.max_reconn begin - Timeout.timeout(db.timeout){ - DBI.connect(db.dsn, db.user, db.passwd) - } + Timeout.timeout(db.timeout){ + DBI.connect(db.dsn, db.user, db.passwd) + } rescue DBI::Error - n -= 1 - if n > 0 - sleep db.interval - retry - end - raise + n -= 1 + if n > 0 + sleep db.interval + retry + end + raise rescue TimeoutError - # handle timeout error + # handle timeout error end == Notes for MS Windows Users The 'home' directory for Win32 users is determined by ENV['USERPROFILE']. If that is not set, ENV['HOME'] is used. If that is not set, then @@ -247,10 +247,10 @@ == Known Bugs I'm not positive about the dsn strings for databases other than Oracle. If it's not correct, please let me know. == Copyright - (C) Copyright 2002-2013, Daniel J. Berger, all rights reserved. + (C) Copyright 2002-2014, Daniel J. Berger, all rights reserved. = Warranty This package is provided "as is" and without any express or implied warranties, including, without limitation, the implied warranties of merchantability and fitness for a particular purpose