understand /home/ward in config
This commit is contained in:
parent
398a661dd9
commit
d2fbc70269
3 changed files with 8 additions and 4 deletions
|
|
@ -1,6 +1,10 @@
|
||||||
# $Dwarf: CHANGELOG,v 1.25 2003/06/16 10:56:11 ward Exp $
|
# $Dwarf: CHANGELOG,v 1.26 2003/06/24 19:04:26 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
|
from 0.2.2 to 0.2.3
|
||||||
|
- notify when cachedir doesn't exist
|
||||||
|
- expand ${HOME} in config to your homedir
|
||||||
|
|
||||||
from 0.2.1 to 0.2.2
|
from 0.2.1 to 0.2.2
|
||||||
- improve output layout
|
- improve output layout
|
||||||
- show running time
|
- show running time
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
# $Dwarf: TODO,v 1.20 2003/06/24 19:04:26 ward Exp $
|
# $Dwarf: TODO,v 1.21 2003/06/28 19:29:54 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
[ ] check for multiple servers (ip adresses) for each name and pick
|
[ ] check for multiple servers (ip adresses) for each name and pick
|
||||||
|
|
@ -22,4 +22,3 @@
|
||||||
[ ] update documentation
|
[ ] update documentation
|
||||||
[ ] start useing file locking (needed for safe threading)
|
[ ] start useing file locking (needed for safe threading)
|
||||||
[ ] implement include statement in config file
|
[ ] implement include statement in config file
|
||||||
[ ] ${HOME} ofzo goed gaan vinden in config
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/usr/local/bin/ruby -w
|
#!/usr/local/bin/ruby -w
|
||||||
|
|
||||||
# $Dwarf: ripnews.rb,v 1.72 2003/06/24 19:03:42 ward Exp $
|
# $Dwarf: ripnews.rb,v 1.73 2003/06/24 19:35:56 ward Exp $
|
||||||
# $Source$
|
# $Source$
|
||||||
|
|
||||||
require 'date'
|
require 'date'
|
||||||
|
|
@ -134,6 +134,7 @@ def parse_config(default = {})
|
||||||
x.sub!(/^\s*/, "")
|
x.sub!(/^\s*/, "")
|
||||||
x.sub!(/\#.*$/, "")
|
x.sub!(/\#.*$/, "")
|
||||||
x.sub!(/\s*$/, "")
|
x.sub!(/\s*$/, "")
|
||||||
|
x.gsub!(/\$\{HOME\}/, "#{ENV['HOME']}")
|
||||||
x.chomp
|
x.chomp
|
||||||
}
|
}
|
||||||
while i < lines.length
|
while i < lines.length
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue