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 +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/filetree_xml.rb +5 -6
- metadata +27 -22
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 180c6367a6552f9b461ce5d0a3a338ab5ae4217b47073b56c8dfbaee3e7dbb2e
|
4
|
+
data.tar.gz: 0f3f4e790b74132952a319364188ed406d9b0c7bb4193b60d9f471dcfb50482b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 545255b58172b194dbe68b6746fab4311041ec5d299a1e36ccc129a542a01bd3afbe99c68b8a976843a1411e99bf81f90970e775407e9b5b56499a5ab437663a
|
7
|
+
data.tar.gz: f9f50c414c71d66b9f81bba66ac7a6c4a22f897fc970da759a43973ac59338a6d8b84a6c2028c75a6f56648c4d5ad7549d85b8a381f056521f3faece90717612
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/filetree_xml.rb
CHANGED
@@ -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]/
|
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/
|
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/
|
36
|
+
a.map {|x| "records/filex[summary/title='%s']" % x }.join('/')
|
38
37
|
else
|
39
|
-
"records/
|
38
|
+
"records/filex[summary/title='%s']" % path
|
40
39
|
end
|
41
40
|
|
42
|
-
@px.xpath xpath + '/records/
|
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.
|
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjEwMTA4MTQ1NTA3WhcN
|
15
|
+
MjIwMTA4MTQ1NTA3WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCk1EU9
|
17
|
+
hpb4u0n1jor7av8smzWE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npl3dypeuj/
|
32
|
+
aD8Zy9RbuN73sDRO26aMoZNi3i9zEuwbQaNg9x4yb0N9hRI3/+En//e3oe9JhY8L
|
33
|
+
zkO0vmRmPrkvSbkwQI/PYOPkgYgsnGi/5KBJV+0nV/FpRbn7hmHvuL31pBiWyDj7
|
34
|
+
njOyu6oyLcSFfdel5ZQx0KmeaWG3CSyjyL95/Muzm+mt3AQEetJV6wjxHYmiHgbz
|
35
|
+
cSDJmNE5EzeVr/tTliz9Vstccw+3J4zmcxg6zawlremQaxR161foD3gtqR4Qsjq0
|
36
|
+
KWqDi0vGLnMFn1FMGilVwoJ6
|
32
37
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
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.
|
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
|