polyrex 1.1.1 → 1.1.2
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 +7 -6
- metadata +15 -15
- 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: 8e019ed697a5c8ce9fb634af811713998c026a0a
|
|
4
|
+
data.tar.gz: b6cecdd0c87475f37cff5815795bc48aab5caf7d
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: aaf2f391603824982f39073bd07cae6561293b0bfaeb0aff6b6bb7b34186519f8c055488cd77610017b7c2250e7372874a226606ab1681b597ac5198e2ee9338
|
|
7
|
+
data.tar.gz: 6b54f2079fa8222c48a5ddcdb55f3f58cb23814a4b495cedb8e514a97d2dc045ed8cee96b5faff4a59fa05911e1ee676b8bdc70b98fa86d26dd9993d7be09288
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/polyrex.rb
CHANGED
|
@@ -190,6 +190,7 @@ class Polyrex
|
|
|
190
190
|
end
|
|
191
191
|
|
|
192
192
|
def records
|
|
193
|
+
|
|
193
194
|
@doc.root.xpath("records/*").map do |record|
|
|
194
195
|
@objects_a[0].new(record)
|
|
195
196
|
end
|
|
@@ -239,7 +240,7 @@ class Polyrex
|
|
|
239
240
|
make_dynarex(root)
|
|
240
241
|
end
|
|
241
242
|
|
|
242
|
-
def to_s()
|
|
243
|
+
def to_s(header: true)
|
|
243
244
|
|
|
244
245
|
def build(records, indent=0)
|
|
245
246
|
|
|
@@ -285,9 +286,10 @@ class Polyrex
|
|
|
285
286
|
declaration = %Q(<?polyrex %s?>\n) % s
|
|
286
287
|
end
|
|
287
288
|
|
|
288
|
-
|
|
289
|
+
docheader = declaration + sumry
|
|
289
290
|
out = build(self.records).join("\n")
|
|
290
|
-
header + "\n" + out
|
|
291
|
+
header ? docheader + "\n" + out : out
|
|
292
|
+
|
|
291
293
|
end
|
|
292
294
|
|
|
293
295
|
def to_xslt()
|
|
@@ -325,7 +327,6 @@ class Polyrex
|
|
|
325
327
|
|
|
326
328
|
def make_dynarex(root)
|
|
327
329
|
|
|
328
|
-
|
|
329
330
|
root.delete('summary/recordx_type')
|
|
330
331
|
root.delete('summary/format_mask')
|
|
331
332
|
root.xpath('records/*/summary/format_mask').each(&:delete)
|
|
@@ -356,7 +357,7 @@ xsl_buffer = '
|
|
|
356
357
|
</xsl:template>
|
|
357
358
|
</xsl:stylesheet>
|
|
358
359
|
'
|
|
359
|
-
|
|
360
|
+
|
|
360
361
|
buffer = Rexslt.new(xsl_buffer, root.xml).to_s
|
|
361
362
|
Dynarex.new buffer
|
|
362
363
|
|
|
@@ -740,4 +741,4 @@ xsl_buffer = '
|
|
|
740
741
|
end
|
|
741
742
|
end
|
|
742
743
|
|
|
743
|
-
end
|
|
744
|
+
end
|
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.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
EUI+ncIuEEQSxIVKGeaQ49Dk10P2t0cX3DGyMlv7sreJohHxJfNKsjG/SAk0cks0
|
|
32
32
|
9+gffejS1ORTgQ==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2016-
|
|
34
|
+
date: 2016-09-19 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: polyrex-schema
|
|
@@ -42,7 +42,7 @@ dependencies:
|
|
|
42
42
|
version: '0.4'
|
|
43
43
|
- - ">="
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 0.4.
|
|
45
|
+
version: 0.4.2
|
|
46
46
|
type: :runtime
|
|
47
47
|
prerelease: false
|
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -52,47 +52,47 @@ dependencies:
|
|
|
52
52
|
version: '0.4'
|
|
53
53
|
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 0.4.
|
|
55
|
+
version: 0.4.2
|
|
56
56
|
- !ruby/object:Gem::Dependency
|
|
57
57
|
name: polyrex-objects
|
|
58
58
|
requirement: !ruby/object:Gem::Requirement
|
|
59
59
|
requirements:
|
|
60
60
|
- - "~>"
|
|
61
61
|
- !ruby/object:Gem::Version
|
|
62
|
-
version: '0.
|
|
62
|
+
version: '0.9'
|
|
63
63
|
- - ">="
|
|
64
64
|
- !ruby/object:Gem::Version
|
|
65
|
-
version: 0.
|
|
65
|
+
version: 0.9.2
|
|
66
66
|
type: :runtime
|
|
67
67
|
prerelease: false
|
|
68
68
|
version_requirements: !ruby/object:Gem::Requirement
|
|
69
69
|
requirements:
|
|
70
70
|
- - "~>"
|
|
71
71
|
- !ruby/object:Gem::Version
|
|
72
|
-
version: '0.
|
|
72
|
+
version: '0.9'
|
|
73
73
|
- - ">="
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: 0.
|
|
75
|
+
version: 0.9.2
|
|
76
76
|
- !ruby/object:Gem::Dependency
|
|
77
77
|
name: polyrex-createobject
|
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '0.
|
|
82
|
+
version: '0.6'
|
|
83
83
|
- - ">="
|
|
84
84
|
- !ruby/object:Gem::Version
|
|
85
|
-
version: 0.
|
|
85
|
+
version: 0.6.0
|
|
86
86
|
type: :runtime
|
|
87
87
|
prerelease: false
|
|
88
88
|
version_requirements: !ruby/object:Gem::Requirement
|
|
89
89
|
requirements:
|
|
90
90
|
- - "~>"
|
|
91
91
|
- !ruby/object:Gem::Version
|
|
92
|
-
version: '0.
|
|
92
|
+
version: '0.6'
|
|
93
93
|
- - ">="
|
|
94
94
|
- !ruby/object:Gem::Version
|
|
95
|
-
version: 0.
|
|
95
|
+
version: 0.6.0
|
|
96
96
|
- !ruby/object:Gem::Dependency
|
|
97
97
|
name: polyrex-object-methods
|
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -142,7 +142,7 @@ dependencies:
|
|
|
142
142
|
version: '1.7'
|
|
143
143
|
- - ">="
|
|
144
144
|
- !ruby/object:Gem::Version
|
|
145
|
-
version: 1.7.
|
|
145
|
+
version: 1.7.14
|
|
146
146
|
type: :runtime
|
|
147
147
|
prerelease: false
|
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -152,7 +152,7 @@ dependencies:
|
|
|
152
152
|
version: '1.7'
|
|
153
153
|
- - ">="
|
|
154
154
|
- !ruby/object:Gem::Version
|
|
155
|
-
version: 1.7.
|
|
155
|
+
version: 1.7.14
|
|
156
156
|
description:
|
|
157
157
|
email: james@r0bertson.co.uk
|
|
158
158
|
executables: []
|
|
@@ -180,7 +180,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
180
180
|
version: '0'
|
|
181
181
|
requirements: []
|
|
182
182
|
rubyforge_project:
|
|
183
|
-
rubygems_version: 2.
|
|
183
|
+
rubygems_version: 2.5.1
|
|
184
184
|
signing_key:
|
|
185
185
|
specification_version: 4
|
|
186
186
|
summary: A flavour of XML for storing and retrieveing records in a Polyrex hierarchy
|
metadata.gz.sig
CHANGED
|
Binary file
|