polyrex 0.9.11 → 0.9.12

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: 56da05741bfec625a957286d9032dec5e4166824
4
- data.tar.gz: 5c5e29296c679d791da7b7f21dc70441c11cf914
3
+ metadata.gz: afdf9d69e8ab31c3285880c695ebfb157698ac7f
4
+ data.tar.gz: 2b0a96745c0630033d8e22ee376bd0afad23b885
5
5
  SHA512:
6
- metadata.gz: e2f309320aebbdc8ac7fc1d5bc41c9cc311f95dc10120b5741501128d1b0b4380e850b0f0258ead5e1fa71011ab499452c7bcb6df0169e2e1b682d4d6e3c75d6
7
- data.tar.gz: 931667c885fefd86b2a15793581a13044f54a1cc8576e484dfeb9727bc151fd3ff4abe49bc515b0ca1177607827a7108f00522a16733f86d5f8be9e80921cf8f
6
+ metadata.gz: e16d7a48c390f9888cf99925383ef350bf12055a74b3b8a7d5cd7b514e1940b62ec7f436c5df4e743118376b5b4ba01886728edd92edc4cbfc4885088553a40b
7
+ data.tar.gz: 01fbf2f47282d7d7c06bccf277e721cc3fa559c9b3b2b865e1e42f19aed87589db538a434bd771654a9321783224b238293595a1c94fb6733cb6b6e55dd58c3c
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/polyrex.rb CHANGED
@@ -412,13 +412,13 @@ EOF
412
412
 
413
413
  @create = PolyrexCreateObject.new(schema, id: @id_counter)
414
414
  objects = PolyrexObjects.new(schema)
415
-
416
415
  h = objects.to_h
416
+
417
417
  @objects = h.inject({}){|r,x| r.merge x[0].downcase => x[-1]}
418
- @objects_a = objects.to_a
419
418
 
419
+ @objects_a = objects.to_a
420
420
  attach_create_handlers(@objects.keys)
421
- attach_edit_handlers(@objects)
421
+ #attach_edit_handlers(@objects)
422
422
 
423
423
  end
424
424
 
@@ -623,7 +623,7 @@ EOF
623
623
  xpath = %Q(@doc.root.element("//%s[summary/%s='\#\{val\}']")) % [class_name, method_name]
624
624
  "def find_by_#{class_name}_#{method_name}(val)
625
625
  @parent_node = #{xpath}
626
- @parent_node ? self.#{class_name} : nil
626
+ @parent_node ? @objects['#{class_name}'].new(@parent_node, id: @id) : nil
627
627
  end"
628
628
  end
629
629
  end
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.11
4
+ version: 0.9.12
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-09-20 00:00:00.000000000 Z
34
+ date: 2014-10-02 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: polyrex-schema
metadata.gz.sig CHANGED
Binary file