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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 759c2ebf0fad8915f2425776f0ea8a45985d6ea1
4
- data.tar.gz: f6e37a75a57f1af788f78386bf9f7281ebe74116
2
+ SHA256:
3
+ metadata.gz: 6a0100bbc251256c2e39b09d24a49d832e2a13669cde8710ffaed7f24362a9cf
4
+ data.tar.gz: 816fae81e47e63635463b891c69bc481617b1081b9e588b23ba6d71b9a51bd82
5
5
  SHA512:
6
- metadata.gz: 63cc059c5a949654c38d2125ecb5fa7ccb1684557d6f5a72a107a23d1df6eda7fc9c402f3917c99158823044737930e8eb9b4ee67cb30858753eeb796c5901dd
7
- data.tar.gz: 6aab2e6ef430740a006995d2235bdd239fdf7fbbe6ae84cc9cdfe99ad553c710525e5d05e93e5f57c06770b88e06e612fe4950b58db3a3bdb4b31d33902c3fd1
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 = ' ' * indent
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.0
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
- MIIDXjCCAkagAwIBAgIBATANBgkqhkiG9w0BAQUFADAsMSowKAYDVQQDDCFnZW1t
14
- YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMTgwMTIzMTk1NTUyWhcN
15
- MTkwMTIzMTk1NTUyWjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
16
- cnRzb24vREM9ZXUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCfcRyj
17
- uC1TEER34MG0mvDhF1++ORbT0q+SOIqtl6L0J3of/ehkq7za8tFnM9/TbsR1lkA0
18
- dqKG7C1+ngDOZPJx8z2m3yWOEiLqtGFgr+UuOaHgQ/F1gGUpbPpUr9v5ZzyAII++
19
- jNcz2Fbx/PCoN30l7SWver75g1RiM8ywReBk9vGBoUemeGD/76txu0txz8emEv+3
20
- A6o6FclIu7ZUSqtv/Pl5iPNty6GRH40GoazxXk2SgSdT6vSINvzQvY4hPsO6QhEf
21
- 0loujEuSyAKmmITmFYpXK4p534q51cnoONgoIBe6jeI8H6nn+S3p6H77ocXZsYeT
22
- CK3Dov1TyBp3R5+ZAgMBAAGjgYowgYcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
23
- HQYDVR0OBBYEFFh/AT220TsojYoCyiMim+axsTb/MCYGA1UdEQQfMB2BG2dlbW1h
24
- c3RlckBqYW1lc3JvYmVydHNvbi5ldTAmBgNVHRIEHzAdgRtnZW1tYX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KnLQT82rOOim63WpV1omjI2wntI
23
+ 3649jgVanyD9nFF1mzC6yZ6v7bNNFkErl4EwR/iZLc3UQAaW3Rsxth64YjlyBkVk
24
+ IQ/0ikL1k/7GMsa8lANYPmzkGjIVbE9HDcVRb3ekr3gvofTZeiLyOlJnHK0CAwEA
25
+ AaOBijCBhzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUm+8k9u5T
26
+ zCv6mCmW5ORCeODZCDEwJgYDVR0RBB8wHYEbZ2VtbWFzdGVyQGphbWVzcm9iZXJ0
27
+ c29uLmV1MCYGA1UdEgQfMB2BG2dlbW1hc3RlckBqYW1lc3JvYmVydHNvbi5ldTAN
28
+ BgkqhkiG9w0BAQsFAAOCAYEALe/oOWiKfGtIoTBBpWxlot7yZN/ktmAuy4iMlvUC
29
+ /1GVuSYJ3KvTj99upJuxxZq0ZGsjGB/RsWxALOj+XfyKzqpZy6g94deoIOzC9Gz2
30
+ 4Nsm9SfSmz4RZYjfR1f0hC7btgjILDRTdTju857fTNXQl+LNhlP+2I04jovZ+TH5
31
+ qVc0U/78+kh66qs4SxW7qi6nsJLHyXQarMHpFKweiTdTSTfm2J6fWbpRRwNNSQyK
32
+ Rot38OIKiv9661SOFcnXssSOVYdGyIc8HflVSHlgpm9c6Nx28SHKxK+Mie4p9+sD
33
+ SfJnbbA2L5mxqbCc/lnEZa1A8/aGS+hPh7TFgdm4KOfqFsyXRKEfzpO10POnX7vK
34
+ wB3OaTGW/pIFe2/f3c2zgZeh7qNEt1hMgt1uZ13aGMRr4bavs25IQ8awINtEWZwp
35
+ 2Ovqay+lTk2xyqAKO90ISEMK8ptdvNnguXgOBDLRpm1sDzbV4wQChMgHn8LxY6/y
36
+ 1ozNruUKzR3aZHW4SJ4yIMlW
32
37
  -----END CERTIFICATE-----
33
- date: 2018-01-23 00:00:00.000000000 Z
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
- rubyforge_project:
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