FatIntakeSP 0.0.0
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 +7 -0
- data/lib/FatIntakeSP.rb +12 -0
- metadata +43 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 19a869f4f0fae99ae2221515a55145d383c809c3
|
|
4
|
+
data.tar.gz: e880bbb208868cc9b7a5bcf6562dbbe60d937a9f
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 98ba8f7348e28e8a0b66698255e36094c7c15aaab74ef742691b5dd6ba000e925b362ac99f60402fad640496d1ce306885011a80710fa1df5df8c5083d5b4e2a
|
|
7
|
+
data.tar.gz: ff10f0089313bcf2b33e3257e6a3e8b2727d8222089c4319b0a11437928c3931428add4cf413002532712ca67bac3b68fb0e9308568f9ce78718ba2c6e5ab8f3
|
data/lib/FatIntakeSP.rb
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
module CheckFat
|
|
2
|
+
def calculate
|
|
3
|
+
puts "We will find Total Fats intake for you"
|
|
4
|
+
puts "Enter Fats"
|
|
5
|
+
num = gets.chomp
|
|
6
|
+
puts "Enter Calories"
|
|
7
|
+
num2 = gets.chomp
|
|
8
|
+
gram = num * 9
|
|
9
|
+
total = (num2/gram)*100
|
|
10
|
+
puts " Your total Fat Intake percent is :"+total
|
|
11
|
+
end
|
|
12
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: FatIntakeSP
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Shuaib Patel NCI
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2016-12-01 00:00:00.000000000 Z
|
|
12
|
+
dependencies: []
|
|
13
|
+
description: returns total fat.
|
|
14
|
+
email: shuaib.a.patel@gmail.com
|
|
15
|
+
executables: []
|
|
16
|
+
extensions: []
|
|
17
|
+
extra_rdoc_files: []
|
|
18
|
+
files:
|
|
19
|
+
- lib/FatIntakeSP.rb
|
|
20
|
+
homepage: http://rubygems.org/gems/FatIntakeSp
|
|
21
|
+
licenses: []
|
|
22
|
+
metadata: {}
|
|
23
|
+
post_install_message:
|
|
24
|
+
rdoc_options: []
|
|
25
|
+
require_paths:
|
|
26
|
+
- lib
|
|
27
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
28
|
+
requirements:
|
|
29
|
+
- - ">="
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '0'
|
|
32
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
33
|
+
requirements:
|
|
34
|
+
- - ">="
|
|
35
|
+
- !ruby/object:Gem::Version
|
|
36
|
+
version: '0'
|
|
37
|
+
requirements: []
|
|
38
|
+
rubyforge_project:
|
|
39
|
+
rubygems_version: 2.6.7
|
|
40
|
+
signing_key:
|
|
41
|
+
specification_version: 4
|
|
42
|
+
summary: Counts total fat intake from calories.
|
|
43
|
+
test_files: []
|