wordprss 0.0.0.1 → 0.0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wordprss/item.rb +2 -3
- data/lib/wordprss/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 12caa8a95e70345ce2b5cbe111f02b80eb759aa47b6fe747cca0662016169e5a
|
4
|
+
data.tar.gz: 07a3e16500ca21f5de521deabdee22077741541f8e7891cea7fafd9d2194e91e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 92f62459bc43c57185e62bfa263d32c470dfa425dcd49238e6b5a07ed7481fcd46f98b105e4490f35872240e499c3737d8cc844e89a61b00010bfa037532dae1
|
7
|
+
data.tar.gz: 7cb7149d536113e3b50b805482fd9e5f2f6741504991f11a31acb4f0fbd265208e4a212615252810754d8ac2f805e1f6a1528fb0e302459dab46bc3e1926f596
|
data/lib/wordprss/item.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'pry'
|
2
|
-
|
3
1
|
module WordpRSS
|
4
2
|
class Item
|
5
3
|
def initialize(node)
|
@@ -45,7 +43,8 @@ module WordpRSS
|
|
45
43
|
#
|
46
44
|
# @return [String]
|
47
45
|
def creator
|
48
|
-
node.elements.last.children.find { |c| c.name == "dc:creator" }
|
46
|
+
creator_node = node.elements.last.children.find { |c| c.name == "dc:creator" }
|
47
|
+
creator_node.text if !creator_node.nil?
|
49
48
|
end
|
50
49
|
|
51
50
|
private
|
data/lib/wordprss/version.rb
CHANGED