hangry 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
@@ -39,7 +39,7 @@ module Hangry
39
39
  ingredient_node.children.map { |c| c.content }.join(' ')
40
40
  }.map { |ingredient|
41
41
  clean_string ingredient
42
- }
42
+ }.reject(&:blank?)
43
43
  end
44
44
 
45
45
  def parse_instructions
@@ -44,10 +44,10 @@ module Hangry
44
44
  clean_string node_with_itemprop(:description).content
45
45
  end
46
46
  def parse_ingredients
47
- nodes_with_itemprop(self.class.ingredient_itemprop).map(&:content).map do |ingredient|
47
+ nodes_with_itemprop(self.class.ingredient_itemprop).map(&:content).map { |ingredient|
48
48
  # remove newlines and excess whitespace from ingredients
49
49
  clean_string ingredient
50
- end
50
+ }.reject(&:blank?)
51
51
  end
52
52
  def parse_instructions
53
53
  clean_string node_with_itemprop(:recipeInstructions).content, preserve_newlines: true
@@ -1,3 +1,3 @@
1
1
  module Hangry
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end