filetree_xml 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/filetree_xml.rb +3 -1
- metadata +1 -1
- metadata.gz.sig +1 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2789c422159cb1fe7b12a72002e5f13bb04a8e1
|
4
|
+
data.tar.gz: c83d2ba5ad7d2991b5f16200ae6143becac34831
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c581f6631d45d95777c3a86483c5db0e391027e735a9e12d63db8622a09ca2f23d894220d7e4ecb4f71c0e8abb2fa1e212c7560fce6ef67065c17d7ae1ec7537
|
7
|
+
data.tar.gz: 3b4adfe4098a20eb501abdf3e8cc6ffd11a53e3e42f76937deb20099b28ce659d0bc878bcf65d65d9df5d9c12ca2a39e82ff88664ff43a1f09167f557d559d5d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/filetree_xml.rb
CHANGED
@@ -28,13 +28,15 @@ class FileTreeXML
|
|
28
28
|
end
|
29
29
|
|
30
30
|
def ls(path='.')
|
31
|
+
|
32
|
+
return @px.xpath './records/file/summary/title/text()' if path == '.'
|
31
33
|
|
32
34
|
a = path.split('/')
|
33
35
|
|
34
36
|
xpath = if a.length > 1 then
|
35
37
|
a.map {|x| "records/file[summary/title='%s']" % x }.join('/')
|
36
38
|
else
|
37
|
-
path
|
39
|
+
"records/file[summary/title='%s']" % path
|
38
40
|
end
|
39
41
|
|
40
42
|
@px.xpath xpath + '/records/file/summary/title/text()'
|
metadata
CHANGED
metadata.gz.sig
CHANGED