filetree_xml 0.1.3 → 0.1.4

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
- SHA1:
3
- metadata.gz: a2789c422159cb1fe7b12a72002e5f13bb04a8e1
4
- data.tar.gz: c83d2ba5ad7d2991b5f16200ae6143becac34831
2
+ SHA256:
3
+ metadata.gz: 180c6367a6552f9b461ce5d0a3a338ab5ae4217b47073b56c8dfbaee3e7dbb2e
4
+ data.tar.gz: 0f3f4e790b74132952a319364188ed406d9b0c7bb4193b60d9f471dcfb50482b
5
5
  SHA512:
6
- metadata.gz: c581f6631d45d95777c3a86483c5db0e391027e735a9e12d63db8622a09ca2f23d894220d7e4ecb4f71c0e8abb2fa1e212c7560fce6ef67065c17d7ae1ec7537
7
- data.tar.gz: 3b4adfe4098a20eb501abdf3e8cc6ffd11a53e3e42f76937deb20099b28ce659d0bc878bcf65d65d9df5d9c12ca2a39e82ff88664ff43a1f09167f557d559d5d
6
+ metadata.gz: 545255b58172b194dbe68b6746fab4311041ec5d299a1e36ccc129a542a01bd3afbe99c68b8a976843a1411e99bf81f90970e775407e9b5b56499a5ab437663a
7
+ data.tar.gz: f9f50c414c71d66b9f81bba66ac7a6c4a22f897fc970da759a43973ac59338a6d8b84a6c2028c75a6f56648c4d5ad7549d85b8a381f056521f3faece90717612
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -1,6 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
-
4
3
  # file: filetree_xml.rb
5
4
 
6
5
 
@@ -21,7 +20,7 @@ class FileTreeXML
21
20
  @px = Polyrex.new x
22
21
  else
23
22
  puts 'importing schemaless raw document' if debug
24
- @px = Polyrex.new schema: 'files[title,tags]/file[title]'
23
+ @px = Polyrex.new schema: 'files[title,tags]/filex[title]'
25
24
  @px.import x
26
25
  end
27
26
 
@@ -29,17 +28,17 @@ class FileTreeXML
29
28
 
30
29
  def ls(path='.')
31
30
 
32
- return @px.xpath './records/file/summary/title/text()' if path == '.'
31
+ return @px.xpath './records/filex/summary/title/text()' if path == '.'
33
32
 
34
33
  a = path.split('/')
35
34
 
36
35
  xpath = if a.length > 1 then
37
- a.map {|x| "records/file[summary/title='%s']" % x }.join('/')
36
+ a.map {|x| "records/filex[summary/title='%s']" % x }.join('/')
38
37
  else
39
- "records/file[summary/title='%s']" % path
38
+ "records/filex[summary/title='%s']" % path
40
39
  end
41
40
 
42
- @px.xpath xpath + '/records/file/summary/title/text()'
41
+ @px.xpath xpath + '/records/filex/summary/title/text()'
43
42
  end
44
43
 
45
44
  end
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.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -10,27 +10,32 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
14
- YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwMzE3MTMxMTAxWhcN
15
- MTkwMzE3MTMxMTAxWjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
16
- cnRzb24vREM9ZXUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCy/RKl
17
- UMOBSm6cwPvvvDxUMtdJfvkiUsWlavSoN1RF2PuFpM2DBcS1zLnb/wlAlScm6+qy
18
- hZh166VsH7npyfQsxYtw9X7veaGrU6NTC7btUv6u/4wIAtdG3J/uJPuPIGhvZMCz
19
- gMsAOFe9q3PzfZxT12qeJDIYmugQxkhFdieJ1kQJNbldHUGZ7kYbhEjEtl+giEMF
20
- JYJGN6Q0jgF1ninjGVqUZAZiWFZgi486zRU8q/dC+kht1siI4F7iz/VEijTfWdes
21
- ZbQq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HvuL31pBiWyDj7
34
+ njOyu6oyLcSFfdel5ZQx0KmeaWG3CSyjyL95/Muzm+mt3AQEetJV6wjxHYmiHgbz
35
+ cSDJmNE5EzeVr/tTliz9Vstccw+3J4zmcxg6zawlremQaxR161foD3gtqR4Qsjq0
36
+ KWqDi0vGLnMFn1FMGilVwoJ6
32
37
  -----END CERTIFICATE-----
33
- date: 2018-03-17 00:00:00.000000000 Z
38
+ date: 2021-01-08 00:00:00.000000000 Z
34
39
  dependencies:
35
40
  - !ruby/object:Gem::Dependency
36
41
  name: polyrex
@@ -79,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
84
  version: '0'
80
85
  requirements: []
81
86
  rubyforge_project:
82
- rubygems_version: 2.6.13
87
+ rubygems_version: 2.7.10
83
88
  signing_key:
84
89
  specification_version: 4
85
90
  summary: Represents a file tree using a Polyrex document
metadata.gz.sig CHANGED
Binary file