polyrex-schema 0.2.2 → 0.2.3
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 +3 -2
- metadata +1 -1
- 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: 525963053e50db80e18bb8795c34470553012143
|
4
|
+
data.tar.gz: 8716384cb4673f6a37d14d3e9190849e0dac8684
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f6e16d034e80574719bc6814b27d7ed998a53b1d3b68458f92679e05ebbd32bb64e9674e5f3dee17d09ced68006d27062a14a2ba381f6f2ccf763d58ced061c
|
7
|
+
data.tar.gz: 89f515edde9c6b0d959adda07afaa651c79c358dbfba3d88a258af94550f0ef3c0d51237836c102952cfb9d422e88ef8edbdd3a59311c3be776dca55226c1f6b
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex-schema.rb
CHANGED
@@ -10,7 +10,7 @@ class PolyrexSchema
|
|
10
10
|
|
11
11
|
s.prepend 'root/' if s[0] == '{'
|
12
12
|
|
13
|
-
a = s.scan(/(\{[^\}]+\})|(\w+[^\/]*)\/|\/(.*)/).flatten(1).compact
|
13
|
+
a = s.scan(/(\{[^\}]+\})|(\w+[^\/]*)\/|\/(.*)|(.+)/).flatten(1).compact
|
14
14
|
|
15
15
|
r = add_node a
|
16
16
|
r[3] << node('recordx_type', 'polyrex') << node('schema',s)
|
@@ -51,7 +51,8 @@ class PolyrexSchema
|
|
51
51
|
|
52
52
|
r = raw_siblings[1..-2].split(/\s*\s*;/).map do |x|
|
53
53
|
|
54
|
-
a2 = x.scan(/(\{[^\}]+\})|(\w+[^\/]*)\/|\/(.*)|(.+)/).flatten(1)
|
54
|
+
a2 = x.scan(/(\{[^\}]+\})|(\w+[^\/]*)\/|\/(.*)|(.+)/).flatten(1)\
|
55
|
+
.compact
|
55
56
|
add_node a2 + a
|
56
57
|
end
|
57
58
|
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|