comida 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.
Files changed (81) hide show
  1. checksums.yaml +7 -0
  2. data/.comida.gemspec.swo +0 -0
  3. data/.comida.gemspec.swp +0 -0
  4. data/.coveralls.yml +2 -0
  5. data/.gitignore +13 -0
  6. data/.rspec +3 -0
  7. data/.travis.yml +7 -0
  8. data/Gemfile +4 -0
  9. data/Gemfile.lock +95 -0
  10. data/Guardfile +82 -0
  11. data/README.md +52 -0
  12. data/Rakefile +6 -0
  13. data/bin/console +14 -0
  14. data/bin/setup +8 -0
  15. data/comida.gemspec +38 -0
  16. data/docs/Comida/Comida.html +463 -0
  17. data/docs/Comida/Error.html +105 -0
  18. data/docs/Comida/Lista.html +627 -0
  19. data/docs/Comida/Plato.html +444 -0
  20. data/docs/Comida/PlatoHija.html +450 -0
  21. data/docs/Comida.html +228 -0
  22. data/docs/Gemfile.html +98 -0
  23. data/docs/Gemfile_lock.html +177 -0
  24. data/docs/Guardfile.html +165 -0
  25. data/docs/README_md.html +146 -0
  26. data/docs/Rakefile.html +100 -0
  27. data/docs/bin/setup.html +100 -0
  28. data/docs/comida_gemspec.html +132 -0
  29. data/docs/created.rid +16 -0
  30. data/docs/css/fonts.css +167 -0
  31. data/docs/css/rdoc.css +590 -0
  32. data/docs/fonts/Lato-Light.ttf +0 -0
  33. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  34. data/docs/fonts/Lato-Regular.ttf +0 -0
  35. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  36. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  37. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  38. data/docs/images/add.png +0 -0
  39. data/docs/images/arrow_up.png +0 -0
  40. data/docs/images/brick.png +0 -0
  41. data/docs/images/brick_link.png +0 -0
  42. data/docs/images/bug.png +0 -0
  43. data/docs/images/bullet_black.png +0 -0
  44. data/docs/images/bullet_toggle_minus.png +0 -0
  45. data/docs/images/bullet_toggle_plus.png +0 -0
  46. data/docs/images/date.png +0 -0
  47. data/docs/images/delete.png +0 -0
  48. data/docs/images/find.png +0 -0
  49. data/docs/images/loadingAnimation.gif +0 -0
  50. data/docs/images/macFFBgHack.png +0 -0
  51. data/docs/images/package.png +0 -0
  52. data/docs/images/page_green.png +0 -0
  53. data/docs/images/page_white_text.png +0 -0
  54. data/docs/images/page_white_width.png +0 -0
  55. data/docs/images/plugin.png +0 -0
  56. data/docs/images/ruby.png +0 -0
  57. data/docs/images/tag_blue.png +0 -0
  58. data/docs/images/tag_green.png +0 -0
  59. data/docs/images/transparent.png +0 -0
  60. data/docs/images/wrench.png +0 -0
  61. data/docs/images/wrench_orange.png +0 -0
  62. data/docs/images/zoom.png +0 -0
  63. data/docs/index.html +115 -0
  64. data/docs/js/darkfish.js +161 -0
  65. data/docs/js/jquery.js +4 -0
  66. data/docs/js/navigation.js +141 -0
  67. data/docs/js/navigation.js.gz +0 -0
  68. data/docs/js/search.js +109 -0
  69. data/docs/js/search_index.js +1 -0
  70. data/docs/js/search_index.js.gz +0 -0
  71. data/docs/js/searcher.js +229 -0
  72. data/docs/js/searcher.js.gz +0 -0
  73. data/docs/table_of_contents.html +294 -0
  74. data/lib/comida/food.rb +99 -0
  75. data/lib/comida/lista.rb +167 -0
  76. data/lib/comida/menu.rb +79 -0
  77. data/lib/comida/palto_bloque.rb +59 -0
  78. data/lib/comida/plato.rb +233 -0
  79. data/lib/comida/version.rb +4 -0
  80. data/lib/comida.rb +12 -0
  81. metadata +220 -0
