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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70cbeaaa6d848f30ca796965fdc317ed12381fa2
4
- data.tar.gz: 3d5484436b1e0e8739c280bbcdec2c63929f8dc1
3
+ metadata.gz: 1c0aa4367f9e5e986c2e0e6ca59cea48b1907352
4
+ data.tar.gz: 8a21630fab51ffd269cc1bc37bba253082ae58e0
5
5
  SHA512:
6
- metadata.gz: e607b14d8d8ffde3b39145784d6b491b16ee3acbfca28b3123a9f4cdf36a94d2bcd72adeb72013c78d83926031674a70403f5539c94a08bfc4f18c5f33e9876e
7
- data.tar.gz: ecd02b4fb305c003cc3c270dd19e850221723b342114b3aec9298d17179f63c03534777b4ebec5b1498a88552faab8202c12b7c19fe7b75295606bdf5eb4495a
6
+ metadata.gz: 711be4559bc3e5d76760f32dc0574e2abe9396e825a4a87aa7571a85b58c0fe01fe905d3dd22905d3fd9afcf0270240515de7d5b3118a2a0f3201577b6428c21
7
+ data.tar.gz: 38ea57bc6e1e0ce43f05fa85177f4fcee06173b58c78faaac5020f227f8ae5a4f5a4780067d8873c156c9e7a1f95e4719cde34a5fcb17192179d9ef223cbf6f9
checksums.yaml.gz.sig CHANGED
Binary file
@@ -150,7 +150,12 @@ class PolyrexObjects
150
150
 
151
151
  eval "#{class_name}.class_eval {
152
152
  def records()
153
- objects = @node.xpath('records/*').map {|record| #{@class_names[i]}.new(record, @@id)}
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
@@ -1,2 +1,5 @@
1
- ��r-�nr��!J#9�1jL{�6�yD�z�C�|<ͺ��q��1A�s�$>���-��_�E
2
- /.���>
1
+ `�L��ѯ�W
2
+ �q����9:�g ņhy=��J�t��I;���M�/�������Э �� �
3
+ ��{2�Jp����>�� qi�� ��^ �c(-+?1x����x9`��]��=�(�1h�&�ω�q���U��
4
+ ~��9��2�O���Y[
5
+ ��%L���K14�=G�Og_���3��#�C��{�l�߅9��d�?
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: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file