polyrex-schema 0.1.2 → 0.1.3

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.
Files changed (2) hide show
  1. data/lib/polyrex-schema.rb +3 -1
  2. metadata +2 -2
@@ -18,7 +18,9 @@ class PolyrexSchema
18
18
  b1, b2 = x.split('[')
19
19
  if b2 then
20
20
  node = append_node node, b1 do |summary|
21
- b2.scan(/\w+(?=[,\]])/).each {|x| summary.add Element.new x}
21
+ fields = b2.scan(/\w+(?=[,\]])/)
22
+ fields.each {|x| summary.add Element.new x}
23
+ summary.add Element.new('schema').add_text(fields.map {|x| "[!%s]" % x}. join(' '))
22
24
  end
23
25
  else
24
26
  node = append_node node, x
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors: []
7
7
 
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-05-18 00:00:00 +01:00
12
+ date: 2010-05-21 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15