dir-to-xml 0.2.3 → 0.2.4

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.
Files changed (2) hide show
  1. data/lib/dir-to-xml.rb +1 -2
  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
 
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors: []
7
7