polyrex-schema 0.1.13 → 0.1.14

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9661716a6acfe6957022f375d9d1a519c5fd6732
4
- data.tar.gz: cf85e1603701dcd6f7530f664a30164fcdde3a09
3
+ metadata.gz: bccb061a108923510f73b4cda73336a52d01f84b
4
+ data.tar.gz: 3fec5bf4753e74c3c83aded412039b97ad48093a
5
5
  SHA512:
6
- metadata.gz: d8a17a4e0aa7e621635b2146f801603249ef38ba24e26a05350b05b060f59a73ae65e0c5b6251745b660d963d618dfc54173c7bc6d23b89c8e370ca33f5a1ee5
7
- data.tar.gz: 7b0e015ceec7073c60f93ce373cfb2672e9899b1a1b7724f8c6746cb43719d20dfdcde180a977bb2cdb03ae189d26484b644cfbc2dc2290de95c884b756a05ca
6
+ metadata.gz: 2558a9b33dc45148ea3d6d9951554b8316436423820ebaff680aec8dd6efeafe26ddae876c42f32789362a357e16919b41373a326681a418104e521396e364e3
7
+ data.tar.gz: 084ce4600cc7d48d0c21de3c92495ccfade264c6c2776963708e203c51cd6ebb17097a3ed50255a33e1c805c9834eac568302e2ba6e4a5af461555b1d0c1ac16
checksums.yaml.gz.sig CHANGED
Binary file
@@ -33,8 +33,16 @@ class PolyrexSchema
33
33
 
34
34
  return if a.empty?
35
35
 
36
- name, raw_fields = a.shift.split('[')
37
-
36
+ line = a.shift
37
+
38
+ raw_siblings = line[/\{.*/]
39
+
40
+ if raw_siblings then
41
+ return raw_siblings[1..-2].split(';').map{|x| add_node [x] + a}
42
+ end
43
+
44
+ name, raw_fields = line.split('[',2)
45
+
38
46
  rows = if raw_fields then
39
47
 
40
48
  fields = raw_fields.chop.split(',')
@@ -42,8 +50,11 @@ class PolyrexSchema
42
50
  field_rows << node('format_mask', fields.map{|x| "[!%s]" % x}.join(' '))
43
51
  end
44
52
 
45
- node(name, '',
46
- node('summary', '', *rows), node('records', '', add_node(a))
53
+ children = add_node(a)
54
+ children = [children] if children and children[0].is_a? String
55
+
56
+ node(name, '',
57
+ node('summary', '', *rows), node('records', '', *children)
47
58
  )
48
59
  end
49
60
 
data.tar.gz.sig CHANGED
Binary file
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.1.13
4
+ version: 0.1.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  x3ppGgUf/zri8F8syPC4U/PhiV9ZBYGjFZDoQWr9TW6gJ1rEPuB1RYH9RPLaSYy4
32
32
  SFJGImVxuM2M+Q==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-03-18 00:00:00.000000000 Z
34
+ date: 2014-03-19 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle
metadata.gz.sig CHANGED
Binary file