polyrex 0.9.8 → 0.9.9

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: 4979f33552bf45fb8dc60ed04bffe094c9f02a56
4
- data.tar.gz: cccc6176ea90f6923151ede50cfc951323128e4c
3
+ metadata.gz: 8d52fc6294fec6958d2f7f1783e4eb67b97aeb11
4
+ data.tar.gz: 522ad5ccf3377f45b79e957ddefb63edd0f82fc2
5
5
  SHA512:
6
- metadata.gz: f587f81bc5490a91335937c48a25112f6894a5e84b1ad4f30603f8b056b7c11e1285abf737e0342d6e837dbaa36ac5cf02bc6d1e4776266e9b78ae984fc64d99
7
- data.tar.gz: ae1e8eaa32d4e6f7bf62cdfbe910a66c8c3e79cff90747381104313d03f696746b91b5786e10c5dafdf86a1e53d0d2e7eb9d96c6ca8d8228c075ec8ea0ee5149
6
+ metadata.gz: 969ddb055a780bc6fb817ea853bdfc6f0c7cd6cf07784e95a57a5eb452e886d22b49ab7805af7d51876f4f199692f299759b74480cbf68ae76acfef91622b9b4
7
+ data.tar.gz: 89052312bbb877a868e34b4f0e37dca9822eb481568bcfaa61e29f13ca3441d6c35228a6b6c53a9e9d736ccdf0900dda7e390711bcf88b98def4da743860f163
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/polyrex.rb CHANGED
@@ -413,11 +413,15 @@ EOF
413
413
  @create = PolyrexCreateObject.new(schema, id: @id_counter)
414
414
  objects = PolyrexObjects.new(schema)
415
415
 
416
- @objects = objects.to_h.inject({}){|r,x| r.merge x[0].downcase => x[-1]}
416
+ h = objects.to_h
417
+
418
+ @objects = h.inject({}){|r,x| r.merge x[0].downcase => x[-1]}
419
+
417
420
  @objects_a = objects.to_a
418
421
 
419
422
  attach_create_handlers(@objects.keys)
420
423
  attach_edit_handlers(@objects)
424
+
421
425
  end
422
426
 
423
427
  def format_line!(a, i=0)
@@ -537,7 +541,7 @@ EOF
537
541
  self.instance_eval(
538
542
  %Q(
539
543
  def #{name.downcase}()
540
- @objects['#{name}'].new(@parent_node.element('.'), id: @id)
544
+ @objects['#{name}'].new(@parent_node, id: @id)
541
545
  end
542
546
  ))
543
547
  end
@@ -574,7 +578,7 @@ EOF
574
578
 
575
579
  if schema then
576
580
  load_handlers(schema)
577
- load_find_by(schema)
581
+ load_find_by(schema) unless schema[/^\w+[^\/]+\/\{/]
578
582
  end
579
583
 
580
584
  @parent_node = @doc.root.element('records')
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.8
4
+ version: 0.9.9
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-07-27 00:00:00.000000000 Z
34
+ date: 2014-08-19 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