polyrex-schema 0.4.0 → 0.4.1
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/polyrex-schema.rb +5 -3
- metadata +18 -18
- 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: 0abf411199d6f82e536976e4be82c509a47aff8c
|
4
|
+
data.tar.gz: 969dc383a7aecb36044bb586ca38bd23624a9923
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5ab154dbda4c8abd0979636ec6b0d6b6a9facf4c601b47ab465844ffa5540bb6632565fca928cb370238eee511b4c5c2398fa1323d7a9bd0bbd8e9cc1c62b9c
|
7
|
+
data.tar.gz: 8cbe502092083fbf28066c562f09eab32a136e08bc3fa8e13a22d675de8efff731ec77bd78ee502f4bfd4a26b20838a5a77b884b07f049db4eaad72c7c2626d2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex-schema.rb
CHANGED
@@ -15,7 +15,9 @@ class PolyrexSchema
|
|
15
15
|
|
16
16
|
r = add_node split(s)
|
17
17
|
r[3] << node('recordx_type', 'polyrex')
|
18
|
+
|
18
19
|
@doc = Rexle.new(r)
|
20
|
+
|
19
21
|
end
|
20
22
|
end
|
21
23
|
|
@@ -26,8 +28,8 @@ class PolyrexSchema
|
|
26
28
|
self
|
27
29
|
end
|
28
30
|
|
29
|
-
def to_a() scan_to_a(@doc.root.xpath 'records
|
30
|
-
def to_h() scan_to_h(@doc.root.xpath 'records
|
31
|
+
def to_a() scan_to_a(@doc.root.xpath 'records/*') end
|
32
|
+
def to_h() scan_to_h(@doc.root.xpath 'records/*') end
|
31
33
|
def to_doc() @doc end
|
32
34
|
def to_s() @doc.to_s end
|
33
35
|
|
@@ -93,7 +95,7 @@ class PolyrexSchema
|
|
93
95
|
a = r.xpath('summary/*/name()') # => ["entry", "format_mask"]
|
94
96
|
schema = r.text('summary/schema')
|
95
97
|
fields = (a - %w(schema format_mask)).map(&:to_sym)
|
96
|
-
node = r.xpath 'records
|
98
|
+
node = r.xpath 'records/*'
|
97
99
|
|
98
100
|
if node.any? then
|
99
101
|
children = scan_to_h(node)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyrex-schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE2MDMxMDAwMjU1NVoXDTE3MDMxMDAwMjU1NVowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBAJz2C34C0XLpCYwBaWOu2+ikCL0qsC2jE1QKLEWD0KgDQ4RdQ534LcRCrHeu
|
19
|
+
LyhTWSP5OCQAxX4PhcqBy0BkbXEicguP9HcBDOZR1x5NZyDtvq06uyOkijneO+YD
|
20
|
+
awo4+utmz5aFmnEn7pMkhiiNP6NeBHbcJRiTbcqJr2nmj/fnaYblSvWuxMFb5NMD
|
21
|
+
5J9wLUM6qT/66vNA7wI9f0LVV9O6mvKKHi5VXVNDgIHHmFNgmb1V0BiauKPfOqZ+
|
22
|
+
/d/fPBGPF9sNwDlCS97ETKkYbat/Vw7pVV5Fl7+3CkrPI4S51htDy7pjFH/9KG1S
|
23
|
+
QUYKtkvPQwJCvUxZsI5yjD/kKL0CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUqL8Sssw0AB41lwtMaACDdhYoT+8wJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
+
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAOy81zP5y
|
27
|
+
/Fb0rxFEMqvOpmU6JDM7reh8Dye2yD5gzLRlceb5I7aP6qmSmfZ3kZTmrraPI5V8
|
28
|
+
1JKsjTm43byR27IYDrBOQEeWc39v2a/DtTdUtDzMMc+fwlRUzKf7qVzS0xsjgRN2
|
29
|
+
gyYAbfbOW6Pc3SsRvKq0MDgdtFep+mP8H7rk832U0mlhqjkcLwLuI6GwN9evARr1
|
30
|
+
0bcC7YBebBl9lgxdcvvyQhX4jjARQer4huvjOCp7Vo0E43JAih8An5pqOaxsoHYN
|
31
|
+
7HM6eFXEshFmjb+/GXg2liBEIgNS7Sxo81rQE32DxEikD1U9QQFUwKU3CD2CZIoY
|
32
|
+
i9QykFbHPjMCKw==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2016-03-10 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rexle
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.4.8
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: The polyrex-schema gem creates Polyrex XML from an initial shorthand schematic
|
metadata.gz.sig
CHANGED
Binary file
|