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 +4 -4
- data/lib/zutat/nutrient-targets.rb +11 -6
- data/lib/zutat/version.rb +1 -1
- data/zutat.gemspec +2 -2
- 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: adfc16c006eca62def2b30f8ec7595f580f9ec2a
|
4
|
+
data.tar.gz: 12c52aa5bc9e415a28c4ec434d9ea1788f9afdae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
:
|
9
|
-
:
|
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
|
-
|
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
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.
|
5
|
-
s.date = '2014-10-
|
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.
|
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-
|
11
|
+
date: 2014-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|