alimento-0100895001 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.coveralls.yml +1 -0
- data/.gitignore +12 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/Guardfile +82 -0
- data/README.md +50 -0
- data/Rakefile +6 -0
- data/alimento.gemspec +40 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/Alimento.html +110 -0
- data/docs/Alimento_.html +406 -0
- data/docs/Gemfile.html +100 -0
- data/docs/Gemfile_lock.html +213 -0
- data/docs/Grupo_alimento.html +232 -0
- data/docs/Guardfile.html +177 -0
- data/docs/List.html +511 -0
- data/docs/Object.html +129 -0
- data/docs/README_md.html +169 -0
- data/docs/Rakefile.html +98 -0
- data/docs/alimento_gemspec.html +133 -0
- data/docs/bin/setup.html +98 -0
- data/docs/created.rid +17 -0
- data/docs/css/fonts.css +167 -0
- data/docs/css/rdoc.css +590 -0
- data/docs/fonts/Lato-Light.ttf +0 -0
- data/docs/fonts/Lato-LightItalic.ttf +0 -0
- data/docs/fonts/Lato-Regular.ttf +0 -0
- data/docs/fonts/Lato-RegularItalic.ttf +0 -0
- data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/docs/images/add.png +0 -0
- data/docs/images/arrow_up.png +0 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/delete.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_blue.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/transparent.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +110 -0
- data/docs/js/darkfish.js +161 -0
- data/docs/js/jquery.js +4 -0
- data/docs/js/navigation.js +142 -0
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search.js +109 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searcher.js +229 -0
- data/docs/js/searcher.js.gz +0 -0
- data/docs/table_of_contents.html +165 -0
- data/lib/alimento.rb +8 -0
- data/lib/alimento/alimento_.rb +73 -0
- data/lib/alimento/list.rb +108 -0
- data/lib/alimento/plato.rb +169 -0
- data/lib/alimento/version.rb +3 -0
- metadata +227 -0
data/lib/alimento.rb
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Clase Alimento utilizando Ruby para la asignatura de
|
3
|
+
# Lenguajes y Paradigmas de la Programación en la que
|
4
|
+
# trabajamos con clases, métodos, herencias y sobrecarga de operadores
|
5
|
+
# en la que las instancias son Comparable
|
6
|
+
# Author:: Carla Ramos Alonso (mailto:alu0100895001@ull.edu.es)
|
7
|
+
# Copyright:: Cretive Commons
|
8
|
+
# License:: Distributes under the same terms as Ruby
|
9
|
+
|
10
|
+
require "alimento/version"
|
11
|
+
|
12
|
+
# Clase Alimento que representa a un alimento con el nombre y otros datos del mismo
|
13
|
+
# En alimento se incluye el mixin Comparable
|
14
|
+
class Alimento_
|
15
|
+
|
16
|
+
|
17
|
+
include Comparable
|
18
|
+
attr_reader :name, :proteins, :glucids, :fats
|
19
|
+
attr_accessor :datos
|
20
|
+
# Se asignan el nombre, las proteinas, los glucidos y las grasas
|
21
|
+
def initialize(name, proteins, glucids, fats)
|
22
|
+
@name = name
|
23
|
+
@proteins = proteins
|
24
|
+
@glucids = glucids
|
25
|
+
@fats = fats
|
26
|
+
end
|
27
|
+
# Formatea la salida a texto
|
28
|
+
def to_s
|
29
|
+
string = ("#{@name}\t#{@proteins}\t#{@glucids}\t#{@fats}")
|
30
|
+
# puts string
|
31
|
+
# return string
|
32
|
+
end
|
33
|
+
# Devuelve el valor energético
|
34
|
+
def valor_energetico
|
35
|
+
v_e = (@proteins*4)+(@glucids*4)+(@fats*9)
|
36
|
+
end
|
37
|
+
# Se define para incluir el mixin comparable
|
38
|
+
# Se toma como valor para la comparación el valor energético
|
39
|
+
def <=> (another)
|
40
|
+
return nil unless another.is_a? Alimento_
|
41
|
+
self.valor_energetico <=> another.valor_energetico
|
42
|
+
end
|
43
|
+
# Devuelve el valor del AIBC de un alimento para un individuo concreto
|
44
|
+
def aibc(indice)
|
45
|
+
vector = []
|
46
|
+
datos[indice][1..datos[indice].length-1].zip(datos[indice][0..datos[indice].length-2]) do | gi, gi_1 |
|
47
|
+
if gi < datos[indice][0]
|
48
|
+
vector << 0.0
|
49
|
+
else
|
50
|
+
vector << (((gi-datos[indice][0])+(gi_1-datos[indice][0]))/2)*5
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
vector.reduce(:+)
|
55
|
+
end
|
56
|
+
|
57
|
+
|
58
|
+
end
|
59
|
+
|
60
|
+
# Herencia de la clase Alimento
|
61
|
+
class Grupo_alimento < Alimento_
|
62
|
+
|
63
|
+
attr_reader :grupo
|
64
|
+
# Se asigna el nombre, las proteinas, los glucidos, las grasas y el grupo del alimento
|
65
|
+
def initialize(name, proteins, glucids, fats, group)
|
66
|
+
super(name, proteins, glucids, fats)
|
67
|
+
@group = group
|
68
|
+
end
|
69
|
+
# Formatea la salida a texto
|
70
|
+
def to_s
|
71
|
+
string = super.to_s + "\t#{@group}"
|
72
|
+
end
|
73
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Clase List utilizando Ruby para la asignatura de
|
3
|
+
# Lenguajes y Paradigmas de la Programación en la que
|
4
|
+
# trabajamos con listas doblemente enlazadas en la que las
|
5
|
+
# instancias son Enumerable
|
6
|
+
# Author:: Carla Ramos Alonso (mailto:alu0100895001@ull.edu.es)
|
7
|
+
# Copyright:: Cretive Commons
|
8
|
+
# License:: Distributes under the same terms as Ruby
|
9
|
+
require "alimento/version"
|
10
|
+
|
11
|
+
# Clase nodo utilizada para implementar posteriormente la lista
|
12
|
+
# create a Struct with :value, :next and :prev
|
13
|
+
Node = Struct.new(:value, :next, :prev)
|
14
|
+
|
15
|
+
# Clase List que define la lista doblemente enlazada e
|
16
|
+
# incluye el mixin Enumerable
|
17
|
+
class List
|
18
|
+
|
19
|
+
include Enumerable
|
20
|
+
attr_reader :head, :tail
|
21
|
+
# Se asigna la cabeza y la cola de la lista doblemente enlazada
|
22
|
+
def initialize(head,tail)
|
23
|
+
@head = head
|
24
|
+
@tail = tail
|
25
|
+
end
|
26
|
+
# Inserta en la lista uno o varios elementos los cuales recibe en forma de vector
|
27
|
+
def insert vector
|
28
|
+
vector.each do |element|
|
29
|
+
node = Node.new(element,nil,nil)
|
30
|
+
if(@head==nil)
|
31
|
+
@head = node
|
32
|
+
@tail = node
|
33
|
+
else
|
34
|
+
node.prev=@tail
|
35
|
+
@tail.next = node
|
36
|
+
@tail=node
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
# Elimina el primer elemento de la lista
|
41
|
+
def shift_first
|
42
|
+
@head=@head.next
|
43
|
+
@head.prev=nil
|
44
|
+
end
|
45
|
+
# Elimina el último elemento de la lista
|
46
|
+
def shift_last
|
47
|
+
@tail=@tail.prev
|
48
|
+
@tail.next=nil
|
49
|
+
end
|
50
|
+
# Formatea la salida a texto
|
51
|
+
def to_s
|
52
|
+
string=""
|
53
|
+
each { |value| string+=value.to_s + "\n" } # Funciona también entre do-end
|
54
|
+
return string
|
55
|
+
end
|
56
|
+
# Se incluye el metodo mixin Enumerable
|
57
|
+
# Se define como un bucle completo sobre la lista
|
58
|
+
def each
|
59
|
+
node=@head
|
60
|
+
while node != nil do
|
61
|
+
yield node.value
|
62
|
+
node = node.next
|
63
|
+
end
|
64
|
+
end
|
65
|
+
# Se ordena una lista utlizando bucles for
|
66
|
+
def ordenar_seleccion
|
67
|
+
vector = self.map { |x| x }
|
68
|
+
for i in 0..self.count-1
|
69
|
+
aux = vector[i]
|
70
|
+
c = i
|
71
|
+
|
72
|
+
for j in i + 1..self.count-1
|
73
|
+
if aux > vector[j]
|
74
|
+
aux = vector[j]
|
75
|
+
c = j
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
vector[c] = vector[i]
|
80
|
+
vector[i] = aux
|
81
|
+
end
|
82
|
+
vector
|
83
|
+
end
|
84
|
+
# Se ordena una lista utilizando el método each
|
85
|
+
def ordenar_each
|
86
|
+
vector = self.map { |x| x }
|
87
|
+
indice=0
|
88
|
+
vector.each do |x|
|
89
|
+
aux = x
|
90
|
+
c=indice
|
91
|
+
indice2=indice+1
|
92
|
+
|
93
|
+
vector[indice2..vector.length-1].each do |y|
|
94
|
+
if aux > y
|
95
|
+
aux = y
|
96
|
+
c = indice2
|
97
|
+
end
|
98
|
+
indice2+=1
|
99
|
+
end
|
100
|
+
|
101
|
+
vector[c] = x
|
102
|
+
vector[indice] = aux
|
103
|
+
|
104
|
+
indice+=1
|
105
|
+
end
|
106
|
+
vector
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,169 @@
|
|
1
|
+
require "alimento/version"
|
2
|
+
|
3
|
+
#require_relative "list.rb"
|
4
|
+
#require_relative "alimento_.rb"
|
5
|
+
|
6
|
+
class Plato
|
7
|
+
|
8
|
+
attr_reader :name, :vegetables, :cereals, :proteins, :fruits, :oils, :valor_energetico
|
9
|
+
|
10
|
+
def initialize name, &block
|
11
|
+
@name = name
|
12
|
+
@vegetables = []
|
13
|
+
@cereals = []
|
14
|
+
@fruits = []
|
15
|
+
@proteins = []
|
16
|
+
@oils = []
|
17
|
+
@@equivalencias = {"cucharada"=>15, "cucharadas"=>15, "piezas pequeñas"=>25, "taza"=>185, "cucharón"=>160, "pieza"=>65}
|
18
|
+
@valor_energetico = 0
|
19
|
+
|
20
|
+
@@list = List.new(nil,nil)
|
21
|
+
@@list.insert([ Alimento_.new("Huevo frito",14.1,0.0,19.5),
|
22
|
+
Alimento_.new("Leche vaca",3.3,4.8,3.2),
|
23
|
+
Alimento_.new("Yogurt",3.8,4.9,3.8),
|
24
|
+
Alimento_.new("Cerdo",21.5,0.0,6.3),
|
25
|
+
Alimento_.new("Ternera",21.1,0.0,3.1),
|
26
|
+
Alimento_.new("Pollo",20.6,0.0,5.6),
|
27
|
+
Alimento_.new("Bacalao",17.7,0.0,0.4),
|
28
|
+
Alimento_.new("Atún",21.5,0.0,15.5),
|
29
|
+
Alimento_.new("Salmón",19.9,0.0,13.6),
|
30
|
+
Alimento_.new("Aceite de oliva",0.0,0.2,99.6),
|
31
|
+
Alimento_.new("Mantequilla",0.7,0.0,83.2),
|
32
|
+
Alimento_.new("Chocolate",5.3,47.0,30.0),
|
33
|
+
Alimento_.new("Azúcar",0.0,99.8,0.0),
|
34
|
+
Alimento_.new("Arroz",6.8,77.7,0.6),
|
35
|
+
Alimento_.new("Lentejas",23.5,52.0,1.4),
|
36
|
+
Alimento_.new("Papas",2.0,15.4,0.1),
|
37
|
+
Alimento_.new("Tomate",1.0,3.5,0.2),
|
38
|
+
Alimento_.new("Cebolla",1.3,5.8,0.3),
|
39
|
+
Alimento_.new("Calabaza",1.1,4.8,0.1),
|
40
|
+
Alimento_.new("Manzana",0.3,12.4,0.4),
|
41
|
+
Alimento_.new("Plátano",1.2,21.4,0.2),
|
42
|
+
Alimento_.new("Pera",0.5,12.7,0.3)
|
43
|
+
])
|
44
|
+
|
45
|
+
instance_eval(&block)
|
46
|
+
end
|
47
|
+
|
48
|
+
def vegetable n_alimento, options = {}
|
49
|
+
cantidad = 0
|
50
|
+
alimento = @@list.detect { |x| n_alimento == x.name }
|
51
|
+
if options[:gramos]
|
52
|
+
cantidad = options[:gramos]
|
53
|
+
elsif options[:porcion]
|
54
|
+
cantidad = options[:porcion].split[0].to_r
|
55
|
+
|
56
|
+
cadena = ""
|
57
|
+
options[:porcion].split[1..cadena.length-1].each do |x|
|
58
|
+
cadena += x + " "
|
59
|
+
end
|
60
|
+
cadena = cadena.chomp ' '
|
61
|
+
cantidad = cantidad * @@equivalencias[cadena]
|
62
|
+
end
|
63
|
+
@valor_energetico += alimento.valor_energetico*cantidad
|
64
|
+
@vegetables.push([alimento, (alimento.valor_energetico*cantidad).round(2)])
|
65
|
+
end
|
66
|
+
|
67
|
+
def cereal n_alimento, options = {}
|
68
|
+
cantidad = 0
|
69
|
+
alimento = @@list.detect { |x| n_alimento == x.name }
|
70
|
+
if options[:gramos]
|
71
|
+
cantidad = options[:gramos]
|
72
|
+
elsif options[:porcion]
|
73
|
+
cantidad = options[:porcion].split[0].to_r
|
74
|
+
|
75
|
+
cadena = ""
|
76
|
+
options[:porcion].split[1..cadena.length-1].each do |x|
|
77
|
+
cadena += x + " "
|
78
|
+
end
|
79
|
+
cadena = cadena.chomp ' '
|
80
|
+
cantidad = cantidad * @@equivalencias[cadena]
|
81
|
+
end
|
82
|
+
@valor_energetico += alimento.valor_energetico*cantidad
|
83
|
+
@cereals.push([alimento, (alimento.valor_energetico*cantidad).round(2)])
|
84
|
+
end
|
85
|
+
|
86
|
+
def protein n_alimento, options = {}
|
87
|
+
cantidad = 0
|
88
|
+
alimento = @@list.detect { |x| n_alimento == x.name }
|
89
|
+
if options[:gramos]
|
90
|
+
cantidad = options[:gramos]
|
91
|
+
elsif options[:porcion]
|
92
|
+
cantidad = options[:porcion].split[0].to_r
|
93
|
+
|
94
|
+
cadena = ""
|
95
|
+
options[:porcion].split[1..cadena.length-1].each do |x|
|
96
|
+
cadena += x + " "
|
97
|
+
end
|
98
|
+
cadena = cadena.chomp ' '
|
99
|
+
cantidad = cantidad * @@equivalencias[cadena]
|
100
|
+
end
|
101
|
+
@valor_energetico += alimento.valor_energetico*cantidad
|
102
|
+
@proteins.push([alimento, (alimento.valor_energetico*cantidad).round(2)])
|
103
|
+
end
|
104
|
+
|
105
|
+
def fruit n_alimento, options = {}
|
106
|
+
cantidad = 0
|
107
|
+
alimento = @@list.detect { |x| n_alimento == x.name }
|
108
|
+
if options[:gramos]
|
109
|
+
cantidad = options[:gramos]
|
110
|
+
elsif options[:porcion]
|
111
|
+
cantidad = options[:porcion].split[0].to_r
|
112
|
+
|
113
|
+
cadena = ""
|
114
|
+
options[:porcion].split[1..cadena.length-1].each do |x|
|
115
|
+
cadena += x + " "
|
116
|
+
end
|
117
|
+
cadena = cadena.chomp ' '
|
118
|
+
cantidad = cantidad * @@equivalencias[cadena]
|
119
|
+
end
|
120
|
+
@valor_energetico += alimento.valor_energetico*cantidad
|
121
|
+
@fruits.push([alimento, (alimento.valor_energetico*cantidad).round(2)])
|
122
|
+
end
|
123
|
+
|
124
|
+
def oil n_alimento, options = {}
|
125
|
+
cantidad = 0
|
126
|
+
alimento = @@list.detect { |x| n_alimento == x.name }
|
127
|
+
if options[:gramos]
|
128
|
+
cantidad = options[:gramos]
|
129
|
+
elsif options[:porcion]
|
130
|
+
cantidad = options[:porcion].split[0].to_r
|
131
|
+
|
132
|
+
cadena = ""
|
133
|
+
options[:porcion].split[1..cadena.length-1].each do |x|
|
134
|
+
cadena += x + " "
|
135
|
+
end
|
136
|
+
cadena = cadena.chomp ' '
|
137
|
+
cantidad = cantidad * @@equivalencias[cadena]
|
138
|
+
end
|
139
|
+
@valor_energetico += alimento.valor_energetico*cantidad
|
140
|
+
@oils.push([alimento, (alimento.valor_energetico*cantidad).round(2)])
|
141
|
+
end
|
142
|
+
|
143
|
+
|
144
|
+
def to_s
|
145
|
+
cadena = @name + "\n"
|
146
|
+
cadena += "================================================================= \nComposición nutricional: \n"
|
147
|
+
for i in 0..@vegetables.length-1 do
|
148
|
+
cadena += "%s\t%s\n" % [@vegetables[i][0].to_s, @vegetables[i][1].to_s]
|
149
|
+
end
|
150
|
+
for i in 0..@cereals.length-1 do
|
151
|
+
cadena += "%s\t%s\n" % [@cereals[i][0].to_s, @cereals[i][1].to_s]
|
152
|
+
end
|
153
|
+
for i in 0..@fruits.length-1 do
|
154
|
+
cadena += "%s\t%s\n" % [@fruits[i][0].to_s, @fruits[i][1].to_s]
|
155
|
+
end
|
156
|
+
for i in 0..@proteins.length-1 do
|
157
|
+
cadena += "%s\t%s\n" % [@proteins[i][0].to_s, @proteins[i][1].to_s]
|
158
|
+
end
|
159
|
+
for i in 0..@oils.length-1 do
|
160
|
+
cadena += "%s\t%s\n" % [@oils[i][0].to_s, @oils[i][1].to_s]
|
161
|
+
end
|
162
|
+
cadena += "Valor energético:\t" + @valor_energetico.to_s + "\n"
|
163
|
+
cadena
|
164
|
+
end
|
165
|
+
|
166
|
+
end
|
167
|
+
|
168
|
+
|
169
|
+
|
metadata
ADDED
@@ -0,0 +1,227 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: alimento-0100895001
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- carlarxmos
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-12-13 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: guard
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: guard-rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: guard-bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: guard-rdoc
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: coveralls
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: ''
|
126
|
+
email:
|
127
|
+
- carlaramosalonso@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".coveralls.yml"
|
133
|
+
- ".gitignore"
|
134
|
+
- ".travis.yml"
|
135
|
+
- Gemfile
|
136
|
+
- Guardfile
|
137
|
+
- README.md
|
138
|
+
- Rakefile
|
139
|
+
- alimento.gemspec
|
140
|
+
- bin/console
|
141
|
+
- bin/setup
|
142
|
+
- docs/Alimento.html
|
143
|
+
- docs/Alimento_.html
|
144
|
+
- docs/Gemfile.html
|
145
|
+
- docs/Gemfile_lock.html
|
146
|
+
- docs/Grupo_alimento.html
|
147
|
+
- docs/Guardfile.html
|
148
|
+
- docs/List.html
|
149
|
+
- docs/Object.html
|
150
|
+
- docs/README_md.html
|
151
|
+
- docs/Rakefile.html
|
152
|
+
- docs/alimento_gemspec.html
|
153
|
+
- docs/bin/setup.html
|
154
|
+
- docs/created.rid
|
155
|
+
- docs/css/fonts.css
|
156
|
+
- docs/css/rdoc.css
|
157
|
+
- docs/fonts/Lato-Light.ttf
|
158
|
+
- docs/fonts/Lato-LightItalic.ttf
|
159
|
+
- docs/fonts/Lato-Regular.ttf
|
160
|
+
- docs/fonts/Lato-RegularItalic.ttf
|
161
|
+
- docs/fonts/SourceCodePro-Bold.ttf
|
162
|
+
- docs/fonts/SourceCodePro-Regular.ttf
|
163
|
+
- docs/images/add.png
|
164
|
+
- docs/images/arrow_up.png
|
165
|
+
- docs/images/brick.png
|
166
|
+
- docs/images/brick_link.png
|
167
|
+
- docs/images/bug.png
|
168
|
+
- docs/images/bullet_black.png
|
169
|
+
- docs/images/bullet_toggle_minus.png
|
170
|
+
- docs/images/bullet_toggle_plus.png
|
171
|
+
- docs/images/date.png
|
172
|
+
- docs/images/delete.png
|
173
|
+
- docs/images/find.png
|
174
|
+
- docs/images/loadingAnimation.gif
|
175
|
+
- docs/images/macFFBgHack.png
|
176
|
+
- docs/images/package.png
|
177
|
+
- docs/images/page_green.png
|
178
|
+
- docs/images/page_white_text.png
|
179
|
+
- docs/images/page_white_width.png
|
180
|
+
- docs/images/plugin.png
|
181
|
+
- docs/images/ruby.png
|
182
|
+
- docs/images/tag_blue.png
|
183
|
+
- docs/images/tag_green.png
|
184
|
+
- docs/images/transparent.png
|
185
|
+
- docs/images/wrench.png
|
186
|
+
- docs/images/wrench_orange.png
|
187
|
+
- docs/images/zoom.png
|
188
|
+
- docs/index.html
|
189
|
+
- docs/js/darkfish.js
|
190
|
+
- docs/js/jquery.js
|
191
|
+
- docs/js/navigation.js
|
192
|
+
- docs/js/navigation.js.gz
|
193
|
+
- docs/js/search.js
|
194
|
+
- docs/js/search_index.js
|
195
|
+
- docs/js/search_index.js.gz
|
196
|
+
- docs/js/searcher.js
|
197
|
+
- docs/js/searcher.js.gz
|
198
|
+
- docs/table_of_contents.html
|
199
|
+
- lib/alimento.rb
|
200
|
+
- lib/alimento/alimento_.rb
|
201
|
+
- lib/alimento/list.rb
|
202
|
+
- lib/alimento/plato.rb
|
203
|
+
- lib/alimento/version.rb
|
204
|
+
homepage: https://github.com/ULL-ESIT-LPP-1718/tdd-carlaramos.git
|
205
|
+
licenses: []
|
206
|
+
metadata: {}
|
207
|
+
post_install_message:
|
208
|
+
rdoc_options: []
|
209
|
+
require_paths:
|
210
|
+
- lib
|
211
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '0'
|
216
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
217
|
+
requirements:
|
218
|
+
- - ">="
|
219
|
+
- !ruby/object:Gem::Version
|
220
|
+
version: '0'
|
221
|
+
requirements: []
|
222
|
+
rubyforge_project:
|
223
|
+
rubygems_version: 2.6.8
|
224
|
+
signing_key:
|
225
|
+
specification_version: 4
|
226
|
+
summary: Gema que describe un alimento.
|
227
|
+
test_files: []
|