dir-to-xml 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/dir-to-xml.rb +3 -1
  2. 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
- Dir.chdir File.expand_path('~')
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dir-to-xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors: []
7
7