beer_recipe 0.4.14 → 0.4.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32c48cecd7a5cdea0cf5b5ecfdef194a85fc7cc4
4
- data.tar.gz: 46a3130dbce88b44001dcc3da3918bcf2012925a
3
+ metadata.gz: f1ae600828106d280b4df7c60febe606aa6b1285
4
+ data.tar.gz: eb6dea278d71ec24df914d8d76a85f130803f373
5
5
  SHA512:
6
- metadata.gz: 67ddd1c5ee95de52880638ee7d75e65189c5bb8ee79f5b1866d0344808221723e4d981122e28f56bfdd65a0f1dfa34b322035458a764459beadfc91e400d91c4
7
- data.tar.gz: 4cd3e324d2f9525b6d57aabb85f65827ce291ad8e4cb1168cddd08fa3d2e828d1b54555ee63b34352252833dc1aa0e7a0bf28c62d787cbfe4419a1b69a2e00d2
6
+ metadata.gz: dfd575bfac349afe00fd80778ee1bf6d998930834f1eec0705a78f1c5cb266447bc1154b11235bccf4dff806dfc8aed846e120eb99a2ab75779021446d146a3f
7
+ data.tar.gz: 7c1eb70a8e4440014b001132b91eb74f1bbbfe7a6092c02f9fb17df92b619e556da51a682429fdee2ac4a90586b9508ef4ec2cf1ae795cf162ded159f0504c8d
@@ -23,12 +23,12 @@ class BeerRecipe::RecipeWrapper < BeerRecipe::Wrapper
23
23
  if SETS.include?(method)
24
24
  @sets[method] ||= BeerRecipe::Wrapper.set(self, recipe.send(method))
25
25
  else
26
- @record.send(method, *args, &block)
26
+ recipe.send(method, *args, &block)
27
27
  end
28
28
  end
29
29
 
30
30
  def respond_to_missing?(name, flag = true)
31
- SETS.include?(method) || @record.respond_to?(name) || super
31
+ SETS.include?(method) || recipe.respond_to?(name) || super
32
32
  end
33
33
 
34
34
  def mash
@@ -1,3 +1,3 @@
1
1
  module BeerRecipe
2
- VERSION = '0.4.14'
2
+ VERSION = '0.4.15'
3
3
  end
@@ -21,7 +21,11 @@ class BeerRecipe::Wrapper
21
21
  end
22
22
 
23
23
  def self.set(recipe, set)
24
- set.map { |record| self.wrap(record, recipe) }
24
+ if set.respond_to? :map
25
+ set.map { |record| self.wrap(record, recipe) }
26
+ else
27
+ []
28
+ end
25
29
  end
26
30
 
27
31
  def self.wrap(record, recipe)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beer_recipe
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.14
4
+ version: 0.4.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olle Johansson
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  version: '0'
116
116
  requirements: []
117
117
  rubyforge_project:
118
- rubygems_version: 2.5.2
118
+ rubygems_version: 2.6.13
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Simple Beer XML recipe formatter.