polyrex-objects 1.0.2 → 1.0.3

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
  SHA256:
3
- metadata.gz: 9eb76ffd4e8ddad54f3647dea8e42129b62e9dd061567427d0a26ef278f7b702
4
- data.tar.gz: '09c02b3fdd568d488c0ea435ec9d0219d6062f24a56b6c4c0a109f3feb475c00'
3
+ metadata.gz: da07488954f530de3a691642d64bce1e31d6b53b8d412b805d9903ae1d7c26d7
4
+ data.tar.gz: 9ca6debf82bcd3d1d0cc74f599786bcda5cea3eb3864ac0562a1865d799409ba
5
5
  SHA512:
6
- metadata.gz: 91eec345cc37cef858f9a9595ed9edd2221978ef40c44c832a7d313f68d4a06d12c5bac5ad03d65037d0e7ce4677872b6f28154a5559a913ad53f5501c137cd6
7
- data.tar.gz: 04d698f40ffcf686ebc5257671044eae7e180f5c9f132f18b6e6f2ee6c424fa1ad1b978aba1631d0ff758a98511801d071f0196f338ca1abf8325f5350dc8ee7
6
+ metadata.gz: d2ce13c7ad376a76610b155922f1f71fd3412d1f315ff8a6ce4a59ad0b2f84a1dd6b28b4281951ebda012132c0535d6706afb6309300e9a9f425dc804ad47933
7
+ data.tar.gz: 7b36e5e95068bb1a4955c130c3722e6f000348b30d10ea820f33d877b912de6ba555c5f873c8eaa0002721a200c8464f7ba4209c90acf234bb6f3a5c417a5575
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -19,17 +19,21 @@ class PolyrexObjects
19
19
  @fields =[]
20
20
  @node, @debug = node, debug
21
21
 
22
- e = node.element('summary')
23
- @schema = e.text('schema')
24
- @child_schema = @schema =~ /\// ? @schema[/(?<=\/).*/] : @schema
25
- puts '@child_schema:' + @child_schema.inspect if @debug
26
- @record = @schema[/^[^\[]+/]
27
- @fields = @schema[/(?<=\[)[^\]]+/].split(/ *, */)
28
-
29
- attr = @fields.map {|x| [x, e.text(x)] }
30
- build_attributes attr
22
+ if node then
23
+
24
+ e = node.element('summary')
25
+ @schema = e.text('schema')
26
+ @child_schema = @schema =~ /\// ? @schema[/(?<=\/).*/] : @schema
27
+ puts '@child_schema:' + @child_schema.inspect if @debug
28
+ @record = @schema[/^[^\[]+/]
29
+ @fields = @schema[/(?<=\[)[^\]]+/].split(/ *, */)
30
+
31
+ attr = @fields.map {|x| [x, e.text(x)] }
32
+ build_attributes attr
31
33
 
32
- define_singleton_method(@record.to_sym) { self.records}
34
+ define_singleton_method(@record.to_sym) { self.records}
35
+
36
+ end
33
37
 
34
38
  end
35
39
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -30,7 +30,7 @@ cert_chain:
30
30
  ACBQhlVD3BfBw9Dgn9grd+SUOEmogOVDxNTXoL3fdgzYlSbv9YnK3csMPjzbMR6y
31
31
  3O0=
32
32
  -----END CERTIFICATE-----
33
- date: 2018-09-01 00:00:00.000000000 Z
33
+ date: 2018-12-30 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: polyrex-createobject
@@ -38,20 +38,20 @@ dependencies:
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '0.7'
41
+ version: '0.8'
42
42
  - - ">="
43
43
  - !ruby/object:Gem::Version
44
- version: 0.7.0
44
+ version: 0.8.0
45
45
  type: :runtime
46
46
  prerelease: false
47
47
  version_requirements: !ruby/object:Gem::Requirement
48
48
  requirements:
49
49
  - - "~>"
50
50
  - !ruby/object:Gem::Version
51
- version: '0.7'
51
+ version: '0.8'
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 0.7.0
54
+ version: 0.8.0
55
55
  description:
56
56
  email: james@jamesrobertson.eu
57
57
  executables: []
metadata.gz.sig CHANGED
Binary file