polyrex-createobject 0.5.7 → 0.5.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d0fbdbdd672352b34eaad75efc12bf0ddc0668bc
4
- data.tar.gz: 5e4a8ff887cd19efc81fd82352db81d1a64a6d92
3
+ metadata.gz: d0c30572ba2d4c45728195c609dee387ae3e5d9b
4
+ data.tar.gz: f5e3040b3c863ab8113f7008000f5359fd59e190
5
5
  SHA512:
6
- metadata.gz: 21e7753d810d4a7c4cca3e1aeab746d1ff19652d24d2a7ac9dc6f881c1ff8ea8fab1d17b04e4bf4c8940d83303c38568b5fcdec83b138b0fedef029b960d7a47
7
- data.tar.gz: ddfacd5ecea211befb7904f2f8810202cb3dc375de62b6b22eede454ac0e044125852e6ae2107eb1f9885099bba0b6a71a25fe928041e51f3310be277b60709e
6
+ metadata.gz: 6b335b0e069a1f24da1cb4b970d81eab973f487eacb9767d48fa8686f216cee5c94b5bf33f1a2dffb37ca0a36ab1e4483793b2f9f2af52d971b8aecc2a98852f
7
+ data.tar.gz: bc9ae9af37142c2836bee957b82707643c8351d9e564335ef4e54b76c56157fbbe23449a9cf135abb565b0873d86e61917dda73086934504e53a55e5c64c2395
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- )2Sn�T�<r�e dH���������nn��
2
- �m�s��c���K����6�퓱rk���������KQ﹁��1u޸������@��3��̐N�!����0��4N]c�<���Ͷ��^ M�D��+&��ֻd��:�ǙRM�ݐ���N��#����9��N�"S�S�K�<t=w(+p�t��su����Ʀ ��kV��3t�,?����o��t�r��[��B���a{O%p
1
+ 6Kv
data.tar.gz.sig CHANGED
Binary file
@@ -135,7 +135,9 @@ class PolyrexCreateObject
135
135
 
136
136
  define_method :create_node do |parent_node, child_schema,
137
137
  params={}, id=nil|
138
+
138
139
  record = PolyrexSchema.new(child_schema).to_doc
140
+ #puts 'record : ' + record.xml(pretty: true)
139
141
  record.root.xpath('records/.').each(&:delete)
140
142
 
141
143
  if id then
@@ -153,6 +155,7 @@ class PolyrexCreateObject
153
155
  a = child_schema[/[^\[]+(?=\])/].split(',')
154
156
 
155
157
  summary = record.root.element('summary')
158
+
156
159
  a.each do |field_name|
157
160
  field = summary.element(field_name.strip)
158
161
  field.text = params[field_name.strip.to_sym]
@@ -168,10 +171,12 @@ class PolyrexCreateObject
168
171
  id ||= @@id
169
172
 
170
173
  local_schema = @parent_node.parent.text('summary/schema')[/\/(.*$)/,1]
174
+
171
175
  if local_schema[0] == '{' then
172
176
 
173
177
  local_schema = "%s[%s]%s" % [cname, fields.join(','),
174
- local_schema[/\/.*$/].to_s]
178
+ local_schema[/\/[^;]+/].to_s]
179
+
175
180
  end
176
181
  new_parent = create_node(@parent_node, local_schema, h, id)\
177
182
  .element('records')
@@ -240,4 +245,4 @@ class PolyrexCreateObject
240
245
  return klass
241
246
  end
242
247
 
243
- end
248
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-createobject
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.7
4
+ version: 0.5.8
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
- 8ixkARkWAmV1MB4XDTE0MDYxMDE4NTQyNFoXDTE1MDYxMDE4NTQyNFowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE1MDczMDEzNTk1OFoXDTE2MDcyOTEzNTk1OFowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/Is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A1UdEgQfMB2BG2dlbW1h
26
- c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAHZjkoDAi
27
- 3UAg3FY+RMafVDw/0nkwYLgXtmEVk2YHuOKZKY9g+7xCG6/v+jspzgyndPl0oIeG
28
- ED4p8UbmQt5wPQwhWU/6hZaVRe6n/PBtgbktCaU4bVjlE+84s11J7rHMWIUbykKs
29
- 8FO2zKoVjq6hCMxrYgs2u0++Ju5E1rvppHqMyrzeJzwmkW3XXsCvdR1Wqvg3cath
30
- Ro9OPaTvLpSW/gRNa3cYnUAT2nbiPO2hzjzMcHkMviDtllJpwZgCLGPe8sHBzb95
31
- f3O5lCaUfMDZbRHRyvXjy/4PFRQKLr6ZLbpQN+dWceS6/82/5xWEL/7Bo/86R5xN
32
- JL6pGH//inbMWQ==
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAMQ+jOU0z
27
+ H/GR9PlCs4c5e2Zgrz4rdd6H0EEOD994utPeJokzFCXKNEqI23blhE2rZlhF2bZn
28
+ iHOED3OrQyFMOaIZJ+0QPLymnWKbOl/c0RbmYUdQklPT6t1lwDjx7Le+GsSGYbAG
29
+ yqqlcNqkIhkJ4c4KeZVxgh7UT8DctUfIFyj/NTLy1kcMnhiZ5YMuh4nhRSJFthzG
30
+ NEmUMa5x9VSjpwN8/Ss+/RPhc+3L7Ng2lIDgbrUvXpI4rnvBVEj4Q/kFdgqAzUyD
31
+ kCdP90rmuxYPx2FK9wqCT5lK8yFA3bIMSD7Ixq7wwOuKkxslzh9X+Ov8koFWZsuY
32
+ aQ9X9T8uD9QBVQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-10-02 00:00:00.000000000 Z
34
+ date: 2015-07-30 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: polyrex-schema
@@ -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.2.2
83
+ rubygems_version: 2.4.8
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: polyrex-createobject
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- K�gL��
1
+ "#y��d��_�e�k�M||��F13���r��q��Sv�'G���^Sv��{a�XDpb/U�7�ҽ�/����d��*lYHcEZu��1D�x��6��f^l��{�k�ɵ���՝~�JÊ�3v�ʊ}lk�=��]g��Z֛gK�����$c����~����,h
2
+ �T6�~�RdIQ�Q ��Qs��Ao�<�96��� 5��=O!,� bs*:�Ȃ�P�����