dieta-alu0100226300 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/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Guardfile +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +49 -0
- data/Rakefile +6 -0
- data/algo.log +1 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/dieta.gemspec +39 -0
- data/documentacion/CODE_OF_CONDUCT_md.html +195 -0
- data/documentacion/Dieta.html +109 -0
- data/documentacion/Dietas.html +219 -0
- data/documentacion/Gemfile.html +100 -0
- data/documentacion/Gemfile_lock.html +182 -0
- data/documentacion/Guardfile.html +180 -0
- data/documentacion/LICENSE_txt.html +117 -0
- data/documentacion/Lista.html +457 -0
- data/documentacion/Menu.html +624 -0
- data/documentacion/Menu_alimento.html +221 -0
- data/documentacion/Menu_edad.html +221 -0
- data/documentacion/Object.html +116 -0
- data/documentacion/Plato.html +314 -0
- data/documentacion/README_md.html +173 -0
- data/documentacion/Rakefile.html +101 -0
- data/documentacion/bin/setup.html +101 -0
- data/documentacion/created.rid +19 -0
- data/documentacion/css/fonts.css +167 -0
- data/documentacion/css/rdoc.css +590 -0
- data/documentacion/dieta_gemspec.html +135 -0
- data/documentacion/fonts/Lato-Light.ttf +0 -0
- data/documentacion/fonts/Lato-LightItalic.ttf +0 -0
- data/documentacion/fonts/Lato-Regular.ttf +0 -0
- data/documentacion/fonts/Lato-RegularItalic.ttf +0 -0
- data/documentacion/fonts/SourceCodePro-Bold.ttf +0 -0
- data/documentacion/fonts/SourceCodePro-Regular.ttf +0 -0
- data/documentacion/images/add.png +0 -0
- data/documentacion/images/arrow_up.png +0 -0
- data/documentacion/images/brick.png +0 -0
- data/documentacion/images/brick_link.png +0 -0
- data/documentacion/images/bug.png +0 -0
- data/documentacion/images/bullet_black.png +0 -0
- data/documentacion/images/bullet_toggle_minus.png +0 -0
- data/documentacion/images/bullet_toggle_plus.png +0 -0
- data/documentacion/images/date.png +0 -0
- data/documentacion/images/delete.png +0 -0
- data/documentacion/images/find.png +0 -0
- data/documentacion/images/loadingAnimation.gif +0 -0
- data/documentacion/images/macFFBgHack.png +0 -0
- data/documentacion/images/package.png +0 -0
- data/documentacion/images/page_green.png +0 -0
- data/documentacion/images/page_white_text.png +0 -0
- data/documentacion/images/page_white_width.png +0 -0
- data/documentacion/images/plugin.png +0 -0
- data/documentacion/images/ruby.png +0 -0
- data/documentacion/images/tag_blue.png +0 -0
- data/documentacion/images/tag_green.png +0 -0
- data/documentacion/images/transparent.png +0 -0
- data/documentacion/images/wrench.png +0 -0
- data/documentacion/images/wrench_orange.png +0 -0
- data/documentacion/images/zoom.png +0 -0
- data/documentacion/index.html +119 -0
- data/documentacion/js/darkfish.js +161 -0
- data/documentacion/js/jquery.js +4 -0
- data/documentacion/js/navigation.js +142 -0
- data/documentacion/js/navigation.js.gz +0 -0
- data/documentacion/js/search.js +109 -0
- data/documentacion/js/search_index.js +1 -0
- data/documentacion/js/search_index.js.gz +0 -0
- data/documentacion/js/searcher.js +228 -0
- data/documentacion/js/searcher.js.gz +0 -0
- data/documentacion/table_of_contents.html +257 -0
- data/lib/dieta.rb +10 -0
- data/lib/dieta/dietas.rb +11 -0
- data/lib/dieta/lista.rb +65 -0
- data/lib/dieta/menu.rb +78 -0
- data/lib/dieta/menudsl.rb +58 -0
- data/lib/dieta/plato.rb +19 -0
- data/lib/dieta/version.rb +3 -0
- metadata +210 -0
data/lib/dieta/plato.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
class Plato
|
2
|
+
attr_reader :descripcion, :porcion, :gramos
|
3
|
+
def initialize descripcion, porcion, gramos
|
4
|
+
@descripcion, @porcion, @gramos = descripcion, porcion, gramos
|
5
|
+
end
|
6
|
+
|
7
|
+
def get_descripcion
|
8
|
+
@descripcion
|
9
|
+
end
|
10
|
+
# Dos objectos de la clase Plato sera iguales si lo son sus atributos
|
11
|
+
def == (otro)
|
12
|
+
self.class == otro.class && @descripcion ==otro.descripcion && @porcion == otro.porcion && @gramos == otro.gramos
|
13
|
+
end
|
14
|
+
|
15
|
+
def to_s
|
16
|
+
"#{descripcion}, #{porcion}, #{gramos}"
|
17
|
+
end
|
18
|
+
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,210 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dieta-alu0100226300
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Joram Real Gómez
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-12-15 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: Descripcion de la gema
|
98
|
+
email:
|
99
|
+
- alu0100226300@ull.edu.es
|
100
|
+
executables: []
|
101
|
+
extensions: []
|
102
|
+
extra_rdoc_files: []
|
103
|
+
files:
|
104
|
+
- ".gitignore"
|
105
|
+
- ".rspec"
|
106
|
+
- ".travis.yml"
|
107
|
+
- CODE_OF_CONDUCT.md
|
108
|
+
- Gemfile
|
109
|
+
- Guardfile
|
110
|
+
- LICENSE.txt
|
111
|
+
- README.md
|
112
|
+
- Rakefile
|
113
|
+
- algo.log
|
114
|
+
- bin/console
|
115
|
+
- bin/setup
|
116
|
+
- dieta.gemspec
|
117
|
+
- documentacion/CODE_OF_CONDUCT_md.html
|
118
|
+
- documentacion/Dieta.html
|
119
|
+
- documentacion/Dietas.html
|
120
|
+
- documentacion/Gemfile.html
|
121
|
+
- documentacion/Gemfile_lock.html
|
122
|
+
- documentacion/Guardfile.html
|
123
|
+
- documentacion/LICENSE_txt.html
|
124
|
+
- documentacion/Lista.html
|
125
|
+
- documentacion/Menu.html
|
126
|
+
- documentacion/Menu_alimento.html
|
127
|
+
- documentacion/Menu_edad.html
|
128
|
+
- documentacion/Object.html
|
129
|
+
- documentacion/Plato.html
|
130
|
+
- documentacion/README_md.html
|
131
|
+
- documentacion/Rakefile.html
|
132
|
+
- documentacion/bin/setup.html
|
133
|
+
- documentacion/created.rid
|
134
|
+
- documentacion/css/fonts.css
|
135
|
+
- documentacion/css/rdoc.css
|
136
|
+
- documentacion/dieta_gemspec.html
|
137
|
+
- documentacion/fonts/Lato-Light.ttf
|
138
|
+
- documentacion/fonts/Lato-LightItalic.ttf
|
139
|
+
- documentacion/fonts/Lato-Regular.ttf
|
140
|
+
- documentacion/fonts/Lato-RegularItalic.ttf
|
141
|
+
- documentacion/fonts/SourceCodePro-Bold.ttf
|
142
|
+
- documentacion/fonts/SourceCodePro-Regular.ttf
|
143
|
+
- documentacion/images/add.png
|
144
|
+
- documentacion/images/arrow_up.png
|
145
|
+
- documentacion/images/brick.png
|
146
|
+
- documentacion/images/brick_link.png
|
147
|
+
- documentacion/images/bug.png
|
148
|
+
- documentacion/images/bullet_black.png
|
149
|
+
- documentacion/images/bullet_toggle_minus.png
|
150
|
+
- documentacion/images/bullet_toggle_plus.png
|
151
|
+
- documentacion/images/date.png
|
152
|
+
- documentacion/images/delete.png
|
153
|
+
- documentacion/images/find.png
|
154
|
+
- documentacion/images/loadingAnimation.gif
|
155
|
+
- documentacion/images/macFFBgHack.png
|
156
|
+
- documentacion/images/package.png
|
157
|
+
- documentacion/images/page_green.png
|
158
|
+
- documentacion/images/page_white_text.png
|
159
|
+
- documentacion/images/page_white_width.png
|
160
|
+
- documentacion/images/plugin.png
|
161
|
+
- documentacion/images/ruby.png
|
162
|
+
- documentacion/images/tag_blue.png
|
163
|
+
- documentacion/images/tag_green.png
|
164
|
+
- documentacion/images/transparent.png
|
165
|
+
- documentacion/images/wrench.png
|
166
|
+
- documentacion/images/wrench_orange.png
|
167
|
+
- documentacion/images/zoom.png
|
168
|
+
- documentacion/index.html
|
169
|
+
- documentacion/js/darkfish.js
|
170
|
+
- documentacion/js/jquery.js
|
171
|
+
- documentacion/js/navigation.js
|
172
|
+
- documentacion/js/navigation.js.gz
|
173
|
+
- documentacion/js/search.js
|
174
|
+
- documentacion/js/search_index.js
|
175
|
+
- documentacion/js/search_index.js.gz
|
176
|
+
- documentacion/js/searcher.js
|
177
|
+
- documentacion/js/searcher.js.gz
|
178
|
+
- documentacion/table_of_contents.html
|
179
|
+
- lib/dieta.rb
|
180
|
+
- lib/dieta/dietas.rb
|
181
|
+
- lib/dieta/lista.rb
|
182
|
+
- lib/dieta/menu.rb
|
183
|
+
- lib/dieta/menudsl.rb
|
184
|
+
- lib/dieta/plato.rb
|
185
|
+
- lib/dieta/version.rb
|
186
|
+
homepage: https://github.com/ULL-ESIT-LPP-1617/menu-dietetico-alu0100226300.git
|
187
|
+
licenses:
|
188
|
+
- MIT
|
189
|
+
metadata: {}
|
190
|
+
post_install_message:
|
191
|
+
rdoc_options: []
|
192
|
+
require_paths:
|
193
|
+
- lib
|
194
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
195
|
+
requirements:
|
196
|
+
- - ">="
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: '0'
|
199
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
|
+
requirements:
|
201
|
+
- - ">="
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: '0'
|
204
|
+
requirements: []
|
205
|
+
rubyforge_project:
|
206
|
+
rubygems_version: 2.5.1
|
207
|
+
signing_key:
|
208
|
+
specification_version: 4
|
209
|
+
summary: sumario de la gema dieta
|
210
|
+
test_files: []
|