filetree_xml 0.1.1 → 0.1.2
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 +8 -3
- metadata +28 -29
- 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: 938213c06d26ff11d4956d91cbf0103f6b483b8b
|
4
|
+
data.tar.gz: 44cf7fe46405284ff83dad975a0d93ff590efe78
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d14d6494cbbed3fc510186c5f16d71ae66c91f3bac3a4aead56038b1647ff53b8900bb0ed371d95cda34088d537a17c84157e3d4b13a791759562be262eee56
|
7
|
+
data.tar.gz: cb60462ef9b4f7f8362b0c12a7aeead6de3a833d5a80cfd59cf68b4f27eb015669f38693b9af688180cff69bdbd2e35a2171f976bcb014ca53058dd02f9c8df2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/filetree_xml.rb
CHANGED
@@ -9,15 +9,20 @@ require 'polyrex'
|
|
9
9
|
class FileTreeXML
|
10
10
|
|
11
11
|
|
12
|
-
def initialize(x)
|
12
|
+
def initialize(x, debug: false)
|
13
13
|
|
14
|
+
@debug = debug
|
15
|
+
|
14
16
|
case x.strip
|
15
17
|
when /^<\?polyrex/
|
16
18
|
@px = Polyrex.new
|
17
19
|
@px.import x
|
18
|
-
|
20
|
+
when /</
|
19
21
|
@px = Polyrex.new x
|
20
|
-
|
22
|
+
else
|
23
|
+
puts 'importing schemaless raw document' if debug
|
24
|
+
@px = Polyrex.new schema: 'files[title,tags]/file[title]'
|
25
|
+
@px.import x
|
21
26
|
end
|
22
27
|
|
23
28
|
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.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,28 +10,27 @@ 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
|
-
|
32
|
-
PSXhbfB1igzLQg==
|
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
|
+
ZbQqBc3HwcfZBwTcVh6Cgtmot/bvVedpMjeUJNaSP6soq3nOLUYVjpO00kdoQiAg
|
22
|
+
MRiInhk2xCfRDDarAgMBAAGjgYowgYcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
23
|
+
HQYDVR0OBBYEFAMcWdokvoMFhEtUgDER89Qb4NNqMCYGA1UdEQQfMB2BG2dlbW1h
|
24
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTAmBgNVHRIEHzAdgRtnZW1tYXN0ZXJAamFt
|
25
|
+
ZXNyb2JlcnRzb24uZXUwDQYJKoZIhvcNAQEFBQADggEBAFXEqQn44mb1l4Q1BjXU
|
26
|
+
t3dZnGbO5vOj7vIMxbOMK+ix3SkL0qrv7u3KtXrnODIu/gBQGLZbQyOOeUryYO4e
|
27
|
+
pFCdAGuXvdGWVHu3Co+JOlXnT9/MQW7yyHj1CxUBDpw5c6OXyIS4y9KHQB3nXSDo
|
28
|
+
ukkiaMbubmAoB7VClN1CiCNBxcrSpL7cKyAxXMb3kNm6ygP8ItUIfyWZ30KZO9wd
|
29
|
+
D44qVUFBjaKZ9YBumJT0gkUk0PzXpQo5QCsAZ1jT0hzrIG9j4lcl/y+DsdY84TfU
|
30
|
+
Yq7tP29e3PNR0XzKusonmg9vt9pcWch3L4kk0ADKQoL2nwOODQMbWRV+0+AnyYU2
|
31
|
+
JIM=
|
33
32
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
33
|
+
date: 2018-03-17 00:00:00.000000000 Z
|
35
34
|
dependencies:
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
36
|
name: polyrex
|
@@ -39,22 +38,22 @@ dependencies:
|
|
39
38
|
requirements:
|
40
39
|
- - "~>"
|
41
40
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
41
|
+
version: '1.1'
|
43
42
|
- - ">="
|
44
43
|
- !ruby/object:Gem::Version
|
45
|
-
version:
|
44
|
+
version: 1.1.13
|
46
45
|
type: :runtime
|
47
46
|
prerelease: false
|
48
47
|
version_requirements: !ruby/object:Gem::Requirement
|
49
48
|
requirements:
|
50
49
|
- - "~>"
|
51
50
|
- !ruby/object:Gem::Version
|
52
|
-
version: '
|
51
|
+
version: '1.1'
|
53
52
|
- - ">="
|
54
53
|
- !ruby/object:Gem::Version
|
55
|
-
version:
|
54
|
+
version: 1.1.13
|
56
55
|
description:
|
57
|
-
email: james@
|
56
|
+
email: james@jamesrobertson.eu
|
58
57
|
executables: []
|
59
58
|
extensions: []
|
60
59
|
extra_rdoc_files: []
|
@@ -80,8 +79,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
79
|
version: '0'
|
81
80
|
requirements: []
|
82
81
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
82
|
+
rubygems_version: 2.6.13
|
84
83
|
signing_key:
|
85
84
|
specification_version: 4
|
86
|
-
summary: Represents a file tree
|
85
|
+
summary: Represents a file tree using a Polyrex document
|
87
86
|
test_files: []
|
metadata.gz.sig
CHANGED
Binary file
|