polyrex 0.9.2 → 0.9.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: 013bb5179a22169991d73399b03f9c698c6f8c45
4
- data.tar.gz: 58b0c25df6492abd6827b94fa55e9f4e91645b14
3
+ metadata.gz: b53af70d994b7b591019811bbe16377d79556d42
4
+ data.tar.gz: 2ed291ffa7a321f4ca84cfefec2eab715f033d38
5
5
  SHA512:
6
- metadata.gz: c95f20a89040cae9ec260e960627bff7c20f016c539e94c6951f5bd6968e9e1a8ab3023ddcc01197ea17bc62e1e96a51f9355b3bf64c49c958115b51c82e67c6
7
- data.tar.gz: fe48dda760665c06aec8976930063bdbb331f2273c522514ebae19fe0724e01a5d63f918b3e31b92b3730f7421c00f1363c45090c3bcfa355e4fb4abcbf223b4
6
+ metadata.gz: 21d910b4cd5c08a8184232c571db5aab9ca90ab1586a91c7a79c3bd4a5c171a66edebb538d72c3e794e2458afe4588e645454d7e82617556b4b2615a758fe7f2
7
+ data.tar.gz: d8dbd319d0261bd8beb5060a96f824c6e3d78d1816054a0cb5c85441228f23283adacdb5d0466fa71a74662dac426257aa51385aa5d7031bc1cf65cb4478c50a
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/polyrex.rb CHANGED
@@ -122,6 +122,7 @@ class Polyrex
122
122
 
123
123
  def find_by_id(id)
124
124
  @parent_node = @doc.root.element("//[@id='#{id}']")
125
+ @objects[@parent_node.name].new(@parent_node, @id)
125
126
  end
126
127
 
127
128
  def id(id)
@@ -403,7 +404,7 @@ EOF
403
404
  @create = PolyrexCreateObject.new(schema, @id_counter)
404
405
 
405
406
  objects = PolyrexObjects.new(schema, @id_counter)
406
- @objects = objects.to_h
407
+ @objects = objects.to_h.inject({}){|r,x| r.merge x[0].downcase => x[-1]}
407
408
  @objects_a = objects.to_a
408
409
 
409
410
  attach_create_handlers(@objects.keys)
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  wbQnaFmJMPFyXo9Yh/95QJEinnBsM0Yk8nJhmcChjdCpQL5243BjgzVEjHI1Ouxe
32
32
  SmUIljyExpxiHQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-02-21 00:00:00.000000000 Z
34
+ date: 2014-03-20 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: polyrex-schema
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  requirements: []
160
160
  rubyforge_project:
161
- rubygems_version: 2.1.11
161
+ rubygems_version: 2.0.14
162
162
  signing_key:
163
163
  specification_version: 4
164
164
  summary: polyrex
metadata.gz.sig CHANGED
Binary file