rexle 1.0.38 → 1.0.39

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: 72d41a42bf9b3f53bf20c2645f87f031629df369
4
- data.tar.gz: 69c8b4d8aafb74eb319b789ccd714b39420d33d8
3
+ metadata.gz: 2e589e082069ce23447c76f254b75e33e409aba7
4
+ data.tar.gz: ab9fbcd70eff7f41d4ca9e5fc0da4db4af36d94b
5
5
  SHA512:
6
- metadata.gz: 7209a7e86d34893bd6169c58cf5e2eedc87377563f5ec37c405e053e46db6ba1429355a4952bbbaf9f0be3bd9f81ee12a7af92f5372e379ff768fb25528cf609
7
- data.tar.gz: 340846b79282900dcb1abbca5122b44acdfbacfd30cd4cb76b168e82ebdce662024097d88c53a6b3fdd533479385eaf91599cd9401a8fb7226a821eb8012c88a
6
+ metadata.gz: 7285600b439cf7b305440d1e81f0fbf88e407d1e84c58c2c149b7c19dca87b287e88f1a2bcca84546f7c22e4875cb15443bef0f4adab9c8aaa2e924d6fba27a4
7
+ data.tar.gz: 01a117b0356ed65faf3fa215c5581f9f032dbc05c59e4d8561ef724d132321a13b89743b7e98cfd64a3d3d95c1143a65f75e7a2b0ecf2af882683d741b1b12c3
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -12,6 +12,7 @@ include REXML
12
12
 
13
13
  # modifications:
14
14
 
15
+ # 25-Dec-2014: bug fix: script tag is now formatted with expected attributes
15
16
  # 21-Dec-2014: HTML related: A script tag will no longer be a self-closing tag.
16
17
  # 20-Dec-2014: bug fix: Fixes an uncommon XPath selection.
17
18
  # see http://www.jamesrobertson.eu/bugtracker/2014/dec/18/xpath-returns-an-empty-list.html
@@ -160,8 +161,6 @@ module XMLhelper
160
161
  "<!--%s-->" % x.value
161
162
  when '!['
162
163
  "<![CDATA[%s]]>" % x.value
163
- when 'script'
164
- "<script>%s</script>" % x.value
165
164
  else
166
165
 
167
166
  a = x.attributes.to_a.map do |k,v|
@@ -172,7 +171,7 @@ module XMLhelper
172
171
 
173
172
  if (x.value and x.value.length > 0) \
174
173
  or (x.children and x.children.length > 0 \
175
- and not x.children.is_an_empty_string?) then
174
+ and not x.children.is_an_empty_string?) or x.name == 'script' then
176
175
 
177
176
  out = ["<%s>" % tag]
178
177
  #out << x.value unless x.value.nil? || x.value.empty?
@@ -223,8 +222,6 @@ module XMLhelper
223
222
  "<!--%s-->" % x.value
224
223
  when '!['
225
224
  "<![CDATA[%s]]>" % x.value
226
- when 'script'
227
- "<script>%s</script>" % x.value
228
225
  else
229
226
  #return ["<%s/>" % x.name] if x.value = ''
230
227
  a = x.attributes.to_a.map do |k,v|
@@ -236,7 +233,7 @@ module XMLhelper
236
233
 
237
234
  if (x.value and x.value.length > 0) \
238
235
  or (x.children and x.children.length > 0 \
239
- and not x.children.is_an_empty_string?) then
236
+ and not x.children.is_an_empty_string?) or x.name == 'script' then
240
237
 
241
238
  ind1 = (x.children and x.children.grep(Rexle::Element).length > 0) ?
242
239
  ("\n" + ' ' * indent) : ''
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.38
4
+ version: 1.0.39
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-12-21 00:00:00.000000000 Z
34
+ date: 2014-12-25 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 @@
1
- N���^�jg���F;.�qGpl)=U!
2
- w<QB���7)����iv�5��"s#v;uȶ�ޱ/��C�¥�.�P�9�]�(CA#VE�/���L}4���Pʳ��JJ��-t<�: ��Wf�$G�����'�8�B��~���������&4�*`��,����3H��2�`�nT�� ���0.q�5�����&�:��2¯�n��~���7�.�?���,�3��y�?�u�
1
+ ��Y�^�qtno���� �����{v_C6��;���