ssmd 0.2.0 → 0.2.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
2
  SHA1:
3
- metadata.gz: 6340136ac0c4236cc24f2fd3cb67df638493de66
4
- data.tar.gz: f68b66dc89d274be391a1d619c3e4009373c6cf8
3
+ metadata.gz: 41817ddd59b1d74c6dd4c9b43a356c9db896b4dd
4
+ data.tar.gz: c48b1cb58f2ca5a0931c2e3787821629e8249566
5
5
  SHA512:
6
- metadata.gz: 3d141f04d275321f0e8ee7de922d0f2ac2ff17522bd4b5f2ccc08ab474a12e104be9bd4c18508fb2ca3beeda8158fbc324dc251e8c1c19cfbabf5e0734ef9378
7
- data.tar.gz: 151150b975fac263122225e2a9b73c8006490200f53d23338e643fdcdcbe02679d572d6fe328a651a8f14dd4f52842cf14029b0f7ce42ed7f4ab64d6ed24e0b5
6
+ metadata.gz: a56a4df2233224b4f5cbe709c8af6226826542c3763d4e97321a2bf78d3a01cb905282e53031491db3461a94389c76b9609539ae756a94ddfcc6cc932ad285a1
7
+ data.tar.gz: b2aa5a9ce90afb116c07bf5c6cf468eccd16b6eeed0a4280ee11a257686e63e6d8fd476c697aa5b4fcf54c5d128143391fc9ee03e1218ff0bfd3c998a128fc75
@@ -20,7 +20,11 @@ module SSMD
20
20
  def strip
21
21
  doc = ::REXML::Document.new input
22
22
 
23
- xml_text doc.root
23
+ if doc.root
24
+ xml_text doc.root
25
+ else
26
+ input # no XML so we assume it is already stripped
27
+ end
24
28
  end
25
29
 
26
30
  def xml_text(node)
@@ -1,3 +1,3 @@
1
1
  module SSMD
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ssmd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Markus Kahl