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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26a00cc252da9c6a4b536e77e959cf01417f43a9b98735cc390825b657e3e268
4
- data.tar.gz: 4240293a107b07f3caf3d070195d48a0a49c0b07c612e3355baafc49bc364f87
3
+ metadata.gz: 12caa8a95e70345ce2b5cbe111f02b80eb759aa47b6fe747cca0662016169e5a
4
+ data.tar.gz: 07a3e16500ca21f5de521deabdee22077741541f8e7891cea7fafd9d2194e91e
5
5
  SHA512:
6
- metadata.gz: 69c087d265c9b08f227296970d36bc7c49b99f4740903cfb701bdf40d028b2f621d61f0e89fcd030e3d1329c006fa83c3789a7c861df3f9916d5d2c76dcb0bed
7
- data.tar.gz: bf66ffce93792f8bdfbd3f6d837aae2cd0c4c5f3b81987fa4e77debed355b2a962a826bb9f0b6b347c159fa5d07af20a7907452287425851165df2540d5217da
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" }.text
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
@@ -6,7 +6,7 @@ module WordpRSS
6
6
  #
7
7
  # @return [String]
8
8
  def to_s
9
- "0.0.0.1"
9
+ "0.0.0.2"
10
10
  end
11
11
  end
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordprss
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0.1
4
+ version: 0.0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paweł Dąbrowski