data/docs/Comida.html ADDED
@@ -0,0 +1,228 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>module Comida - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="module">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="./index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="./table_of_contents.html#pages">Pages</a>
33
+ <a href="./table_of_contents.html#classes">Classes</a>
34
+ <a href="./table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="search-section" role="search" class="project-section initially-hidden">
39
+ <form action="#" method="get" accept-charset="utf-8">
40
+ <div id="search-field-wrapper">
41
+ <input id="search-field" role="combobox" aria-label="Search"
42
+ aria-autocomplete="list" aria-controls="search-results"
43
+ type="text" name="search" placeholder="Search" spellcheck="false"
44
+ title="Type to search, Up and Down to navigate, Enter to load">
45
+ </div>
46
+
47
+ <ul id="search-results" aria-label="Search Results"
48
+ aria-busy="false" aria-expanded="false"
49
+ aria-atomic="false" class="initially-hidden"></ul>
50
+ </form>
51
+ </div>
52
+
53
+ </div>
54
+
55
+
56
+ <div class="nav-section">
57
+ <h3>Table of Contents</h3>
58
+
59
+ <ul class="link-list" role="directory">
60
+ <li><a href="#module-Comida-label-Documentacion+RDOC">Documentacion RDOC</a>
61
+ <li><a href="#module-Comida-label-Clase+Comida">Clase Comida</a>
62
+ <li><a href="#module-Comida-label-Documentacion+RDOC">Documentacion RDOC</a>
63
+ <li><a href="#module-Comida-label-Clase+Lista">Clase Lista</a>
64
+ <li><a href="#module-Comida-label-Documentacion+RDOC">Documentacion RDOC</a>
65
+ <li><a href="#module-Comida-label-Clase+Plato">Clase Plato</a>
66
+ </ul>
67
+ </div>
68
+
69
+
70
+ <div id="class-metadata">
71
+
72
+
73
+
74
+
75
+
76
+ </div>
77
+ </nav>
78
+
79
+ <main role="main" aria-labelledby="module-Comida">
80
+ <h1 id="module-Comida" class="module">
81
+ module Comida
82
+ </h1>
83
+
84
+ <section class="description">
85
+ <dl class="rdoc-list note-list"><dt>Autor
86
+ <dd>
87
+ <p>Christian Torres Gonzalez</p>
88
+ </dd></dl>
89
+
90
+ <p>Universidad de La laguna Lenguajes y Paradigmas de Programacion</p>
91
+
92
+ <h2 id="module-Comida-label-Documentacion+RDOC">Documentacion RDOC<span><a href="#module-Comida-label-Documentacion+RDOC">&para;</a> <a href="#top">&uarr;</a></span></h2>
93
+
94
+ <h3 id="module-Comida-label-Clase+Comida">Clase <a href="Comida/Comida.html"><code>Comida</code></a><span><a href="#module-Comida-label-Clase+Comida">&para;</a> <a href="#top">&uarr;</a></span></h3>
95
+
96
+ <p>Definición de la clase <a href="Comida/Comida.html"><code>Comida</code></a> con los metodos:</p>
97
+ <ul><li>
98
+ <p>metodo initialize</p>
99
+ </li><li>
100
+ <p>&lt;=&gt;</p>
101
+ </li><li>
102
+ <p>to_s</p>
103
+ </li><li>
104
+ <p>calculo_valor_energetico</p>
105
+ </li><li>
106
+ <p>impacto_ambiental_hombre</p>
107
+ </li><li>
108
+ <p>impacto_ambiental_mujer</p>
109
+ </li></ul>
110
+ <dl class="rdoc-list note-list"><dt>Autor
111
+ <dd>
112
+ <p>Christian Torres Gonzalez</p>
113
+ </dd></dl>
114
+
115
+ <p>Universidad de La laguna Lenguajes y Paradigmas de Programacion</p>
116
+
117
+ <h2 id="module-Comida-label-Documentacion+RDOC">Documentacion RDOC<span><a href="#module-Comida-label-Documentacion+RDOC">&para;</a> <a href="#top">&uarr;</a></span></h2>
118
+
119
+ <h3 id="module-Comida-label-Clase+Lista">Clase <a href="Comida/Lista.html"><code>Lista</code></a><span><a href="#module-Comida-label-Clase+Lista">&para;</a> <a href="#top">&uarr;</a></span></h3>
120
+
121
+ <p>Definición de la clase <a href="Comida/Lista.html"><code>Lista</code></a> con los metodos:</p>
122
+ <ul><li>
123
+ <p>metodo initialize</p>
124
+ </li><li>
125
+ <p>each</p>
126
+ </li><li>
127
+ <p>insert_tail</p>
128
+ </li><li>
129
+ <p>isnert_head</p>
130
+ </li><li>
131
+ <p>insert_muchos_head</p>
132
+ </li><li>
133
+ <p>insert_muchos_tail</p>
134
+ </li><li>
135
+ <p>extract_head</p>
136
+ </li><li>
137
+ <p>extract_tail</p>
138
+ </li><li>
139
+ <p>calculo_emisiones_ei</p>
140
+ </li><li>
141
+ <p>calculo_emisiones_ei_anuales</p>
142
+ </li><li>
143
+ <p>calculo_terreno</p>
144
+ </li></ul>
145
+ <dl class="rdoc-list note-list"><dt>Autor
146
+ <dd>
147
+ <p>Christian Torres Gonzalez</p>
148
+ </dd></dl>
149
+
150
+ <p>Universidad de La laguna Lenguajes y Paradigmas de Programacion</p>
151
+
152
+ <h2 id="module-Comida-label-Documentacion+RDOC">Documentacion RDOC<span><a href="#module-Comida-label-Documentacion+RDOC">&para;</a> <a href="#top">&uarr;</a></span></h2>
153
+
154
+ <h3 id="module-Comida-label-Clase+Plato">Clase <a href="Comida/Plato.html"><code>Plato</code></a><span><a href="#module-Comida-label-Clase+Plato">&para;</a> <a href="#top">&uarr;</a></span></h3>
155
+
156
+ <p>Definición de la clase <a href="Comida/Plato.html"><code>Plato</code></a> con los metodos:</p>
157
+ <ul><li>
158
+ <p>metodo initialize</p>
159
+ </li><li>
160
+ <p>porcentaje_proteinas</p>
161
+ </li><li>
162
+ <p>porcentaje_lipidos</p>
163
+ </li><li>
164
+ <p>porcentaje_carbohidratos</p>
165
+ </li><li>
166
+ <p>calculo_valor_calorico_total</p>
167
+ </li><li>
168
+ <p>to_s</p>
169
+ </li></ul>
170
+
171
+ <p>Definicion de la clase PlatoHIja con metodos:</p>
172
+ <ul><li>
173
+ <p>initialize</p>
174
+ </li><li>
175
+ <p>&lt;=&gt;</p>
176
+ </li><li>
177
+ <p>calculo_emisiones_diarias</p>
178
+ </li><li>
179
+ <p>calculo_metros_terreno</p>
180
+ </li><li>
181
+ <p>to_s</p>
182
+ </li><li>
183
+ <p>huella_nutricional</p>
184
+ </li></ul>
185
+
186
+ </section>
187
+
188
+
189
+ <section id="5Buntitled-5D" class="documentation-section">
190
+
191
+
192
+
193
+
194
+
195
+ <section class="constants-list">
196
+ <header>
197
+ <h3>Constants</h3>
198
+ </header>
199
+ <dl>
200
+
201
+ <dt id="Nodo">Nodo
202
+
203
+ <dd><p>Estructura utilizada para la lista, es decir, cada lista va a contener un atributovalue que va a ser el alimento que se va a utilizar, y los atributos next y prev para poder moverse por la lista</p>
204
+
205
+
206
+ <dt id="VERSION">VERSION
207
+
208
+ <dd><p>Constante para indicar version</p>
209
+
210
+
211
+ </dl>
212
+ </section>
213
+
214
+
215
+
216
+
217
+
218
+ </section>
219
+
220
+ </main>
221
+
222
+
223
+ <footer id="validator-badges" role="contentinfo">
224
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
225
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.0.
226
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
227
+ </footer>
228
+
data/docs/Gemfile.html ADDED
@@ -0,0 +1,98 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>Gemfile - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="file">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="./index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="./table_of_contents.html#pages">Pages</a>
33
+ <a href="./table_of_contents.html#classes">Classes</a>
34
+ <a href="./table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="search-section" role="search" class="project-section initially-hidden">
39
+ <form action="#" method="get" accept-charset="utf-8">
40
+ <div id="search-field-wrapper">
41
+ <input id="search-field" role="combobox" aria-label="Search"
42
+ aria-autocomplete="list" aria-controls="search-results"
43
+ type="text" name="search" placeholder="Search" spellcheck="false"
44
+ title="Type to search, Up and Down to navigate, Enter to load">
45
+ </div>
46
+
47
+ <ul id="search-results" aria-label="Search Results"
48
+ aria-busy="false" aria-expanded="false"
49
+ aria-atomic="false" class="initially-hidden"></ul>
50
+ </form>
51
+ </div>
52
+
53
+ </div>
54
+
55
+
56
+
57
+ <div id="project-metadata">
58
+ <div id="fileindex-section" class="nav-section">
59
+ <h3>Pages</h3>
60
+
61
+ <ul class="link-list">
62
+
63
+ <li><a href="./Gemfile.html">Gemfile</a>
64
+
65
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
66
+
67
+ <li><a href="./Guardfile.html">Guardfile</a>
68
+
69
+ <li><a href="./README_md.html">README</a>
70
+
71
+ <li><a href="./Rakefile.html">Rakefile</a>
72
+
73
+ <li><a href="./bin/setup.html">setup</a>
74
+
75
+ <li><a href="./comida_gemspec.html">comida.gemspec</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-label="Page Gemfile">
84
+
85
+ <p>source “<a href="https://rubygems.org">rubygems.org</a>”</p>
86
+
87
+ <p># Specify your gem&#39;s dependencies in <a href="comida_gemspec.html">comida.gemspec</a> gemspec</p>
88
+
89
+ </main>
90
+
91
+
92
+
93
+ <footer id="validator-badges" role="contentinfo">
94
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
95
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.0.
96
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
97
+ </footer>
98
+
@@ -0,0 +1,177 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>Gemfile.lock - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ var index_rel_prefix = "./";
12
+ </script>
13
+
14
+ <script src="./js/jquery.js"></script>
15
+ <script src="./js/darkfish.js"></script>
16
+
17
+ <link href="./css/fonts.css" rel="stylesheet">
18
+ <link href="./css/rdoc.css" rel="stylesheet">
19
+
20
+
21
+
22
+
23
+ <body id="top" role="document" class="file">
24
+ <nav role="navigation">
25
+ <div id="project-navigation">
26
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
27
+ <h2>
28
+ <a href="./index.html" rel="home">Home</a>
29
+ </h2>
30
+
31
+ <div id="table-of-contents-navigation">
32
+ <a href="./table_of_contents.html#pages">Pages</a>
33
+ <a href="./table_of_contents.html#classes">Classes</a>
34
+ <a href="./table_of_contents.html#methods">Methods</a>
35
+ </div>
36
+ </div>
37
+
38
+ <div id="search-section" role="search" class="project-section initially-hidden">
39
+ <form action="#" method="get" accept-charset="utf-8">
40
+ <div id="search-field-wrapper">
41
+ <input id="search-field" role="combobox" aria-label="Search"
42
+ aria-autocomplete="list" aria-controls="search-results"
43
+ type="text" name="search" placeholder="Search" spellcheck="false"
44
+ title="Type to search, Up and Down to navigate, Enter to load">
45
+ </div>
46
+
47
+ <ul id="search-results" aria-label="Search Results"
48
+ aria-busy="false" aria-expanded="false"
49
+ aria-atomic="false" class="initially-hidden"></ul>
50
+ </form>
51
+ </div>
52
+
53
+ </div>
54
+
55
+
56
+
57
+ <div id="project-metadata">
58
+ <div id="fileindex-section" class="nav-section">
59
+ <h3>Pages</h3>
60
+
61
+ <ul class="link-list">
62
+
63
+ <li><a href="./Gemfile.html">Gemfile</a>
64
+
65
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
66
+
67
+ <li><a href="./Guardfile.html">Guardfile</a>
68
+
69
+ <li><a href="./README_md.html">README</a>
70
+
71
+ <li><a href="./Rakefile.html">Rakefile</a>
72
+
73
+ <li><a href="./bin/setup.html">setup</a>
74
+
75
+ <li><a href="./comida_gemspec.html">comida.gemspec</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-label="Page Gemfile.lock">
84
+
85
+ <p>PATH</p>
86
+
87
+ <pre>remote: .
88
+ specs:
89
+ comida (0.1.0)</pre>
90
+
91
+ <p>GEM</p>
92
+
93
+ <pre>remote: https://rubygems.org/
94
+ specs:
95
+ coderay (1.1.2)
96
+ diff-lcs (1.3)
97
+ ffi (1.11.2)
98
+ formatador (0.2.5)
99
+ guard (2.16.1)
100
+ formatador (&gt;= 0.2.4)
101
+ listen (&gt;= 2.7, &lt; 4.0)
102
+ lumberjack (&gt;= 1.0.12, &lt; 2.0)
103
+ nenv (~&gt; 0.1)
104
+ notiffany (~&gt; 0.0)
105
+ pry (&gt;= 0.9.12)
106
+ shellany (~&gt; 0.0)
107
+ thor (&gt;= 0.18.1)
108
+ guard-bundler (2.2.1)
109
+ bundler (&gt;= 1.3.0, &lt; 3)
110
+ guard (~&gt; 2.2)
111
+ guard-compat (~&gt; 1.1)
112
+ guard-compat (1.2.1)
113
+ guard-rspec (4.7.3)
114
+ guard (~&gt; 2.1)
115
+ guard-compat (~&gt; 1.1)
116
+ rspec (&gt;= 2.99.0, &lt; 4.0)
117
+ listen (3.2.0)
118
+ rb-fsevent (~&gt; 0.10, &gt;= 0.10.3)
119
+ rb-inotify (~&gt; 0.9, &gt;= 0.9.10)
120
+ lumberjack (1.0.13)
121
+ method_source (0.9.2)
122
+ nenv (0.3.0)
123
+ notiffany (0.1.3)
124
+ nenv (~&gt; 0.1)
125
+ shellany (~&gt; 0.0)
126
+ pry (0.12.2)
127
+ coderay (~&gt; 1.1.0)
128
+ method_source (~&gt; 0.9.0)
129
+ rake (10.5.0)
130
+ rb-fsevent (0.10.3)
131
+ rb-inotify (0.10.0)
132
+ ffi (~&gt; 1.0)
133
+ rspec (3.9.0)
134
+ rspec-core (~&gt; 3.9.0)
135
+ rspec-expectations (~&gt; 3.9.0)
136
+ rspec-mocks (~&gt; 3.9.0)
137
+ rspec-core (3.9.0)
138
+ rspec-support (~&gt; 3.9.0)
139
+ rspec-expectations (3.9.0)
140
+ diff-lcs (&gt;= 1.2.0, &lt; 2.0)
141
+ rspec-support (~&gt; 3.9.0)
142
+ rspec-mocks (3.9.0)
143
+ diff-lcs (&gt;= 1.2.0, &lt; 2.0)
144
+ rspec-support (~&gt; 3.9.0)
145
+ rspec-support (3.9.0)
146
+ shellany (0.0.1)
147
+ thor (0.20.3)</pre>
148
+
149
+ <p>PLATFORMS</p>
150
+
151
+ <pre class="ruby"><span class="ruby-identifier">ruby</span>
152
+ </pre>
153
+
154
+ <p>DEPENDENCIES</p>
155
+
156
+ <pre>bundler (~&gt; 2.0)
157
+ comida!
158
+ guard
159
+ guard-bundler
160
+ guard-rspec
161
+ rake (~&gt; 10.0)
162
+ rspec (~&gt; 3.0)</pre>
163
+
164
+ <p>BUNDLED WITH</p>
165
+
166
+ <pre>2.0.2</pre>
167
+
168
+ </main>
169
+
170
+
171
+
172
+ <footer id="validator-badges" role="contentinfo">
173
+ <p><a href="https://validator.w3.org/check/referer">Validate</a>
174
+ <p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.0.
175
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
176
+ </footer>
177
+