zutat 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 11ed0a0efc016099058b27a5c3a716a64f8eb2f8
4
- data.tar.gz: 6b51d38e98ae3bb5a164f13e9764bf713da673da
3
+ metadata.gz: adfc16c006eca62def2b30f8ec7595f580f9ec2a
4
+ data.tar.gz: 12c52aa5bc9e415a28c4ec434d9ea1788f9afdae
5
5
  SHA512:
6
- metadata.gz: f1f974081a7dbfe7556a4f27353c0b296881c6266b2644ed7a909ee5a4500dfc66e237534cbd78b6679b5f7cb69e424f0f512894d66f5eadb2bb54086a1375d5
7
- data.tar.gz: 131599674492b65c8846b92df6f8e1d348016e8221dedf813fc094557bb988734c3a36eb9e9035b6f5b8b9df7af43da38274ec6b6faaf7900a075b67a062a1b3
6
+ metadata.gz: 2bbe7b41b13887734c7270b66319fdfead1b670108cff3aaebb260a146e43eae85cb84496fffbe3b42f532f1b304b06833858c7f22be5445538b73e8dec4e85b
7
+ data.tar.gz: 863c80e4b878d7610cbf175542502fb9bf7fe78c5556e6cd126774ffe2adc83e2928d201cbbf471950b855e43f43a12efd20e39b249e31181759aa1b451eba68
@@ -1,19 +1,24 @@
1
1
  module Zutat
2
2
  class NutrientTargets
3
- attr_accessor :zinc_max, :zinc, :vitamin_k_max, :vitamin_k, :vitamin_e_max, :vitamin_e, :vitamin_d_max,
3
+ attr_accessor :zinc_max, :zinc, :vitamin_k_max, :vitamin_k, :vitamin_e_max, :vitamin_e, :vitamin_d_max,
4
4
  :vitamin_d, :vitamin_c_max, :vitamin_c, :vitamin_b6_max, :vitamin_b6, :vitamin_b12_max, :vitamin_b12,
5
5
  :vitamin_a_max, :vitamin_a, :thiamin_max, :thiamin, :sulfur_max, :sulfur, :sodium_max, :sodium, :selinium_max,
6
6
  :selinium, :riboflavin_max, :riboflavin, :protein_max, :protein, :potassium_max, :potassium, :phosphorus_max,
7
- :phosphorus, :panthothenic_max, :panthothenic, :omega_6_max, :omega_6, :omega_3_max, :omega_3, :niacin_max,
8
- :niacin, :name, :molybdenum_max, :molybdenum, :magnesium_max, :magnesium, :maganese_max, :maganese, :iron_max,
9
- :iron, :iodine_max, :iodine, :folate_max, :folate, :fiber_max, :fiber, :fat_max, :fat, :copper_max, :copper,
7
+ :phosphorus, :panthothenic_max, :panthothenic, :omega_6_max, :omega_6, :omega_3_max, :omega_3, :niacin_max, :niacin,
8
+ :name, :molybdenum_max, :molybdenum, :magnesium_max, :magnesium, :maganese_max, :maganese, :iron_max, :iron,
9
+ :iodine_max, :iodine, :folate_max, :folate, :fiber_max, :fiber, :fat_max, :fat, :copper_max, :copper,
10
10
  :chromium_max, :chromium, :choline_max, :choline, :cholesterol_max, :cholesterol, :chloride_max, :chloride,
11
- :carbs_max, :carbs, :calories_max, :calories, :calcium_max, :calcium, :biotin_max, :biotin
11
+ :carbs_max, :carbs, :calories_max, :calories, :calcium_max, :calcium, :biotin_max, :biotin, :soluble_fiber_max,
12
+ :soluble_fiber, :saturated_fat_max, :saturated_fat, :polyunsaturated_fat_max, :polyunsaturated_fat,
13
+ :monounsaturated_fat_max, :monounsaturated_fat, :insoluble_fiber_max, :insoluble_fiber
12
14
 
13
15
  def initialize(nt)
14
16
  nt.each do |k,v|
15
- send("#{k}=",v)
17
+ m = k.gsub("-","_")
18
+ send("#{m}=",v)
19
+ send("#{m}=",nil) if v == 0 or v == ""
16
20
  end
17
21
  end
22
+
18
23
  end
19
24
  end
data/lib/zutat/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zutat
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/zutat.gemspec CHANGED
@@ -1,8 +1,8 @@
1
1
  Gem::Specification.new do |s|
2
2
 
3
3
  s.name = 'zutat'
4
- s.version = '0.1.3'
5
- s.date = '2014-10-04'
4
+ s.version = '0.1.4'
5
+ s.date = '2014-10-05'
6
6
  s.summary = "Get Soylent recipes from diy.soylent.me."
7
7
  s.description = "Fetch Soylent recipes from diy.soylent.me and get easy-to-use Ruby objects."
8
8
  s.authors = ["Eddy Shure"]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zutat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eddy Shure
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-04 00:00:00.000000000 Z
11
+ date: 2014-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json