beer_recipe 0.4.18 → 0.4.19

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: 2642539038d3d602d78b6c1faab8d58e21dd7ab6
4
- data.tar.gz: d8ebd40ae5789ccb19648c8c84debacaa924b962
3
+ metadata.gz: 03c20eebe2c901459ba85980e50eb168c8295352
4
+ data.tar.gz: 71e4635ae2d62cb48241f7ff454ef9b20381add2
5
5
  SHA512:
6
- metadata.gz: 91762cc479eecc95b8482e01cfaec257146d40105d82d551f1de811cbe2198099a8ef5a1bbb0f99aa1477a71187121f2a1b7eacc9e6215e3b248f3af6532d2df
7
- data.tar.gz: cc039194f3709e454a42c7d681dbe80c4c5f62c9fa6f948dbdca515af9774f8eeb723d79aefbb2b65fcb2274ba52bb216bef358c07777427e358acc9c3a42aaa
6
+ metadata.gz: 3bcd9c1035bbc077663e1e6f3b44413641d188471fbe56c3cc7fca63016ff08f2ead4420d4f1f2d5d44a98f16007172b325ab124a12c111340ed8c7a848091ad
7
+ data.tar.gz: 8405aeb46b53ccc2c39219a002b6ab3c8c21d99aeeba12f11b9d7f3d4815f20b8735e7a92de6808d4c823e376f7dfaea3374f8b0b03c1c182388bb17ad877966
@@ -44,6 +44,7 @@ class BeerRecipe::RecipeWrapper < BeerRecipe::Wrapper
44
44
  end
45
45
 
46
46
  def style_code
47
+ return "" if recipe.style.nil? || recipe.style.empty?
47
48
  "#{recipe.style.category_number} #{recipe.style.style_letter}"
48
49
  end
49
50
 
@@ -1,3 +1,3 @@
1
1
  module BeerRecipe
2
- VERSION = '0.4.18'
2
+ VERSION = '0.4.19'
3
3
  end
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.18
4
+ version: 0.4.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olle Johansson