polyrex 1.2.1 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/polyrex.rb +24 -0
- metadata +37 -33
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6a8633ee17ecebe2582b143347ac7d3416b6e8e57bf2b500873d6ef88bc8d34d
|
4
|
+
data.tar.gz: 71009b11eb3e146379c40569e9d34642eb667b9f9ed0a0be764d16db018971bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 42818d58c50f618e9edec92b0fe1d51a1a37ab0648ee1dfb665ee621def69adaaaed040bd47579646c3aa304682ed231a7c9f0d1681cfa2e74ed0013fd2e7505
|
7
|
+
data.tar.gz: d954a18344357e3ed3683d43065c60f6a5572dcdeb3608a811eb0ba04fe656d3a5ff5019820b9064f2ab38b645b1c194e925ce65cfad0dbb5dd53d67494d3b95
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex.rb
CHANGED
@@ -269,6 +269,30 @@ class Polyrex
|
|
269
269
|
|
270
270
|
make_dynarex(root)
|
271
271
|
end
|
272
|
+
|
273
|
+
def to_opml()
|
274
|
+
|
275
|
+
puts '@schema: ' + @schema.inspect if @debug
|
276
|
+
|
277
|
+
head, body = @schema.split(/(?<=\])/,2)
|
278
|
+
schema_body = body.gsub(/(?<=\[)[^\]]+/) do |x|
|
279
|
+
x.split(/\s*,\s*/).map {|field| '@' + field + ':' + field}.join(', ')
|
280
|
+
end
|
281
|
+
schema_head = head.gsub(/(?<=\[)[^\]]+/) do |x|
|
282
|
+
x.split(/\s*,\s*/).map {|field| field + ':' + field}.join(', ')
|
283
|
+
end
|
284
|
+
|
285
|
+
puts 'schema_body: ' + schema_body.inspect if @debug
|
286
|
+
puts 'schema_head: ' + schema_head.inspect if @debug
|
287
|
+
xslt_schema = schema_head.sub(/^\w+/,'opml>head') + schema_body.gsub(/\w+(?=\[)/,'outline').sub(/\/(\w+)(?=\[)/,'/body>outline')
|
288
|
+
|
289
|
+
puts 'xslt_schema: ' + xslt_schema.inspect if @debug
|
290
|
+
|
291
|
+
recxslt = RecordxXSLT.new(schema: @schema, xslt_schema: xslt_schema)
|
292
|
+
|
293
|
+
Rexslt.new(recxslt.to_xslt, self.to_xml).to_s
|
294
|
+
|
295
|
+
end
|
272
296
|
|
273
297
|
def to_s(header: true)
|
274
298
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyrex
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
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
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTkwNzMwMTcwODM4WhcN
|
15
|
+
MjAwNzI5MTcwODM4WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM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WV0lnUqe4H8SIZpbifMTcMp
|
31
|
+
8swwPcAFxynqX97Adw+aB9nwd5Ixb+9fK/LVtxJ+nnAiGzsh2DZ1grBZfARq0jDT
|
32
|
+
YchNv+mL6pWB9PuzGEWH/I2yeBQQ0bPLSwZrorlOC24JzK5/myxbiFDeGnpnyeqD
|
33
|
+
rNtQZm3ZWI510CEloKCh9Hu2dZ+VeGiwCz7DkYZAF1LgemumTQJGPc0plycmB8eL
|
34
|
+
9xpG6LBaEthin+6sSuRMAoz/xP9xcl2KFhrHdH+wZ/TRLrpM642BX4Wi1rmC2SYf
|
35
|
+
9ub27xrXdW+WRA23u7MhkcrdY6eyNactmrRDbCMP7cIs+4V0a9/8GdKTqKcvpPH5
|
36
|
+
A6n47/gb6TRnFzkcm3JJNxg8
|
32
37
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
38
|
+
date: 2019-07-30 00:00:00.000000000 Z
|
34
39
|
dependencies:
|
35
40
|
- !ruby/object:Gem::Dependency
|
36
41
|
name: polyrex-objects
|
@@ -41,7 +46,7 @@ dependencies:
|
|
41
46
|
version: '1.0'
|
42
47
|
- - ">="
|
43
48
|
- !ruby/object:Gem::Version
|
44
|
-
version: 1.0.
|
49
|
+
version: 1.0.1
|
45
50
|
type: :runtime
|
46
51
|
prerelease: false
|
47
52
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -51,7 +56,7 @@ dependencies:
|
|
51
56
|
version: '1.0'
|
52
57
|
- - ">="
|
53
58
|
- !ruby/object:Gem::Version
|
54
|
-
version: 1.0.
|
59
|
+
version: 1.0.1
|
55
60
|
- !ruby/object:Gem::Dependency
|
56
61
|
name: polyrex-object-methods
|
57
62
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,40 +83,40 @@ dependencies:
|
|
78
83
|
requirements:
|
79
84
|
- - "~>"
|
80
85
|
- !ruby/object:Gem::Version
|
81
|
-
version: '0.
|
86
|
+
version: '0.2'
|
82
87
|
- - ">="
|
83
88
|
- !ruby/object:Gem::Version
|
84
|
-
version: 0.
|
89
|
+
version: 0.2.2
|
85
90
|
type: :runtime
|
86
91
|
prerelease: false
|
87
92
|
version_requirements: !ruby/object:Gem::Requirement
|
88
93
|
requirements:
|
89
94
|
- - "~>"
|
90
95
|
- !ruby/object:Gem::Version
|
91
|
-
version: '0.
|
96
|
+
version: '0.2'
|
92
97
|
- - ">="
|
93
98
|
- !ruby/object:Gem::Version
|
94
|
-
version: 0.
|
99
|
+
version: 0.2.2
|
95
100
|
- !ruby/object:Gem::Dependency
|
96
101
|
name: dynarex
|
97
102
|
requirement: !ruby/object:Gem::Requirement
|
98
103
|
requirements:
|
99
104
|
- - "~>"
|
100
105
|
- !ruby/object:Gem::Version
|
101
|
-
version: '1.
|
106
|
+
version: '1.8'
|
102
107
|
- - ">="
|
103
108
|
- !ruby/object:Gem::Version
|
104
|
-
version: 1.
|
109
|
+
version: 1.8.19
|
105
110
|
type: :runtime
|
106
111
|
prerelease: false
|
107
112
|
version_requirements: !ruby/object:Gem::Requirement
|
108
113
|
requirements:
|
109
114
|
- - "~>"
|
110
115
|
- !ruby/object:Gem::Version
|
111
|
-
version: '1.
|
116
|
+
version: '1.8'
|
112
117
|
- - ">="
|
113
118
|
- !ruby/object:Gem::Version
|
114
|
-
version: 1.
|
119
|
+
version: 1.8.19
|
115
120
|
description:
|
116
121
|
email: james@jamesrobertson.eu
|
117
122
|
executables: []
|
@@ -138,8 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
143
|
- !ruby/object:Gem::Version
|
139
144
|
version: '0'
|
140
145
|
requirements: []
|
141
|
-
|
142
|
-
rubygems_version: 2.7.6
|
146
|
+
rubygems_version: 3.0.1
|
143
147
|
signing_key:
|
144
148
|
specification_version: 4
|
145
149
|
summary: A flavour of XML for storing and retrieveing records in a Polyrex hierarchy
|
metadata.gz.sig
CHANGED
Binary file
|