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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/polyrex-objects.rb +14 -10
- metadata +6 -6
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da07488954f530de3a691642d64bce1e31d6b53b8d412b805d9903ae1d7c26d7
|
4
|
+
data.tar.gz: 9ca6debf82bcd3d1d0cc74f599786bcda5cea3eb3864ac0562a1865d799409ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2ce13c7ad376a76610b155922f1f71fd3412d1f315ff8a6ce4a59ad0b2f84a1dd6b28b4281951ebda012132c0535d6706afb6309300e9a9f425dc804ad47933
|
7
|
+
data.tar.gz: 7b36e5e95068bb1a4955c130c3722e6f000348b30d10ea820f33d877b912de6ba555c5f873c8eaa0002721a200c8464f7ba4209c90acf234bb6f3a5c417a5575
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex-objects.rb
CHANGED
@@ -19,17 +19,21 @@ class PolyrexObjects
|
|
19
19
|
@fields =[]
|
20
20
|
@node, @debug = node, debug
|
21
21
|
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
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
|
-
|
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.
|
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-
|
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.
|
41
|
+
version: '0.8'
|
42
42
|
- - ">="
|
43
43
|
- !ruby/object:Gem::Version
|
44
|
-
version: 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.
|
51
|
+
version: '0.8'
|
52
52
|
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: 0.
|
54
|
+
version: 0.8.0
|
55
55
|
description:
|
56
56
|
email: james@jamesrobertson.eu
|
57
57
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|