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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/polyrex.rb +7 -3
- metadata +2 -2
- 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: 8d52fc6294fec6958d2f7f1783e4eb67b97aeb11
|
4
|
+
data.tar.gz: 522ad5ccf3377f45b79e957ddefb63edd0f82fc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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.
|
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-
|
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
|