polyrex-objects 0.7.2 → 0.7.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/lib/polyrex-objects.rb +6 -1
- data.tar.gz.sig +5 -2
- metadata +1 -1
- 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: 1c0aa4367f9e5e986c2e0e6ca59cea48b1907352
|
4
|
+
data.tar.gz: 8a21630fab51ffd269cc1bc37bba253082ae58e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 711be4559bc3e5d76760f32dc0574e2abe9396e825a4a87aa7571a85b58c0fe01fe905d3dd22905d3fd9afcf0270240515de7d5b3118a2a0f3201577b6428c21
|
7
|
+
data.tar.gz: 38ea57bc6e1e0ce43f05fa85177f4fcee06173b58c78faaac5020f227f8ae5a4f5a4780067d8873c156c9e7a1f95e4719cde34a5fcb17192179d9ef223cbf6f9
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/polyrex-objects.rb
CHANGED
@@ -150,7 +150,12 @@ class PolyrexObjects
|
|
150
150
|
|
151
151
|
eval "#{class_name}.class_eval {
|
152
152
|
def records()
|
153
|
-
|
153
|
+
|
154
|
+
classes = {#{@class_names.map{|x| %Q(%s: %s) % [x[/[^:]+$/].downcase,x]}.join(',')} }
|
155
|
+
|
156
|
+
objects = @node.xpath('records/*').map do |record|
|
157
|
+
classes[record.name.to_sym].new(record, @@id)
|
158
|
+
end
|
154
159
|
|
155
160
|
def objects.records=(node); @node = node; end
|
156
161
|
def objects.records(); @node; end
|
data.tar.gz.sig
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|