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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5e26c269e05bd82881bfe3e0044926d7182ef1a4
4
- data.tar.gz: 8ef5b3a1df0f57810d097d68f51d8070ca200fce
3
+ metadata.gz: 938213c06d26ff11d4956d91cbf0103f6b483b8b
4
+ data.tar.gz: 44cf7fe46405284ff83dad975a0d93ff590efe78
5
5
  SHA512:
6
- metadata.gz: 6c5034177bc57ba2b5b183722cac344774bce390f6062828fd02b703ec5b327f563969a17b5ec5e23f3f51d339a14ed087e6318bacf179420562407fea720317
7
- data.tar.gz: 766142c14114953fe7de651e43ff52a864e09c45335cd3b0abfc39ce971401835db91eac95bd144d6aea91098853d109c20211fa51a0e57855432aba7697fb00
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
- else
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.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
- MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
- YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE0MTIwNTIwMDU0NFoXDTE1MTIwNTIwMDU0NFowSDESMBAG
16
- A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
- EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAKADKHITd+T/zauBZDZOlHb8jWKZLB46oVQ6GumbGoZz+TmndPMjy8X3h54k
19
- BsKcNz8QuRVx8nzfPN+LJj4dXh+flda+7QRe6/0ZnHHWVcLatV2yQwSRCUtAl7H9
20
- 3qOZZABN9QwAwaPmeXEsCqsgKFnkWt/O0L9jYdDh5dITmOgh9moURnSxL3Qnh04i
21
- 7kxtMPtLQyBhQ0L6XBJ122pE16gqqiqaUj9oEM3vREWab4SKtY7j8ZwghjZ27gSt
22
- u5GsucUP5iqe8e2EQj/9m4aPZOTW8VbdYiLCG3rVCLVocspMMZOku8aTyM30ABnt
23
- KvDrbbstuh4yNUsQcrAKknARRpMCAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
- DwQEAwIEsDAdBgNVHQ4EFgQUbvlDAV+GkO/WQ0/uC1DDBDsuQfowJgYDVR0RBB8w
25
- HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
26
- c3RlckBqYW1lc3JvYmVydH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CBLAw
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: 2014-12-05 00:00:00.000000000 Z
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: '0.9'
41
+ version: '1.1'
43
42
  - - ">="
44
43
  - !ruby/object:Gem::Version
45
- version: 0.9.12
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: '0.9'
51
+ version: '1.1'
53
52
  - - ">="
54
53
  - !ruby/object:Gem::Version
55
- version: 0.9.12
54
+ version: 1.1.13
56
55
  description:
57
- email: james@r0bertson.co.uk
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.2.2
82
+ rubygems_version: 2.6.13
84
83
  signing_key:
85
84
  specification_version: 4
86
- summary: Represents a file tree in a Polyrex document
85
+ summary: Represents a file tree using a Polyrex document
87
86
  test_files: []
metadata.gz.sig CHANGED
Binary file