dir-to-xml 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/dir-to-xml.rb +1 -2
- metadata +1 -1
data/lib/dir-to-xml.rb
CHANGED
@@ -13,12 +13,11 @@ class DirToXML
|
|
13
13
|
|
14
14
|
def initialize(path= '.')
|
15
15
|
super()
|
16
|
-
old_path = Dir.pwd
|
17
16
|
Dir.chdir path
|
18
17
|
|
19
18
|
a = Dir.glob("*").sort
|
20
|
-
Dir.chdir old_path
|
21
19
|
command = a.include?('dir.xml') ? 'run' : 'new_run'
|
20
|
+
Dir.chdir File.expand_path('~')
|
22
21
|
@doc, @status = self.send command, a
|
23
22
|
end
|
24
23
|
|