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 +4 -4
- data/lib/wordpress/wxr/attachments.rb +1 -3
- data/lib/wordpress/wxr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c5e16b294da4728d76fa47baee46e566bf23195
|
4
|
+
data.tar.gz: 0431ee90ef5b1b761a75e1e51315fe5e9ede9fb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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)
|