rexle-builder 0.6.0 → 1.0.0
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/rexle-builder.rb +3 -3
- metadata +24 -24
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 547c1b1c12078cb9ed8bcfe6d9f4593d6165a3c7ade4024c643a16da9e4a7a13
|
4
|
+
data.tar.gz: 6c5cc21289dfc25b269bdf6be6a13653f40b992c9abcb0264b8dbe703be4b345
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f321466d5a124f1d6884b2e9610020e4271e4467fe0f061d8b63376c211bba466604a4dc3788952e808bab880b352e2bc9a0adaae568f2db70f59b47dc9c422
|
7
|
+
data.tar.gz: 1fa96ebfe99b94b071e9dbbd9c729b4a17b54230cebfe58650b803247db438c432899bf6a5edcdf29933fd892562e4be9af4640ad10367fbf87c726afb8953e1
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rexle-builder.rb
CHANGED
@@ -20,7 +20,7 @@ class RexleBuilder
|
|
20
20
|
|
21
21
|
end
|
22
22
|
|
23
|
-
def initialize(obj=nil, debug: false)
|
23
|
+
def initialize(obj=nil, root: 'root', debug: false)
|
24
24
|
|
25
25
|
@debug = debug
|
26
26
|
@a = []
|
@@ -32,7 +32,7 @@ class RexleBuilder
|
|
32
32
|
key = obj.keys.first
|
33
33
|
|
34
34
|
if obj.length > 1 or obj[key].is_a?(Array) or obj[key].is_a?(String) then
|
35
|
-
self.root { buildx obj}
|
35
|
+
self.send(root.to_sym) { buildx obj}
|
36
36
|
else
|
37
37
|
self.send(key.to_sym) {buildx obj[key]}
|
38
38
|
end
|
@@ -59,7 +59,7 @@ class RexleBuilder
|
|
59
59
|
a = [
|
60
60
|
sym.to_s,
|
61
61
|
attributes,
|
62
|
-
*Rexle.new("<root>%s</root>" % value).to_a[2..-1]
|
62
|
+
*Rexle.new("<root>%s</root>" % value, debug: @debug).to_a[2..-1]
|
63
63
|
]
|
64
64
|
|
65
65
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexle-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -11,31 +11,31 @@ cert_chain:
|
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjAwNTAxMTgyMTU4WhcN
|
15
|
+
MjEwNTAxMTgyMTU4WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQDXvcGF
|
17
|
+
KAsFoSJW5WibJ3BCxoe5RyUNGARFsSo+Y755n9YmTEoL9jCNkxHCyZAPJSXeZJlV
|
18
|
+
jM1LqYD6n9MW73o0B7vy9Rq1n49cWIliXYrkIvhLlS7qviVg+ij8/o36LVeK4/4d
|
19
|
+
Z5d+jRyr6tovVn6Hlqs8qoMdI4lOj1f3yb2kFhbkW2Zx/O+4TMFvQT5/pc0/JcMM
|
20
|
+
b4SjzEZ8/aam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SbA3+v9a2xsyZzVXKYADidr
|
34
|
+
LxGza+bzBCYgXoht0vSUR82d8uH+YdngvcK99G+3T8W53ikFDF2wS0l57yF9jfks
|
35
|
+
rC7AiWdayhS+wLWd/i/UtpYL25JcgKdaq24E/7+vB1EPRzPsDJrx8AzYo759WDob
|
36
|
+
o0Nd2o91GHfpqyL9snw6G3Dl
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date: 2020-05-01 00:00:00.000000000 Z
|
39
39
|
dependencies: []
|
40
40
|
description:
|
41
41
|
email: james@jamesrobertson.eu
|
metadata.gz.sig
CHANGED
Binary file
|