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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 938213c06d26ff11d4956d91cbf0103f6b483b8b
4
- data.tar.gz: 44cf7fe46405284ff83dad975a0d93ff590efe78
3
+ metadata.gz: a2789c422159cb1fe7b12a72002e5f13bb04a8e1
4
+ data.tar.gz: c83d2ba5ad7d2991b5f16200ae6143becac34831
5
5
  SHA512:
6
- metadata.gz: 6d14d6494cbbed3fc510186c5f16d71ae66c91f3bac3a4aead56038b1647ff53b8900bb0ed371d95cda34088d537a17c84157e3d4b13a791759562be262eee56
7
- data.tar.gz: cb60462ef9b4f7f8362b0c12a7aeead6de3a833d5a80cfd59cf68b4f27eb015669f38693b9af688180cff69bdbd2e35a2171f976bcb014ca53058dd02f9c8df2
6
+ metadata.gz: c581f6631d45d95777c3a86483c5db0e391027e735a9e12d63db8622a09ca2f23d894220d7e4ecb4f71c0e8abb2fa1e212c7560fce6ef67065c17d7ae1ec7537
7
+ data.tar.gz: 3b4adfe4098a20eb501abdf3e8cc6ffd11a53e3e42f76937deb20099b28ce659d0bc878bcf65d65d9df5d9c12ca2a39e82ff88664ff43a1f09167f557d559d5d
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filetree_xml
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
@@ -1,3 +1 @@
1
- YAM���� ���kYI�|~�!hb��xb���l�%.34d*;r-ຑ��^�Ke?��5��'ϑ�u0�;N�B�+$�+*m�
2
- �+
3
- c�
1
+ c7�=���n~�p��X؄G[n�9l�!#;�.���y��6��و �=Ձ��eT �P`v�n���Z9t�غ���l�P��UR��}��m��E�� �U$s�$PO���e���g�9