polyrex-createobject 0.5.8 → 0.6.0

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: d0c30572ba2d4c45728195c609dee387ae3e5d9b
4
- data.tar.gz: f5e3040b3c863ab8113f7008000f5359fd59e190
3
+ metadata.gz: 755317d34e9225d93629a70a7e24a1b391ec28d7
4
+ data.tar.gz: d668626cceaff9371812edddacf83c7b3e173c99
5
5
  SHA512:
6
- metadata.gz: 6b335b0e069a1f24da1cb4b970d81eab973f487eacb9767d48fa8686f216cee5c94b5bf33f1a2dffb37ca0a36ab1e4483793b2f9f2af52d971b8aecc2a98852f
7
- data.tar.gz: bc9ae9af37142c2836bee957b82707643c8351d9e564335ef4e54b76c56157fbbe23449a9cf135abb565b0873d86e61917dda73086934504e53a55e5c64c2395
6
+ metadata.gz: 578747dfb91100fc330d7003c8f6d09722dd9f24d7c2fb942566fc6a10c16ac524b67350daa9e8cce2ff55ed575ed36c0e2ffc78012715c8e5d6cfa88ef1490b
7
+ data.tar.gz: be97c7dbbd15c623137bc6a83fda294f81621ebdf471f5cfc4267504433fbf561edc18519595185e19c15b735ecb265b390d4ac5f9bfd43064b50217ac586649
checksums.yaml.gz.sig CHANGED
@@ -1 +1 @@
1
- 6Kv
1
+ }Rx6zr�2:?H�l�i~_����'����)�ehYn�`��`:�
@@ -19,9 +19,11 @@ class PolyrexCreateObject
19
19
 
20
20
  raise "missing schema" unless schema
21
21
 
22
- @schema = schema[/\/.*$/][1..-1]
23
- a = PolyrexSchema.new(schema).to_a
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/.').each(&:delete)
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
- #puts 'record : ' + record.xml(pretty: true)
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.5.8
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: 2015-07-30 00:00:00.000000000 Z
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.1'
42
+ version: '0.4'
43
43
  - - ">="
44
44
  - !ruby/object:Gem::Version
45
- version: 0.1.17
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.1'
52
+ version: '0.4'
53
53
  - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: 0.1.17
55
+ version: 0.4.2
56
56
  description:
57
57
  email: james@r0bertson.co.uk
58
58
  executables: []
metadata.gz.sig CHANGED
Binary file