polyrex-createobject 0.5.8 → 0.6.0
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 +4 -4
- checksums.yaml.gz.sig +1 -1
- data/lib/polyrex-createobject.rb +6 -5
- data.tar.gz.sig +0 -0
- metadata +6 -6
- 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: 755317d34e9225d93629a70a7e24a1b391ec28d7
|
|
4
|
+
data.tar.gz: d668626cceaff9371812edddacf83c7b3e173c99
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 578747dfb91100fc330d7003c8f6d09722dd9f24d7c2fb942566fc6a10c16ac524b67350daa9e8cce2ff55ed575ed36c0e2ffc78012715c8e5d6cfa88ef1490b
|
|
7
|
+
data.tar.gz: be97c7dbbd15c623137bc6a83fda294f81621ebdf471f5cfc4267504433fbf561edc18519595185e19c15b735ecb265b390d4ac5f9bfd43064b50217ac586649
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
}Rx�6z�r�2:?H�l�i~_����'����)�ehYn�`��`:�
|
data/lib/polyrex-createobject.rb
CHANGED
|
@@ -19,9 +19,11 @@ class PolyrexCreateObject
|
|
|
19
19
|
|
|
20
20
|
raise "missing schema" unless schema
|
|
21
21
|
|
|
22
|
-
@schema = schema[/\/.*$/][1..-1]
|
|
23
|
-
|
|
22
|
+
#jr020516 @schema = schema[/\/.*$/][1..-1]
|
|
23
|
+
@schema = schema[/\/(.*)$/,1]
|
|
24
24
|
|
|
25
|
+
a = PolyrexSchema.new(schema).to_a
|
|
26
|
+
|
|
25
27
|
a.each do |rec|
|
|
26
28
|
|
|
27
29
|
@obj = attach_create_handlers(rec)
|
|
@@ -83,7 +85,7 @@ class PolyrexCreateObject
|
|
|
83
85
|
def create_node(parent_node, child_schema, params={}, id=nil)
|
|
84
86
|
|
|
85
87
|
record = PolyrexSchema.new(child_schema).to_doc
|
|
86
|
-
record.root.xpath('records
|
|
88
|
+
record.root.xpath('records/*').each(&:delete)
|
|
87
89
|
|
|
88
90
|
if id then
|
|
89
91
|
@@id.succ!
|
|
@@ -137,8 +139,7 @@ class PolyrexCreateObject
|
|
|
137
139
|
params={}, id=nil|
|
|
138
140
|
|
|
139
141
|
record = PolyrexSchema.new(child_schema).to_doc
|
|
140
|
-
|
|
141
|
-
record.root.xpath('records/.').each(&:delete)
|
|
142
|
+
record.root.xpath('records/*').each(&:delete)
|
|
142
143
|
|
|
143
144
|
if id then
|
|
144
145
|
@@id.succ!
|
data.tar.gz.sig
CHANGED
|
Binary file
|
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.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
kCdP90rmuxYPx2FK9wqCT5lK8yFA3bIMSD7Ixq7wwOuKkxslzh9X+Ov8koFWZsuY
|
|
32
32
|
aQ9X9T8uD9QBVQ==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date:
|
|
34
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: polyrex-schema
|
|
@@ -39,20 +39,20 @@ dependencies:
|
|
|
39
39
|
requirements:
|
|
40
40
|
- - "~>"
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '0.
|
|
42
|
+
version: '0.4'
|
|
43
43
|
- - ">="
|
|
44
44
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 0.
|
|
45
|
+
version: 0.4.2
|
|
46
46
|
type: :runtime
|
|
47
47
|
prerelease: false
|
|
48
48
|
version_requirements: !ruby/object:Gem::Requirement
|
|
49
49
|
requirements:
|
|
50
50
|
- - "~>"
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '0.
|
|
52
|
+
version: '0.4'
|
|
53
53
|
- - ">="
|
|
54
54
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 0.
|
|
55
|
+
version: 0.4.2
|
|
56
56
|
description:
|
|
57
57
|
email: james@r0bertson.co.uk
|
|
58
58
|
executables: []
|
metadata.gz.sig
CHANGED
|
Binary file
|