polyrex 1.2.1 → 1.3.0

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
  SHA256:
3
- metadata.gz: c264e2e88c3059deaffd79c74aa0971353623d7285616f8f7d6e64c45cfca39b
4
- data.tar.gz: 3ba76525681e146b56c924dc536cbed9f178956d092de121feefd373e66cae75
3
+ metadata.gz: 6a8633ee17ecebe2582b143347ac7d3416b6e8e57bf2b500873d6ef88bc8d34d
4
+ data.tar.gz: 71009b11eb3e146379c40569e9d34642eb667b9f9ed0a0be764d16db018971bb
5
5
  SHA512:
6
- metadata.gz: e53a7688df60fee78cc4086f724a823b383c98e9c41119d293d5e52d2af310d2a3c22ef8f405aef4bc73f33aa1b5ad76bd111cdd5f28a909d1d1cf4138b9f341
7
- data.tar.gz: 1fdfd9af141302e4e5ad34f34f522fdf1b5cc31a2f6d9dc4d4224efd9c0436ba4856333bb6165742c5c4b9f360bbf33512965b790c7627753fa0e7a5fb049fdf
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.2.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
- MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
14
- YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwMzE3MTMwMzQ5WhcN
15
- MTkwMzE3MTMwMzQ5WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
16
- cnRzb24vREM9ZXUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDB5D1x
17
- ISNvSg+4OuXCG4Y+tqBVWrAlJWI8WJoklmuV7abVRJbEHSiWgkmd5HAYyfJUrtO0
18
- JELlNk2KTaLJDUV5TA/se4gUVZbw4+bw81GPvfRl4xa0XXdMwzZVLKP6coryCxqe
19
- CBep7jJD6a16d6Ewbh8p+mnpBOOBNc7A8aw3RUZKkO+uNUdyv0RQTYb8/FNtj7aO
20
- cUR8zY+uGbdtE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qD
33
+ rNtQZm3ZWI510CEloKCh9Hu2dZ+VeGiwCz7DkYZAF1LgemumTQJGPc0plycmB8eL
34
+ 9xpG6LBaEthin+6sSuRMAoz/xP9xcl2KFhrHdH+wZ/TRLrpM642BX4Wi1rmC2SYf
35
+ 9ub27xrXdW+WRA23u7MhkcrdY6eyNactmrRDbCMP7cIs+4V0a9/8GdKTqKcvpPH5
36
+ A6n47/gb6TRnFzkcm3JJNxg8
32
37
  -----END CERTIFICATE-----
33
- date: 2018-09-03 00:00:00.000000000 Z
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.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.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.1'
86
+ version: '0.2'
82
87
  - - ">="
83
88
  - !ruby/object:Gem::Version
84
- version: 0.1.6
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.1'
96
+ version: '0.2'
92
97
  - - ">="
93
98
  - !ruby/object:Gem::Version
94
- version: 0.1.6
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.7'
106
+ version: '1.8'
102
107
  - - ">="
103
108
  - !ruby/object:Gem::Version
104
- version: 1.7.30
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.7'
116
+ version: '1.8'
112
117
  - - ">="
113
118
  - !ruby/object:Gem::Version
114
- version: 1.7.30
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
- rubyforge_project:
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