polyrex-createobject 0.6.0 → 0.6.1
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-createobject.rb +4 -4
- metadata +19 -19
- 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: b8df933a84a5bc4b2f260cb13a5d35e5c4adee7e
|
4
|
+
data.tar.gz: 74f16989cc0631bda68d0794bd8ee4ddedb17b6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 105618f26c0e8972516adbe752a777633b30d4c029b75d48d791fa8552fc8948e12208e5519052c5618d0689311f3d2daa03a371fb6866f10d2e1ae697972c1f
|
7
|
+
data.tar.gz: 6b5a666779aa1af289f21d0dfca8006c52e4ce37ef1e9d1b92ea037c6afa7695ca8789119624541fe3ca8315825c8a72a279af521d8836f26249d88f129ddac2
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/polyrex-createobject.rb
CHANGED
@@ -13,13 +13,12 @@ class PolyrexCreateObject
|
|
13
13
|
attr_reader :obj
|
14
14
|
|
15
15
|
|
16
|
-
def initialize(schema, id: '1')
|
16
|
+
def initialize(schema, id: '1', order: 'ascending')
|
17
17
|
|
18
|
-
@@id = id
|
18
|
+
@@id, @order = id, order.to_s
|
19
19
|
|
20
20
|
raise "missing schema" unless schema
|
21
21
|
|
22
|
-
#jr020516 @schema = schema[/\/.*$/][1..-1]
|
23
22
|
@schema = schema[/\/(.*)$/,1]
|
24
23
|
|
25
24
|
a = PolyrexSchema.new(schema).to_a
|
@@ -109,7 +108,8 @@ class PolyrexCreateObject
|
|
109
108
|
end
|
110
109
|
end
|
111
110
|
|
112
|
-
|
111
|
+
method_name = @order == 'ascending' ? :add : :prepend
|
112
|
+
parent_node.method(method_name).call record.root
|
113
113
|
|
114
114
|
end
|
115
115
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: polyrex-createobject
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -12,26 +12,26 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
|
14
14
|
YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
|
15
|
-
|
15
|
+
8ixkARkWAmV1MB4XDTE3MTIwNTIyMDcyNFoXDTE4MTIwNTIyMDcyNFowSDESMBAG
|
16
16
|
A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
|
17
17
|
EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
18
|
+
ggEBAKjIj8bC91Er9EyfZHHqCCFuQjt4TqFgM9s+dIejeHeQIcthusBGjHG8T/PP
|
19
|
+
PJpkuVqei7449NgyqF4L1sjjkvACAJ/FeVl8boiYS3sO0DLWYYF0ictcgaaFkLGo
|
20
|
+
0V/ADVQcIB6zawXU6Y5cW8RLWNXOZB39jlQt/mU5Rtbiee3dHMoBpOPiPNp+pDDi
|
21
|
+
Ebxpf5mCR0itpHmIeEnnV6CnSf4kmoBd0YjFDa9gYIOQMdHiIS7eCiSc+jGAlr7C
|
22
|
+
i/CP66YwrjpxXPOK9bxT6I8BCfy1BFzgDQx18V/lhhkHnDR39FdISsbiL40gC5JO
|
23
|
+
5zPrF6qaXOK3FvTWWTeWThl2XP0CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
|
24
|
+
DwQEAwIEsDAdBgNVHQ4EFgQUjlkpkaESsW1b06E3BLmbjC7UbaswJgYDVR0RBB8w
|
25
25
|
HYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1h
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
26
|
+
c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAcl3USn32
|
27
|
+
WycXnNMLpD7vUaqz4W3YMby1Bia143KIaTbMxtko9DZRCaMx5jf4eYa7KU2jxP2s
|
28
|
+
PfTUyAWJ8nNdv+NgI2s1jEPz7s4js+exqZoNYPjb/mZsEHTcuLRAHblLpq6KmnRf
|
29
|
+
FlV8ePvsC4VTtTfY/wvyqXI23Y1xS1H7f5tiZArGTyGMDJo/FbQItgGbiX07iRuN
|
30
|
+
A6aK9h2o6litmnn2qAxpYhXVKoJ9xOU0GnZdF+pPjFoUsCxvDOHp8EtVJsLdJQWR
|
31
|
+
jRgMXtv8iLFoWeilpwsM5UFNluVBef95Iw6oXMaxdoZaPfZ8KSp+IJe1ct8JNDmi
|
32
|
+
1uMwHDSm6dYjQA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date:
|
34
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: polyrex-schema
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 0.4.2
|
56
56
|
description:
|
57
|
-
email: james@
|
57
|
+
email: james@jamesrobertson.eu
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
80
|
version: '0'
|
81
81
|
requirements: []
|
82
82
|
rubyforge_project:
|
83
|
-
rubygems_version: 2.
|
83
|
+
rubygems_version: 2.6.13
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: polyrex-createobject
|
metadata.gz.sig
CHANGED
Binary file
|