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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dir-to-xml.rb +5 -3
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01a4b3aec17ca252dcbb382039fc1d524232d4ed
|
4
|
+
data.tar.gz: 323364e008498af01dae7f5dcca7c89814ecd943
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
metadata.gz.sig
CHANGED
Binary file
|