dir-to-xml 0.9.0 → 0.9.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ba9da801c35ecbddd2ed5fd3aace787d067fe2b
4
- data.tar.gz: 3afedd7094acbfa9f240bd74d325338439c5d1a9
3
+ metadata.gz: 01a4b3aec17ca252dcbb382039fc1d524232d4ed
4
+ data.tar.gz: 323364e008498af01dae7f5dcca7c89814ecd943
5
5
  SHA512:
6
- metadata.gz: 3992e373581f366d0028663f7b58e78d9cfd45e96be93ab9e37e03862c18555c21cd322646aaf7fb75df095969a2dd088590d9ac635c44b0fe63fc4ec47e0d9e
7
- data.tar.gz: 954b6e2a23e3233efb6701e222598ca956cb84939462b1f003b44f0b481bff23d4799cdece9da003127e645c009acda7c8ff421184c709a4192c0022b6450e6f
6
+ metadata.gz: ecfb0f041170061498a80f5d8d3ade3f328382051682b62e23d7d94eefcb799646e9186b1bab0f4f0d08a9c069eaadb499152b1f8e5ca8bc7fc4f60af7e8f1d3
7
+ data.tar.gz: 00ef273e6116280099c6f08a671bc314b009841980c79fe3451f308e5b35768e3250989619f1bef28d987ed54c0404935a0042ec6c1f9398333ba8d4868dbdfc
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/dir-to-xml.rb CHANGED
@@ -56,15 +56,17 @@ class DirToXML
56
56
  @dx = self.method(command).call a2
57
57
 
58
58
  @a = @dx.to_a
59
- @object = @a
60
59
 
61
60
  if recursive then
62
61
 
63
62
  self.filter_by(type: :directory).to_a.each do |x|
63
+
64
64
  path2 = File.join(path, x[:name])
65
- dtx = DirToXML.new(path2, recursive: true)
65
+ DirToXML.new(path2, recursive: true)
66
66
  end
67
67
  end
68
+
69
+ @object = @a
68
70
 
69
71
  end
70
72
 
@@ -97,7 +99,7 @@ class DirToXML
97
99
  end
98
100
 
99
101
  a = sort_by :mtime
100
-
102
+
101
103
  lm = a[-1]
102
104
 
103
105
  if @recursive and lm[:type] == 'directory' then
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.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file