xml_to_sliml 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/xml_to_sliml.rb +3 -2
- metadata +27 -23
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6a0100bbc251256c2e39b09d24a49d832e2a13669cde8710ffaed7f24362a9cf
|
4
|
+
data.tar.gz: 816fae81e47e63635463b891c69bc481617b1081b9e588b23ba6d71b9a51bd82
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bd24bf48b57a43374b68965354ea599e7f28763f071f99af21c077d4c39fc79f5b31c5bd708be0fe46886f3ea3fde49e34925764b7cf98b0c60b1b73690ba352
|
7
|
+
data.tar.gz: 1f63a1f63c5856115bb44257e764a89b2d23480584bbea96c3bff66f0c9b9534b9ae98b7673b3c8b5e2fcf1b2564548f2e421208190a436d89f1d18c668e1b89
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/xml_to_sliml.rb
CHANGED
@@ -9,8 +9,9 @@ class XmlToSliml
|
|
9
9
|
|
10
10
|
attr_reader :to_s
|
11
11
|
|
12
|
-
def initialize(obj)
|
12
|
+
def initialize(obj, spacer: ' ')
|
13
13
|
|
14
|
+
@spacer = spacer
|
14
15
|
@to_s = ''
|
15
16
|
doc = (obj.is_a?(Rexle) or obj.is_a?(Rexle::Element)) ? obj : Rexle.new(obj)
|
16
17
|
@to_s << scanbuild(doc.to_a)
|
@@ -41,7 +42,7 @@ class XmlToSliml
|
|
41
42
|
text = children
|
42
43
|
end
|
43
44
|
|
44
|
-
pad =
|
45
|
+
pad = @spacer * indent
|
45
46
|
|
46
47
|
buffer = pad + name
|
47
48
|
buffer << ' ' + fa(attributes) if attributes.any?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xml_to_sliml
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -10,27 +10,32 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTkwNzE3MTAyNzU3WhcN
|
15
|
+
MjAwNzE2MTAyNzU3WjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQCr/ifA
|
17
|
+
f486yROWcRE4PcM2fmutWMRuVBTfFneeUADQBoftxkk/7IRPtvJOke05hu/HZbMx
|
18
|
+
Yx4/E7Yx9Ppl7tCqjXMhp6VKjiUufUd0/R23RB3gMw0Umdq8DcAuOakdf1I8ug4U
|
19
|
+
cLKZJ+6jsNIfikmruLETgeeFGs670s43hIBv5SsOaAl5538zsan6E2eJSTdU9QW5
|
20
|
+
xBpXCAj6il0LmCTMEki1scYdRLSGwh3FOJ7j1FgaG1se1G5tvI/usGWqy/pyhhsi
|
21
|
+
lxprahDSGHn1sfWzktp1FvcId74tz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ruUKzR3aZHW4SJ4yIMlW
|
32
37
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
38
|
+
date: 2019-07-17 00:00:00.000000000 Z
|
34
39
|
dependencies:
|
35
40
|
- !ruby/object:Gem::Dependency
|
36
41
|
name: rexle
|
@@ -78,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
83
|
- !ruby/object:Gem::Version
|
79
84
|
version: '0'
|
80
85
|
requirements: []
|
81
|
-
|
82
|
-
rubygems_version: 2.6.13
|
86
|
+
rubygems_version: 3.0.1
|
83
87
|
signing_key:
|
84
88
|
specification_version: 4
|
85
89
|
summary: Transforms XML into Sliml.
|
metadata.gz.sig
CHANGED
Binary file
|