wordpress-wxr 0.5.0 → 0.5.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: 981e6af52b4c1a2bb58fb115a6575cfb2f17f6d1
4
- data.tar.gz: 44cdbde5be5f6dca0527756c74048324c522b5e3
3
+ metadata.gz: 3c5e16b294da4728d76fa47baee46e566bf23195
4
+ data.tar.gz: 0431ee90ef5b1b761a75e1e51315fe5e9ede9fb2
5
5
  SHA512:
6
- metadata.gz: 8c9cf18fcb87c9a1ec49782d8a49e2eff1d16f3c477674d4b986985693372fd94440a1eae4d71ba047a79595cfe6cee40e2c5880282f19cd3e2642e64c3a0b2f
7
- data.tar.gz: b9cb37e2b440f5d012a8f594fd57d814adbc657e199a954761c15fcc8add556082c9ddd5fefc34cb012e0dec13263c8a2107a39faad63ce6d36154986c206370
6
+ metadata.gz: f509724ad79ea8cf7ced17ba5132a690f642dea628b84cb35514252e5126e92bf8d30dacf0a3c172fc4518a09cbee5f8733a4f0513bbef827674835573e7327a
7
+ data.tar.gz: ae0ce521288379b3b26e09696f298be9fcea986f41040c3cecc22228c0dc9f8f10af48c4020973e6641de4c2964f0f7593b98d0962ca4356b753ef730f6dc129
@@ -22,9 +22,7 @@ module Wordpress
22
22
  end
23
23
 
24
24
  def find_by(id:)
25
- return if id.empty?
26
-
27
- attachment = nodes.xpath("wp:post_id[text() = '#{id}']/parent::node()")
25
+ attachment = nodes.xpath("wp:post_id[text() = '#{Integer(id)}']/parent::node()")
28
26
  return unless attachment
29
27
 
30
28
  Attachment.new(attachment, wxr)
@@ -1,5 +1,5 @@
1
1
  module Wordpress
2
2
  class WXR
3
- VERSION = '0.5.0'.freeze
3
+ VERSION = '0.5.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordpress-wxr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ePublishing, inc.