dir-to-xml 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dir-to-xml.rb +3 -1
- metadata +1 -1
data/lib/dir-to-xml.rb
CHANGED
|
@@ -13,12 +13,14 @@ class DirToXML
|
|
|
13
13
|
|
|
14
14
|
def initialize(path= '.')
|
|
15
15
|
super()
|
|
16
|
+
old_path = Dir.pwd
|
|
16
17
|
Dir.chdir path
|
|
17
18
|
|
|
18
19
|
a = Dir.glob("*").sort
|
|
19
20
|
command = a.include?('dir.xml') ? 'run' : 'new_run'
|
|
20
|
-
|
|
21
|
+
|
|
21
22
|
@doc, @status = self.send command, a
|
|
23
|
+
Dir.chdir old_path #File.expand_path('~')
|
|
22
24
|
end
|
|
23
25
|
|
|
24
26
|
def to_xml
|