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 +4 -4
- data/lib/beer_recipe/recipe_wrapper.rb +2 -2
- data/lib/beer_recipe/version.rb +1 -1
- data/lib/beer_recipe/wrapper.rb +5 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1ae600828106d280b4df7c60febe606aa6b1285
|
4
|
+
data.tar.gz: eb6dea278d71ec24df914d8d76a85f130803f373
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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) ||
|
31
|
+
SETS.include?(method) || recipe.respond_to?(name) || super
|
32
32
|
end
|
33
33
|
|
34
34
|
def mash
|
data/lib/beer_recipe/version.rb
CHANGED
data/lib/beer_recipe/wrapper.rb
CHANGED
@@ -21,7 +21,11 @@ class BeerRecipe::Wrapper
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.set(recipe, set)
|
24
|
-
set.map
|
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.
|
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.
|
118
|
+
rubygems_version: 2.6.13
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Simple Beer XML recipe formatter.
|