beer_recipe 0.4.10 → 0.4.11

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: 60a0a88ed3e8fce493f27c7f43c95a1f4e9a8462
4
- data.tar.gz: da76f22a5e3d4482a24dc7708ec187ae95a654bf
3
+ metadata.gz: 37e343ebd5dd90883f61380871711d71725d2fc3
4
+ data.tar.gz: b064a9d35839ef3fc97220ccbd07f60d2f1aa3f8
5
5
  SHA512:
6
- metadata.gz: b0dbd4774b0f88e5097e6f70d11276d2be3fb09c84c836cae5661802f89c76ed990410773dc0988a78f82dbd4b1a6bc24b5b5a3f9494e1f89bc1b46ef5558f77
7
- data.tar.gz: f0179d25b56ab38859ebad1320a52aaa3b3e37093f7eea6a8cf08568e8abeefcabb64e7fbe5bc8019ca781da0a95229de51395a3dfcad4dad30e9bfc806cafb0
6
+ metadata.gz: 98d7349d9ba872c49a932a20e19df6ad1a83d3b375a80272bd4119bd1c4ce7b858c10d64fe96e362669bb83bd4ed9431e3b916f2c8ca1d7a7b6c67e717025352
7
+ data.tar.gz: 1887c8480321e2dd989a419ae3e2cfa334d3e3e5e71aa786dfc0899e0997caafc9e77292ba0461fc3a1885e1d3d28ce260d2e830c3a0cd3fedb61f085e07b64f
@@ -79,7 +79,7 @@ class BeerRecipe::RecipeWrapper < BeerRecipe::Wrapper
79
79
  end
80
80
 
81
81
  def strip_unit(value)
82
- return nil if value.nil?
82
+ return value if value.nil? || !value.kind_of?(String)
83
83
  value.gsub(/ \w+\Z/, '').to_f
84
84
  end
85
85
 
@@ -1,3 +1,3 @@
1
1
  module BeerRecipe
2
- VERSION = '0.4.10'
2
+ VERSION = '0.4.11'
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.10
4
+ version: 0.4.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olle Johansson