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 +4 -4
- checksums.yaml.gz.sig +1 -2
- data.tar.gz.sig +0 -0
- data/lib/polyrex-createobject.rb +7 -2
- metadata +18 -18
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0c30572ba2d4c45728195c609dee387ae3e5d9b
|
4
|
+
data.tar.gz: f5e3040b3c863ab8113f7008000f5359fd59e190
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b335b0e069a1f24da1cb4b970d81eab973f487eacb9767d48fa8686f216cee5c94b5bf33f1a2dffb37ca0a36ab1e4483793b2f9f2af52d971b8aecc2a98852f
|
7
|
+
data.tar.gz: bc9ae9af37142c2836bee957b82707643c8351d9e564335ef4e54b76c56157fbbe23449a9cf135abb565b0873d86e61917dda73086934504e53a55e5c64c2395
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
�
|
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
|
+
6K�v�
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex-createobject.rb
CHANGED
@@ -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[
|
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.
|
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
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE1MDczMDEzNTk1OFoXDTE2MDcyOTEzNTk1OFowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLG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UfIFyj/NTLy1kcMnhiZ5YMuh4nhRSJFthzG
|
30
|
+
NEmUMa5x9VSjpwN8/Ss+/RPhc+3L7Ng2lIDgbrUvXpI4rnvBVEj4Q/kFdgqAzUyD
|
31
|
+
kCdP90rmuxYPx2FK9wqCT5lK8yFA3bIMSD7Ixq7wwOuKkxslzh9X+Ov8koFWZsuY
|
32
|
+
aQ9X9T8uD9QBVQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
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.
|
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
|
-
|
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�����
|