pract06 0.1.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/.gitignore +9 -0
- data/.travis.yml +5 -0
- data/Documentacion_rdoc/Datos.html +96 -0
- data/Documentacion_rdoc/Dieta.html +647 -0
- data/Documentacion_rdoc/Edad.html +311 -0
- data/Documentacion_rdoc/Gemfile.html +93 -0
- data/Documentacion_rdoc/Gemfile_lock.html +175 -0
- data/Documentacion_rdoc/Lse.html +679 -0
- data/Documentacion_rdoc/Menu_alimentos.html +312 -0
- data/Documentacion_rdoc/Object.html +182 -0
- data/Documentacion_rdoc/Pract06.html +110 -0
- data/Documentacion_rdoc/Pract08.html +110 -0
- data/Documentacion_rdoc/Pract09.html +110 -0
- data/Documentacion_rdoc/README_md.html +123 -0
- data/Documentacion_rdoc/Rakefile.html +94 -0
- data/Documentacion_rdoc/created.rid +13 -0
- data/Documentacion_rdoc/css/fonts.css +167 -0
- data/Documentacion_rdoc/css/rdoc.css +590 -0
- data/Documentacion_rdoc/fonts/Lato-Light.ttf +0 -0
- data/Documentacion_rdoc/fonts/Lato-LightItalic.ttf +0 -0
- data/Documentacion_rdoc/fonts/Lato-Regular.ttf +0 -0
- data/Documentacion_rdoc/fonts/Lato-RegularItalic.ttf +0 -0
- data/Documentacion_rdoc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/Documentacion_rdoc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/Documentacion_rdoc/images/add.png +0 -0
- data/Documentacion_rdoc/images/arrow_up.png +0 -0
- data/Documentacion_rdoc/images/brick.png +0 -0
- data/Documentacion_rdoc/images/brick_link.png +0 -0
- data/Documentacion_rdoc/images/bug.png +0 -0
- data/Documentacion_rdoc/images/bullet_black.png +0 -0
- data/Documentacion_rdoc/images/bullet_toggle_minus.png +0 -0
- data/Documentacion_rdoc/images/bullet_toggle_plus.png +0 -0
- data/Documentacion_rdoc/images/date.png +0 -0
- data/Documentacion_rdoc/images/delete.png +0 -0
- data/Documentacion_rdoc/images/find.png +0 -0
- data/Documentacion_rdoc/images/loadingAnimation.gif +0 -0
- data/Documentacion_rdoc/images/macFFBgHack.png +0 -0
- data/Documentacion_rdoc/images/package.png +0 -0
- data/Documentacion_rdoc/images/page_green.png +0 -0
- data/Documentacion_rdoc/images/page_white_text.png +0 -0
- data/Documentacion_rdoc/images/page_white_width.png +0 -0
- data/Documentacion_rdoc/images/plugin.png +0 -0
- data/Documentacion_rdoc/images/ruby.png +0 -0
- data/Documentacion_rdoc/images/tag_blue.png +0 -0
- data/Documentacion_rdoc/images/tag_green.png +0 -0
- data/Documentacion_rdoc/images/transparent.png +0 -0
- data/Documentacion_rdoc/images/wrench.png +0 -0
- data/Documentacion_rdoc/images/wrench_orange.png +0 -0
- data/Documentacion_rdoc/images/zoom.png +0 -0
- data/Documentacion_rdoc/index.html +135 -0
- data/Documentacion_rdoc/js/darkfish.js +161 -0
- data/Documentacion_rdoc/js/jquery.js +4 -0
- data/Documentacion_rdoc/js/navigation.js +142 -0
- data/Documentacion_rdoc/js/navigation.js.gz +0 -0
- data/Documentacion_rdoc/js/search.js +109 -0
- data/Documentacion_rdoc/js/search_index.js +1 -0
- data/Documentacion_rdoc/js/search_index.js.gz +0 -0
- data/Documentacion_rdoc/js/searcher.js +229 -0
- data/Documentacion_rdoc/js/searcher.js.gz +0 -0
- data/Documentacion_rdoc/pract06_gemspec.html +127 -0
- data/Documentacion_rdoc/table_of_contents.html +248 -0
- data/Gemfile +4 -0
- data/Guardfile +82 -0
- data/README.md +19 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/pract06.rb +16 -0
- data/lib/pract06/Dieta.rb +122 -0
- data/lib/pract06/menu.rb +164 -0
- data/lib/pract06/menu_dieta.rb +162 -0
- data/lib/pract06/version.rb +15 -0
- data/pract06.gemspec +39 -0
- metadata +201 -0
data/lib/pract06/menu.rb
ADDED
@@ -0,0 +1,164 @@
|
|
1
|
+
#Mayra Garcia, LPP
|
2
|
+
#PRACTICA 11
|
3
|
+
|
4
|
+
#primer error:
|
5
|
+
#`require': cannot load such file -- pract06/nutrucion.rb (LoadError)
|
6
|
+
Plat=Struct.new(:descripcion, :porcion, :gramos)
|
7
|
+
|
8
|
+
class Menu
|
9
|
+
attr_reader :tit,:dato
|
10
|
+
def initialize(t,&block)
|
11
|
+
@dato=t
|
12
|
+
@tit = nil
|
13
|
+
@ingesta = []
|
14
|
+
@platos = Lse.new()
|
15
|
+
|
16
|
+
#vct, proteninas, grasas, hidratos, tamaño= 4
|
17
|
+
@porcentaje = []
|
18
|
+
|
19
|
+
instance_eval &block if block_given?
|
20
|
+
end
|
21
|
+
|
22
|
+
#Este metodo modifica el atributo titulo de la clase.
|
23
|
+
def titulo(k)
|
24
|
+
@tit=k
|
25
|
+
end
|
26
|
+
|
27
|
+
#En este metodos e insertaran los atributos de
|
28
|
+
#cada uno de los distintos platos, en una lista.
|
29
|
+
def plato(atributos = {})
|
30
|
+
@platos.insertar(Plat.new(atributos[:descripcion],atributos[:porcion],atributos[:gramos]))
|
31
|
+
end
|
32
|
+
|
33
|
+
#enseñar los distintos platos almacenado en la lista
|
34
|
+
def get_platos
|
35
|
+
@platos.mostrar_lista_final
|
36
|
+
end
|
37
|
+
|
38
|
+
#se almacenaran los porcentajes del todo el menu.
|
39
|
+
def porcentajes(datos={})
|
40
|
+
i=0
|
41
|
+
if datos[:vct]
|
42
|
+
@porcentaje[i]=datos[:vct]
|
43
|
+
i=i+1
|
44
|
+
end
|
45
|
+
if datos[:proteinas]
|
46
|
+
@porcentaje[i]=datos[:proteinas]
|
47
|
+
i=i+1
|
48
|
+
end
|
49
|
+
if datos[:grasas]
|
50
|
+
@porcentaje[i]=datos[:grasas]
|
51
|
+
i=i+1
|
52
|
+
end
|
53
|
+
if datos[:hidratos]
|
54
|
+
@porcentaje[i]=datos[:hidratos]
|
55
|
+
i=i+1
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
#enseñar nuestros porcentajes
|
60
|
+
def get_porcentajes
|
61
|
+
i=@porcentaje.size
|
62
|
+
puts "\nPorcentajes: \n"
|
63
|
+
puts "Vct: #{@porcentaje[0]} || Proteinas: #{@porcentaje[1]}|| Grasas: #{@porcentaje[2]}|| Hidratos: #{@porcentaje[3]}."
|
64
|
+
end
|
65
|
+
|
66
|
+
#a este metodo se la pasaran dos valores del rango de
|
67
|
+
#ingesta de comidad diaria del menu.
|
68
|
+
def ingesta(rango = {})
|
69
|
+
if (rango.size == 2)
|
70
|
+
if rango[:min]
|
71
|
+
@ingesta[0]=rango[:min]
|
72
|
+
end
|
73
|
+
if rango[:max]
|
74
|
+
@ingesta[1]=rango[:max]
|
75
|
+
end
|
76
|
+
end
|
77
|
+
end
|
78
|
+
|
79
|
+
#metodo para enseñar el contenido total de nuestro menu.
|
80
|
+
def to_s
|
81
|
+
puts "Titulo: #{tit}"
|
82
|
+
puts "Datos: #{dato} \n ===============================\n"
|
83
|
+
puts " Ingesta: #{@ingesta[0]}-#{@ingesta[1]}"
|
84
|
+
get_platos
|
85
|
+
get_porcentajes
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
##### CLASE DE GRUPO BASADA EN TIPO DE ALIMENTOS
|
92
|
+
class Menu_alimentos < Dieta
|
93
|
+
|
94
|
+
#metodo de acceso a la variable de instancia
|
95
|
+
attr_reader :Tipo
|
96
|
+
|
97
|
+
def initialize(t)
|
98
|
+
super(0,0,0,0,0,0,0)
|
99
|
+
#la variable tipo almacenara el conjunto de alimentos
|
100
|
+
#a los que pertenece la dieta
|
101
|
+
@Tipo = t
|
102
|
+
end
|
103
|
+
|
104
|
+
#Metodo instancia, permite cambiar el tipo del drupo de alimentos
|
105
|
+
def change_type(tipo)
|
106
|
+
@Tipo=tipo
|
107
|
+
end
|
108
|
+
##Comparable_____________________________________
|
109
|
+
def <=>(otro)
|
110
|
+
#Implementanto este apartado, elaboramos un metodo
|
111
|
+
#que distingue no solo entre calorias si no
|
112
|
+
#tambien en el porcentaje de grasas, proteinas, etc.
|
113
|
+
if(self.kcal == otro.kcal)
|
114
|
+
#self.get_prot <=> otro.get_prot
|
115
|
+
#self.get_gras <=> otro.get_gras
|
116
|
+
self.get_hidr <=> otro.get_hidr
|
117
|
+
else
|
118
|
+
self.kcal <=> otro.kcal
|
119
|
+
end
|
120
|
+
end
|
121
|
+
|
122
|
+
#Metodo instancia, permite intersar una dieta en el grupo
|
123
|
+
def <<(dieta)
|
124
|
+
super(dieta.tipo_dieta, dieta.ingesta, dieta.descripcion, dieta.racion, dieta.cantidad, dieta.kcal, dieta.percent)
|
125
|
+
end
|
126
|
+
end
|
127
|
+
|
128
|
+
|
129
|
+
##### CLASE DE GRUPO BASADA EN EDAD
|
130
|
+
class Edad < Dieta
|
131
|
+
|
132
|
+
#Metodo de acceso a al variable de instancia
|
133
|
+
attr_reader :edad
|
134
|
+
|
135
|
+
def initialize(edad)
|
136
|
+
super(0,0,0,0,0,0,0)
|
137
|
+
@edad=edad
|
138
|
+
end
|
139
|
+
|
140
|
+
#Metodo instancia, permite cambiar el atributo de rango de edad del grupo de edades.
|
141
|
+
def change_edad(a,b)
|
142
|
+
@edad= "de #{a} a #{b} años"
|
143
|
+
end
|
144
|
+
|
145
|
+
##Comparable_____________________________________
|
146
|
+
|
147
|
+
def <=>(otro)
|
148
|
+
#Implementanto este apartado, elaboramos un metodo
|
149
|
+
#que distingue no solo entre calorias si no
|
150
|
+
#tambien en el porcentaje de grasas, proteinas, etc.
|
151
|
+
if(self.kcal == otro.kcal)
|
152
|
+
#self.get_prot <=> otro.get_prot
|
153
|
+
#self.get_gras <=> otro.get_gras
|
154
|
+
self.get_hidr <=> otro.get_hidr
|
155
|
+
else
|
156
|
+
self.kcal <=> otro.kcal
|
157
|
+
end
|
158
|
+
end
|
159
|
+
|
160
|
+
#Metodo instancia, permite insertar una dieta
|
161
|
+
def <<(dieta)
|
162
|
+
super(dieta.tipo_dieta, dieta.ingesta, dieta.descripcion, dieta.racion, dieta.cantidad, dieta.kcal, dieta.percent)
|
163
|
+
end
|
164
|
+
end
|
@@ -0,0 +1,162 @@
|
|
1
|
+
#Mayra Garcia, LPP
|
2
|
+
#PRACTICA 9
|
3
|
+
Node = Struct.new(:value, :next, :prev)
|
4
|
+
|
5
|
+
class Lse
|
6
|
+
|
7
|
+
#mixin
|
8
|
+
include Enumerable
|
9
|
+
|
10
|
+
#Acceso a los atributos mediante metodos
|
11
|
+
attr_reader :actual, :fin, :Max
|
12
|
+
|
13
|
+
def initialize
|
14
|
+
@Max = 0
|
15
|
+
@actual = nil
|
16
|
+
@fin = nil
|
17
|
+
end
|
18
|
+
|
19
|
+
#crea el nodo en base al dato e intenta insertarlo por el final de la lista
|
20
|
+
def insertar(value)
|
21
|
+
insert(Node.new(value, nil, nil))
|
22
|
+
end
|
23
|
+
|
24
|
+
#inserta un nodo al final de la lista
|
25
|
+
def insert(value)
|
26
|
+
if @Max <= TAM_MAX_LIST
|
27
|
+
if @actual.nil?
|
28
|
+
@actual = value
|
29
|
+
@fin = value
|
30
|
+
else
|
31
|
+
value.next = @actual
|
32
|
+
@actual.prev = value
|
33
|
+
value.prev = nil
|
34
|
+
@actual = value
|
35
|
+
end
|
36
|
+
@Max+= 1
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
#retorna el nodo apuntado por actual
|
41
|
+
def actual
|
42
|
+
@actual
|
43
|
+
end
|
44
|
+
|
45
|
+
#retorna una cadena que contiene el contenido del nodo apuntado por la variable actual
|
46
|
+
def mostrar_actual
|
47
|
+
"#{@actual[:value]}\n\n"
|
48
|
+
end
|
49
|
+
|
50
|
+
#retornara una cadena que contiene el valor que guarda la estructura del nodo que se ha insertado
|
51
|
+
#en el apuntador fin, podra ser el primero insertado.
|
52
|
+
def mostrar_fin
|
53
|
+
"#{@fin[:value]}\n\n"
|
54
|
+
end
|
55
|
+
|
56
|
+
|
57
|
+
#metodo que enseña la lista empezando por el apuntador actual, que
|
58
|
+
#empezara por el ultimo elemento añadido
|
59
|
+
|
60
|
+
#adaptado para enseñar el estruc, seria conveniente diseñar atra
|
61
|
+
#alaternativa para motrar los datos.
|
62
|
+
|
63
|
+
def mostrar_lista_actual
|
64
|
+
var = ""
|
65
|
+
aux= @actual
|
66
|
+
j= @Max
|
67
|
+
if(@actual != nil)
|
68
|
+
while(aux[:next] != nil) do
|
69
|
+
muestra = aux[:value]
|
70
|
+
aux = aux[:next]
|
71
|
+
|
72
|
+
i = j + 96
|
73
|
+
var += "#{(i).chr} )#{muestra[:descripcion]},#{muestra[:porcion]},#{muestra[:gramos]}"
|
74
|
+
j-= 1
|
75
|
+
puts var
|
76
|
+
var = ""
|
77
|
+
end
|
78
|
+
i = j + 96
|
79
|
+
var += "#{(i).chr} )#{aux[:value][:descripcion]},#{aux[:value][:porcion]},#{aux[:value][:gramos]}"
|
80
|
+
puts var
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
#metodo que enseña la lista empezando por el apuntador fin
|
85
|
+
#empezara por el primer elemento añadido
|
86
|
+
def mostrar_lista_final
|
87
|
+
var = ""
|
88
|
+
aux= @fin
|
89
|
+
j= 0
|
90
|
+
if(@fin != nil)
|
91
|
+
while aux[:prev] != nil do
|
92
|
+
muestra = aux[:value]
|
93
|
+
aux = aux[:prev]
|
94
|
+
i = j + 97
|
95
|
+
var += "#{(i).chr} )#{muestra[:descripcion]},#{muestra[:porcion]},#{muestra[:gramos]}"
|
96
|
+
j+= 1
|
97
|
+
puts var
|
98
|
+
var = ""
|
99
|
+
end
|
100
|
+
i = j + 97
|
101
|
+
var +="#{(i).chr} )#{aux[:value][:descripcion]},#{aux[:value][:porcion]},#{aux[:value][:gramos]}"
|
102
|
+
puts var
|
103
|
+
end
|
104
|
+
end
|
105
|
+
|
106
|
+
#extrae y retorna el elemento apuntado por el apuntador fin
|
107
|
+
def extrac_fin
|
108
|
+
if(@fin!= nil)
|
109
|
+
aux = @fin
|
110
|
+
@fin = @fin[:next]
|
111
|
+
@Max-= 1
|
112
|
+
var =aux[:value]
|
113
|
+
else
|
114
|
+
var =nil
|
115
|
+
end
|
116
|
+
var
|
117
|
+
end
|
118
|
+
|
119
|
+
#extrae y retorna el elemento apuntado por actual
|
120
|
+
def extrac_actual
|
121
|
+
if(@actual!= nil)
|
122
|
+
aux = @actual
|
123
|
+
@actual = @actual[:prev]
|
124
|
+
@Max-= 1
|
125
|
+
var = aux[:value]
|
126
|
+
else
|
127
|
+
var = nil
|
128
|
+
end
|
129
|
+
var
|
130
|
+
end
|
131
|
+
|
132
|
+
#retorna el valor de la variable max, que contiene el numero actual de nodos que contiene la lista
|
133
|
+
def tam
|
134
|
+
@Max
|
135
|
+
end
|
136
|
+
|
137
|
+
|
138
|
+
#metodo para limpiar la lista
|
139
|
+
def clean
|
140
|
+
while(@actual != nil) do
|
141
|
+
aux= @actual
|
142
|
+
@actual = @actual[:next]
|
143
|
+
aux = nil
|
144
|
+
end
|
145
|
+
|
146
|
+
@actual = nil
|
147
|
+
@fin = nil
|
148
|
+
@Max = 0
|
149
|
+
end
|
150
|
+
|
151
|
+
|
152
|
+
#Metodo de acceso a acada elemento, Comparable y Enumerable
|
153
|
+
def each
|
154
|
+
aux = @actual
|
155
|
+
while(aux != nil)
|
156
|
+
yield aux[:value]
|
157
|
+
aux= aux[:next]
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
|
162
|
+
end
|
data/pract06.gemspec
ADDED
@@ -0,0 +1,39 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'pract06/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "pract06"
|
8
|
+
spec.version = Pract11::VERSION #nueva version de la practica 6
|
9
|
+
spec.authors = ["Mayra Garcia Cortes"]
|
10
|
+
spec.email = ["alu0100831818@ull.edu.es"]
|
11
|
+
|
12
|
+
spec.summary = %q{Practica 11, DSL en ruby, para la clase menu dietetico}
|
13
|
+
spec.description = %q{Se va a crear un dsl para la clase menu dietetico en ruby}
|
14
|
+
spec.homepage = "https://github.com/ULL-ESIT-LPP-1617/menu-dietetico-alu0100831818.git"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
20
|
+
else
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
22
|
+
"public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
f.match(%r{^(test|spec|features)/})
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
spec.add_development_dependency "bundler", "~> 1.13"
|
33
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
34
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
35
|
+
spec.add_development_dependency "guard"
|
36
|
+
spec.add_development_dependency "guard-rspec"
|
37
|
+
spec.add_development_dependency "guard-bundler"
|
38
|
+
|
39
|
+
end
|
metadata
ADDED
@@ -0,0 +1,201 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: pract06
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Mayra Garcia Cortes
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-12-11 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.13'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.13'
|
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
|
+
description: Se va a crear un dsl para la clase menu dietetico en ruby
|
98
|
+
email:
|
99
|
+
- alu0100831818@ull.edu.es
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".travis.yml"
|
106
|
+
- Documentacion_rdoc/Datos.html
|
107
|
+
- Documentacion_rdoc/Dieta.html
|
108
|
+
- Documentacion_rdoc/Edad.html
|
109
|
+
- Documentacion_rdoc/Gemfile.html
|
110
|
+
- Documentacion_rdoc/Gemfile_lock.html
|
111
|
+
- Documentacion_rdoc/Lse.html
|
112
|
+
- Documentacion_rdoc/Menu_alimentos.html
|
113
|
+
- Documentacion_rdoc/Object.html
|
114
|
+
- Documentacion_rdoc/Pract06.html
|
115
|
+
- Documentacion_rdoc/Pract08.html
|
116
|
+
- Documentacion_rdoc/Pract09.html
|
117
|
+
- Documentacion_rdoc/README_md.html
|
118
|
+
- Documentacion_rdoc/Rakefile.html
|
119
|
+
- Documentacion_rdoc/created.rid
|
120
|
+
- Documentacion_rdoc/css/fonts.css
|
121
|
+
- Documentacion_rdoc/css/rdoc.css
|
122
|
+
- Documentacion_rdoc/fonts/Lato-Light.ttf
|
123
|
+
- Documentacion_rdoc/fonts/Lato-LightItalic.ttf
|
124
|
+
- Documentacion_rdoc/fonts/Lato-Regular.ttf
|
125
|
+
- Documentacion_rdoc/fonts/Lato-RegularItalic.ttf
|
126
|
+
- Documentacion_rdoc/fonts/SourceCodePro-Bold.ttf
|
127
|
+
- Documentacion_rdoc/fonts/SourceCodePro-Regular.ttf
|
128
|
+
- Documentacion_rdoc/images/add.png
|
129
|
+
- Documentacion_rdoc/images/arrow_up.png
|
130
|
+
- Documentacion_rdoc/images/brick.png
|
131
|
+
- Documentacion_rdoc/images/brick_link.png
|
132
|
+
- Documentacion_rdoc/images/bug.png
|
133
|
+
- Documentacion_rdoc/images/bullet_black.png
|
134
|
+
- Documentacion_rdoc/images/bullet_toggle_minus.png
|
135
|
+
- Documentacion_rdoc/images/bullet_toggle_plus.png
|
136
|
+
- Documentacion_rdoc/images/date.png
|
137
|
+
- Documentacion_rdoc/images/delete.png
|
138
|
+
- Documentacion_rdoc/images/find.png
|
139
|
+
- Documentacion_rdoc/images/loadingAnimation.gif
|
140
|
+
- Documentacion_rdoc/images/macFFBgHack.png
|
141
|
+
- Documentacion_rdoc/images/package.png
|
142
|
+
- Documentacion_rdoc/images/page_green.png
|
143
|
+
- Documentacion_rdoc/images/page_white_text.png
|
144
|
+
- Documentacion_rdoc/images/page_white_width.png
|
145
|
+
- Documentacion_rdoc/images/plugin.png
|
146
|
+
- Documentacion_rdoc/images/ruby.png
|
147
|
+
- Documentacion_rdoc/images/tag_blue.png
|
148
|
+
- Documentacion_rdoc/images/tag_green.png
|
149
|
+
- Documentacion_rdoc/images/transparent.png
|
150
|
+
- Documentacion_rdoc/images/wrench.png
|
151
|
+
- Documentacion_rdoc/images/wrench_orange.png
|
152
|
+
- Documentacion_rdoc/images/zoom.png
|
153
|
+
- Documentacion_rdoc/index.html
|
154
|
+
- Documentacion_rdoc/js/darkfish.js
|
155
|
+
- Documentacion_rdoc/js/jquery.js
|
156
|
+
- Documentacion_rdoc/js/navigation.js
|
157
|
+
- Documentacion_rdoc/js/navigation.js.gz
|
158
|
+
- Documentacion_rdoc/js/search.js
|
159
|
+
- Documentacion_rdoc/js/search_index.js
|
160
|
+
- Documentacion_rdoc/js/search_index.js.gz
|
161
|
+
- Documentacion_rdoc/js/searcher.js
|
162
|
+
- Documentacion_rdoc/js/searcher.js.gz
|
163
|
+
- Documentacion_rdoc/pract06_gemspec.html
|
164
|
+
- Documentacion_rdoc/table_of_contents.html
|
165
|
+
- Gemfile
|
166
|
+
- Guardfile
|
167
|
+
- README.md
|
168
|
+
- Rakefile
|
169
|
+
- bin/console
|
170
|
+
- bin/setup
|
171
|
+
- lib/pract06.rb
|
172
|
+
- lib/pract06/Dieta.rb
|
173
|
+
- lib/pract06/menu.rb
|
174
|
+
- lib/pract06/menu_dieta.rb
|
175
|
+
- lib/pract06/version.rb
|
176
|
+
- pract06.gemspec
|
177
|
+
homepage: https://github.com/ULL-ESIT-LPP-1617/menu-dietetico-alu0100831818.git
|
178
|
+
licenses: []
|
179
|
+
metadata:
|
180
|
+
allowed_push_host: https://rubygems.org
|
181
|
+
post_install_message:
|
182
|
+
rdoc_options: []
|
183
|
+
require_paths:
|
184
|
+
- lib
|
185
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
186
|
+
requirements:
|
187
|
+
- - ">="
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
191
|
+
requirements:
|
192
|
+
- - ">="
|
193
|
+
- !ruby/object:Gem::Version
|
194
|
+
version: '0'
|
195
|
+
requirements: []
|
196
|
+
rubyforge_project:
|
197
|
+
rubygems_version: 2.5.1
|
198
|
+
signing_key:
|
199
|
+
specification_version: 4
|
200
|
+
summary: Practica 11, DSL en ruby, para la clase menu dietetico
|
201
|
+
test_files: []
|