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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 755317d34e9225d93629a70a7e24a1b391ec28d7
4
- data.tar.gz: d668626cceaff9371812edddacf83c7b3e173c99
3
+ metadata.gz: b8df933a84a5bc4b2f260cb13a5d35e5c4adee7e
4
+ data.tar.gz: 74f16989cc0631bda68d0794bd8ee4ddedb17b6f
5
5
  SHA512:
6
- metadata.gz: 578747dfb91100fc330d7003c8f6d09722dd9f24d7c2fb942566fc6a10c16ac524b67350daa9e8cce2ff55ed575ed36c0e2ffc78012715c8e5d6cfa88ef1490b
7
- data.tar.gz: be97c7dbbd15c623137bc6a83fda294f81621ebdf471f5cfc4267504433fbf561edc18519595185e19c15b735ecb265b390d4ac5f9bfd43064b50217ac586649
6
+ metadata.gz: 105618f26c0e8972516adbe752a777633b30d4c029b75d48d791fa8552fc8948e12208e5519052c5618d0689311f3d2daa03a371fb6866f10d2e1ae697972c1f
7
+ data.tar.gz: 6b5a666779aa1af289f21d0dfca8006c52e4ce37ef1e9d1b92ea037c6afa7695ca8789119624541fe3ca8315825c8a72a279af521d8836f26249d88f129ddac2
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- parent_node.add record.root
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.0
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
- 8ixkARkWAmV1MB4XDTE1MDczMDEzNTk1OFoXDTE2MDcyOTEzNTk1OFowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE3MTIwNTIyMDcyNFoXDTE4MTIwNTIyMDcyNFowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBALTnOy4FSi7s6f5oX7HOgMay1FEWUrtM/mhU1M2niyK5eku1BWTGOFYTWVA2
19
- JAb0w4Hv9tXlHCBSQq0mDEX1IxgzJKpjQqyb7ZiY90jDGwepAoZD7s3/yXtnezA3
20
- Fvfl4F8S8m1MJ3BTtJ+nNrAXIA63fsBIRPvMDhjmCmd1PDLl7rmp/SS6+QvHQ8+m
21
- sZAXa3pakWYZ4cOx8PyAO+Fv1SydAc6j53pBuTbo18elvIo+7SpZ9FIkvsfUm41j
22
- o23g2aW38zciujRqnwT8alepW0DNFPPHNsIOXPfWPnNAd05YIZ/VcKh8eeeFfQhi
23
- tR3ZYoloSQW3/IKmdIFjCnRwScECAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
- DwQEAwI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RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAcl3USn32
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: 2016-05-02 00:00:00.000000000 Z
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@r0bertson.co.uk
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.4.8
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