rexle 1.0.3 → 1.0.4

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: b771cb503ba3e50025cb5a812bf4b65cec8ce665
4
- data.tar.gz: fb6c2a419c3eb3655e4d43beb00e5f698be1f81f
3
+ metadata.gz: 55b16e4bbe8d4d0a6b4a748d5c3be6b18205efaa
4
+ data.tar.gz: 966ca39b29856587c30d542378b9ba1903f84188
5
5
  SHA512:
6
- metadata.gz: 8973ca6d7811d7efc41f22b6929bc9bbf2cfece5f1e1793e62926a8ff73bb982e856053f363b03e5e35d5096e502755b7aa53546a33a2fceba134af70c535a31
7
- data.tar.gz: 73252cf482bd13da64f829c85beff7e6aaf7c261049f3d3b7142366e807892f02655107d812570a3a4a25e7ee7a0e4929f16893caf16c056cd562dcc712557ec
6
+ metadata.gz: b1a1ff917801b0b2f2679d771e8cfd4939f5c8142c91ca6b979689a721e4d1e243f26f69cbc960dd94ff74c4cfbce7e9e414185c415146bce930aa778285573c
7
+ data.tar.gz: d3bab7a4dcc2bd43a08755db3c302abf2b706854e65a116c4a5482cd1592a0eeaddd21ba3bb6a0376d7b4c72ade734d5c5ae99f613aaf8b179abdcb8e8887afb
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- <�B�!���x����h���6ݬ�+\|�B��p<#�@�~��Pݟ��f9�N���,<�Q�!���}��Y6��I��
2
- ��%�h�n���Ry��x���0-��`��|<#$���i^�����۴4L܊�j�����k6e
1
+ {A �%@�ۀ[=�>�����m�$��-�H���w}�@{Mf�"�\4�*�$��P���8�A� ���3���)���
data.tar.gz.sig CHANGED
Binary file
data/lib/rexle.rb CHANGED
@@ -11,7 +11,9 @@ include REXML
11
11
 
12
12
  # modifications:
13
13
 
14
- # 12-Mar-2013: bug fix: Duplicate processing instruction bug fixed
14
+ # 14-Mar-2014: bug fix: An XML processing instruction will now only be
15
+ # display if declaration = true
16
+ # 12-Mar-2014: bug fix: Duplicate processing instruction bug fixed
15
17
  # 17-Jan-2014: bug fix: Rexle::Element to_a now returns all child elements
16
18
  # 31-Dec-2013: feature: now supports processing instructions
17
19
  # 18-Dec-2013: feature fix: the result of text() is no longer unescaped
@@ -69,7 +71,7 @@ module XMLhelper
69
71
  xml = "<%s%s>%s</%s>" % [self.root.name, a.empty? ? '' : \
70
72
  ' ' + a.join(' '), body, self.root.name]
71
73
 
72
- if self.instructions then
74
+ if self.instructions and declaration then
73
75
  processing_instructions() + xml
74
76
  else
75
77
  xml
@@ -84,7 +86,7 @@ module XMLhelper
84
86
  xml = "<%s%s>%s%s%s</%s>" % [self.root.name, a.empty? ? '' : \
85
87
  ' ' + a.join(' '), ind, body, "\n", self.root.name]
86
88
 
87
- if self.instructions then
89
+ if self.instructions and declaration then
88
90
  processing_instructions("\n") + "\n" + xml
89
91
  else
90
92
  xml
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.3
4
+ version: 1.0.4
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-03-12 00:00:00.000000000 Z
34
+ date: 2014-03-14 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexleparser
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- o��l=eD��Q�-ė���əK>�ɡ�2T�R�j���c�x�k�~+J��x�V,�&�'@�|KL�(�&T6��*�
1
+ =1iDJ Ɵ����Z���`����_j%.�7Kd$M\1D�k-Ϝp
2
+ �x�ϴѴ����PjBI�X�S9��:��=�ig�����V�/��R�/m �7> �� �8k�B�i�rѾ��