rexle 1.0.32 → 1.0.33

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: 02551cf709ab06d56b76cdfafeee11ef623911fb
4
- data.tar.gz: 367e11bea0ac996b89798fad66db4fde93315234
3
+ metadata.gz: b34d90b45309e692b90eb0a19185435a12975608
4
+ data.tar.gz: f815c26ac2c68b40cfe29819dd18d1e870618918
5
5
  SHA512:
6
- metadata.gz: 8c5dae689ec2e4b60703f03906e373cfea103dba6105d6da111504a89055a8f668a89beb10747c08eea3fbb0248da2bd6e68147f961920ff86b7f4dad3feff3c
7
- data.tar.gz: f604154e457877a071fb52ca8588ed0238207d292817bc177a9d5f5b804e5bd247f97f112dff3410a26dc7c209c6c40b4e86cecb86179b1beb3f9f86c13f088e
6
+ metadata.gz: 64a7659850b524e95275eef9a13d810e9c116593d6f6597b16d764026fd55c72a20ac73c23de46745645d3ebce439a10bdca97619433b68c2d00ccbbba40f382
7
+ data.tar.gz: 06a93ae6ac55e88a51c86e4f37612bac1e8576651ea4b2e411521e93c5de5d8068ee3bfddee0fbdd04468a2c02ab270e269c1a28637d21859377e85b06ac811c
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -12,6 +12,9 @@ include REXML
12
12
 
13
13
  # modifications:
14
14
 
15
+ # 27-Oct-2014: bug fix: Now Checks for an array instead of a string when
16
+ # outputting xml attribute values to get
17
+ # around nil values
15
18
  # 26-Oct-2014: bug fix: XML output containing a class attribute,
16
19
  # now appears as a string. Empty nodes are
17
20
  # now displayed as self-closing tags.
@@ -100,12 +103,14 @@ module XMLhelper
100
103
  def doc_print(children, declaration=true)
101
104
 
102
105
  body = (children.nil? or children.empty? or children.is_an_empty_string? ) ? '' : scan_print(children).join
103
- a = self.root.attributes.to_a.map do |k,v|
104
- "%s='%s'" % [k,(v.is_a?(String) ? v : v.join(' '))]
106
+
107
+ a = self.root.attributes.to_a.map do |k,v|
108
+ "%s='%s'" % [k,(v.is_a?(Array) ? v.join(' ') : v)]
105
109
  end
110
+
106
111
  xml = "<%s%s>%s</%s>" % [self.root.name, a.empty? ? '' : \
107
112
  ' ' + a.join(' '), body, self.root.name]
108
-
113
+
109
114
  if self.instructions and declaration then
110
115
  processing_instructions() + xml
111
116
  else
@@ -118,7 +123,7 @@ module XMLhelper
118
123
  body = pretty_print(children,2).join
119
124
 
120
125
  a = self.root.attributes.to_a.map do |k,v|
121
- "%s='%s'" % [k,(v.is_a?(String) ? v : v.join(' '))]
126
+ "%s='%s'" % [k,(v.is_a?(Array) ? v.join(' ') : v)]
122
127
  end
123
128
 
124
129
  ind = "\n "
@@ -151,8 +156,9 @@ module XMLhelper
151
156
  else
152
157
 
153
158
  a = x.attributes.to_a.map do |k,v|
154
- "%s='%s'" % [k,(v.is_a?(String) ? v : v.join(' '))]
159
+ "%s='%s'" % [k,(v.is_a?(Array) ? v.join(' ') : v)]
155
160
  end
161
+
156
162
  tag = x.name + (a.empty? ? '' : ' ' + a.join(' '))
157
163
 
158
164
  if (x.value and x.value.length > 0) \
@@ -211,7 +217,7 @@ module XMLhelper
211
217
  else
212
218
  #return ["<%s/>" % x.name] if x.value = ''
213
219
  a = x.attributes.to_a.map do |k,v|
214
- "%s='%s'" % [k,(v.is_a?(String) ? v : v.join(' '))]
220
+ "%s='%s'" % [k,(v.is_a?(Array) ? v.join(' ') : v)]
215
221
  end
216
222
  a ||= []
217
223
  tag = x.name + (a.empty? ? '' : ' ' + a.join(' '))
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rexle
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.32
4
+ version: 1.0.33
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  UOGKUMV5RApHDnC0ywMYNe0HK7qMSTP5YLKs8JUjNxpc5jl8+o3D3sHkNN4DzbQm
32
32
  jVfzDZ+niKvAUA==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-10-26 00:00:00.000000000 Z
34
+ date: 2014-10-27 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexleparser
metadata.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- K����Eg~�9�+pju������bti�Ȧ zDՇ�lLǼ��)YIaRi<��( g���z47���u��q�3c#���ޗi-Z��.4^��҂�
2
- ��x��3%l%)�:���q��mM ����;gj�%S.N�)�мo�'�J6t*/z;��B-ii>�):�w�>u��XA�X/��2< ��QP���S��35o�<�[H������4>+�Okb�3m�M,��҈���mx���hSё�s�\F9?��
1
+ ����mZ���z�Ɗ O�P�t%GpxU��la_'���1�����#���`B'0�իuw���D5w
2
+ ʶ��O�0S.jռ����}�ܠ�.ZW@nA�p=;�u��p�R�CY���N��x����j��.p�wrG��P,q512�ᘱ�>��c��S�!�7y��w��?P�;���{�^@�I��N��` ��DH��O���z�"��uaih��s�րڈ�����[�֥�75��ä���ױ