prct06-TDD 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 +11 -0
- data/.rspec +3 -0
- data/.travis.yml +7 -0
- data/Changelog.md +275 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +93 -0
- data/Guardfile +83 -0
- data/README.md +39 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/Alimento.html +1039 -0
- data/docs/Changelog_md.html +280 -0
- data/docs/Dieta.html +272 -0
- data/docs/Gema.html +110 -0
- data/docs/Gema/Error.html +103 -0
- data/docs/Gemfile.html +100 -0
- data/docs/Gemfile_lock.html +179 -0
- data/docs/Guardfile.html +171 -0
- data/docs/ListaDobleEnlazada.html +542 -0
- data/docs/Object.html +117 -0
- data/docs/Plato.html +567 -0
- data/docs/Plato/CompareMode.html +117 -0
- data/docs/PlatoEficienciaEnergetica.html +316 -0
- data/docs/README_md.html +143 -0
- data/docs/Rakefile.html +102 -0
- data/docs/bin/setup.html +102 -0
- data/docs/created.rid +23 -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 +123 -0
- data/docs/js/darkfish.js +161 -0
- data/docs/js/jquery.js +4 -0
- data/docs/js/navigation.js +141 -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/prct06-TDD_gemspec.html +134 -0
- data/docs/table_of_contents.html +381 -0
- data/lib/Alimento.rb +205 -0
- data/lib/Dieta.rb +28 -0
- data/lib/Menu.rb +61 -0
- data/lib/Plato.rb +138 -0
- data/lib/Plato.rb.save +110 -0
- data/lib/PlatoEficienciaEnergetica.rb +32 -0
- data/lib/gema.rb +12 -0
- data/lib/gema/ListaDobleEnlazada.rb +103 -0
- data/lib/gema/version.rb +3 -0
- data/prct06-TDD.gemspec +37 -0
- metadata +214 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: d29ffba0bdf183c49da566be80b421251c1431f592dacbacf8957508b96f432a
|
|
4
|
+
data.tar.gz: 8fa24b675a8ca6c24942f4282ccc7b3457824886e477b435f0d1e4e2859f85cb
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 58ec0809da167371f6267ae952ae68ac0c44a351b157ff92d3b680de7ec3f20db8eafba4cd9218075b39b847d4edfaaec5ecbaec3563d3bb5468855aa7931df9
|
|
7
|
+
data.tar.gz: c1c542eb9f264b11b3dddf76488a5657b21cadc9263b2d92e1752f45fc29f66409bba0b6909d5107854acd7090f2e77dbbeefd246428a7c48955b0178d664cf4
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Changelog.md
ADDED
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
commit cc3846de10271b57f58b881e233657d490a28444
|
|
2
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
3
|
+
Date: Fri Nov 29 11:43:23 2019 +0000
|
|
4
|
+
|
|
5
|
+
C17.1: Hotfix en 'bin/console'
|
|
6
|
+
|
|
7
|
+
commit 83d595dfae7bb772463d5e1b6d2f6408629f5225
|
|
8
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
9
|
+
Date: Wed Nov 27 13:18:59 2019 +0000
|
|
10
|
+
|
|
11
|
+
C17: Finalizado Practica 8
|
|
12
|
+
|
|
13
|
+
commit 0ffede8239c4264bb29a7560c59c137062f08a95
|
|
14
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
15
|
+
Date: Tue Nov 26 10:40:08 2019 +0000
|
|
16
|
+
|
|
17
|
+
C16.1: Implementado codigo clase 'PlatoEficienciaEnergetica'
|
|
18
|
+
|
|
19
|
+
commit 7c2e47511cd7cde881060fae9d5214a50f1b9ec9
|
|
20
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
21
|
+
Date: Tue Nov 26 10:19:33 2019 +0000
|
|
22
|
+
|
|
23
|
+
C16: Añadido pruebas para la futura clase 'PlatoEficienciaEnergetica'
|
|
24
|
+
|
|
25
|
+
commit 2ac20c0e552a6330245062e5309f5bdcc8149e78
|
|
26
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
27
|
+
Date: Tue Nov 26 09:52:25 2019 +0000
|
|
28
|
+
|
|
29
|
+
15.2: Arreglado un error en 'Plato_spec.rb'
|
|
30
|
+
|
|
31
|
+
commit 9e996550962866f898c6d09398363aaf274fb2ba
|
|
32
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
33
|
+
Date: Tue Nov 26 09:40:58 2019 +0000
|
|
34
|
+
|
|
35
|
+
C15.1: Implementado codigo clase 'Plato'. Pruebas ejecutadas con exito
|
|
36
|
+
|
|
37
|
+
commit d31735165b71faf6ae54d1c574b403fb7399e0de
|
|
38
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
39
|
+
Date: Mon Nov 25 11:47:19 2019 +0000
|
|
40
|
+
|
|
41
|
+
C15: Añadido pruebas unitarias en 'Plato_spec.rb' para futura clase 'Plato'
|
|
42
|
+
|
|
43
|
+
commit 4413ac68e7cb0c63a53e06abfe1d5e732b8a3328
|
|
44
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
45
|
+
Date: Mon Nov 25 11:08:16 2019 +0000
|
|
46
|
+
|
|
47
|
+
C14.3: Implementado codigo para pasar las pruebas unitarias desarrolladas en C14.2
|
|
48
|
+
|
|
49
|
+
commit 772b5ce320df581464ee776eca2c112e0f806c2b
|
|
50
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
51
|
+
Date: Mon Nov 25 11:03:19 2019 +0000
|
|
52
|
+
|
|
53
|
+
C14.2: Implementado pruebas unitarias para comprobar correcta implementación del modulo 'Enumerable' en ListaDobleEnlazada
|
|
54
|
+
|
|
55
|
+
commit 53126b425995407f52e8a280804fdc3bae37adcb
|
|
56
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
57
|
+
Date: Mon Nov 25 10:44:43 2019 +0000
|
|
58
|
+
|
|
59
|
+
C14.1: Implementado codigo en 'ListaDobleEnlazada' para pasar prueba
|
|
60
|
+
|
|
61
|
+
commit 6e5f56f6478d23c400cbd13106f5c0d4879a0f1d
|
|
62
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
63
|
+
Date: Mon Nov 25 10:20:35 2019 +0000
|
|
64
|
+
|
|
65
|
+
C14: Añadido prueba ubitaria para 'to_s' de 'ListaDobleEnlazada'
|
|
66
|
+
|
|
67
|
+
commit 9a369b429d3c91ca29fd8d62ed929bbe4a9571df
|
|
68
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
69
|
+
Date: Mon Nov 25 10:00:08 2019 +0000
|
|
70
|
+
|
|
71
|
+
C13.1: Implementado codigo para el mixin con modulo 'Comparable' en 'Alimento.rb'
|
|
72
|
+
|
|
73
|
+
commit 7c3cc2dbd3150c9c2d02dc4deb85bbaa6620ce5f
|
|
74
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
75
|
+
Date: Mon Nov 25 09:55:06 2019 +0000
|
|
76
|
+
|
|
77
|
+
C13: Añadido pruebas unitarias en 'Alimento_spec.rb' para incorporación modulo 'Comparable'
|
|
78
|
+
|
|
79
|
+
commit ca0429d5cbeb3b68d5b66c2b800c88b834b3337b
|
|
80
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
81
|
+
Date: Thu Nov 21 13:10:58 2019 +0000
|
|
82
|
+
|
|
83
|
+
C12.2 : Aumentado robustez de las pruebas unitarias de 'Dieta' con mas casos
|
|
84
|
+
|
|
85
|
+
commit d1021c0764207dd54ece8d7a5e54b33ebdf183db
|
|
86
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
87
|
+
Date: Thu Nov 21 12:32:23 2019 +0000
|
|
88
|
+
|
|
89
|
+
C12.1 : Implementado codigo clase 'Dieta' para pasar (exitosamente) las pruebas unitarias en 'Dieta_spec.rb'
|
|
90
|
+
|
|
91
|
+
commit 644050d2a18c0bdac80d45294f33f0bd2931483b
|
|
92
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
93
|
+
Date: Thu Nov 21 11:36:33 2019 +0000
|
|
94
|
+
|
|
95
|
+
C12: Añadido pruebas unitarias en 'Dieta_spec.rb' para la clase 'Dieta'
|
|
96
|
+
|
|
97
|
+
commit 7152e5e386b699dfa54fa32b9b1c3b35742cd032
|
|
98
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
99
|
+
Date: Thu Nov 21 11:20:40 2019 +0000
|
|
100
|
+
|
|
101
|
+
C11.3: Implementado codigo en 'Alimento.rb' para construir fila apartir de input de fichero
|
|
102
|
+
|
|
103
|
+
commit 20cebfb7c608b37177de07fa7bd77381a4b87cc2
|
|
104
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
105
|
+
Date: Thu Nov 21 11:13:11 2019 +0000
|
|
106
|
+
|
|
107
|
+
C11.2 : Añadido pruebas unitarias en 'Alimento_spec.rb' para crear un Hash apartir del input de un fichero
|
|
108
|
+
|
|
109
|
+
commit 81b33aec4e4ff916bccf19d5e68a67263c542c11
|
|
110
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
111
|
+
Date: Thu Nov 21 10:59:03 2019 +0000
|
|
112
|
+
|
|
113
|
+
C11.1: Implementado codigo en 'Alimento.rb' para la prueba unitaria generado en C11
|
|
114
|
+
|
|
115
|
+
commit 35e24cf502011f3607217e5238d2c1ae069ce460
|
|
116
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
117
|
+
Date: Thu Nov 21 10:57:02 2019 +0000
|
|
118
|
+
|
|
119
|
+
C11: Añadido prueba unitaria para crear una lista de comidas apartir de un input de un fichero
|
|
120
|
+
|
|
121
|
+
commit 77d66d0a883715d94f9e5c72c6656ebd77792f7a
|
|
122
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
123
|
+
Date: Tue Nov 19 11:36:30 2019 +0000
|
|
124
|
+
|
|
125
|
+
C10.4: Aumentado la robustez de las pruebas unitarias en 'ListaDobleEnlazada_spec.rb'
|
|
126
|
+
|
|
127
|
+
commit df7fff3a9bfff48c54697bd5f1f405de432b85c3
|
|
128
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
129
|
+
Date: Tue Nov 19 10:13:03 2019 +0000
|
|
130
|
+
|
|
131
|
+
C10.3: Implementado más pruebas unitarias para aumentar eficacia de estas
|
|
132
|
+
|
|
133
|
+
commit e24e4bf1657916ab41972712b9468b9748d927c6
|
|
134
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
135
|
+
Date: Tue Nov 19 09:57:57 2019 +0000
|
|
136
|
+
|
|
137
|
+
C10.2: Implementado el restante codigo de 'ListaDobleEnlazada'
|
|
138
|
+
|
|
139
|
+
commit 2b1b8ab98955f6e122cfc7a0c9da2bfcbff16834
|
|
140
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
141
|
+
Date: Tue Nov 19 09:44:22 2019 +0000
|
|
142
|
+
|
|
143
|
+
C10.1: Implementación parcial del codigo para clase 'ListaDobleEnlazada'.
|
|
144
|
+
|
|
145
|
+
commit 97abaef143fce75b97917a8977ed3686dc3d02de
|
|
146
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
147
|
+
Date: Tue Nov 19 09:34:37 2019 +0000
|
|
148
|
+
|
|
149
|
+
C10:Añadido pruebas unitarias para ListaDobleEnlazada
|
|
150
|
+
|
|
151
|
+
commit 20e69db2580142ec5f04620f7d6a45f9100e6fc4
|
|
152
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
153
|
+
Date: Tue Nov 19 09:29:03 2019 +0000
|
|
154
|
+
|
|
155
|
+
C9.1: Instalado 'Guard' dependencia
|
|
156
|
+
|
|
157
|
+
commit a8f5b5d59f5df09981693b5d9bcfe167bf7da575
|
|
158
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
159
|
+
Date: Tue Nov 19 09:15:59 2019 +0000
|
|
160
|
+
|
|
161
|
+
C9: Arreglado estructura de la gema para respetar Bundle
|
|
162
|
+
|
|
163
|
+
commit bc70bfb988ee4e8ce61121a30cc3ca712aebfb59
|
|
164
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
165
|
+
Date: Fri Nov 15 12:03:10 2019 +0000
|
|
166
|
+
|
|
167
|
+
C8.4 : Implementado codigo para suma de 2 alimentos
|
|
168
|
+
|
|
169
|
+
commit ba28001a4f8e1f32917c42998e41edf298cb218d
|
|
170
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
171
|
+
Date: Fri Nov 15 11:58:49 2019 +0000
|
|
172
|
+
|
|
173
|
+
C8.3: Añadido prueba unitaria para suma de alimentos
|
|
174
|
+
|
|
175
|
+
commit 8f91e16d186a27ac87383bb1bb1fb8f9fd043430
|
|
176
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
177
|
+
Date: Fri Nov 15 10:22:17 2019 +0000
|
|
178
|
+
|
|
179
|
+
C8.2.1 : Modificado una parte del README.md
|
|
180
|
+
|
|
181
|
+
commit 8ef206f960453f6e8d552598f2b2b403a70e8a26
|
|
182
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
183
|
+
Date: Fri Nov 15 10:17:26 2019 +0000
|
|
184
|
+
|
|
185
|
+
C8.2: Mejorado el caso de prueba del '==' en 'Alimento_spec.rb
|
|
186
|
+
|
|
187
|
+
commit 42698eb6decbcd1511fd096c4a2183a406b75b2e
|
|
188
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
189
|
+
Date: Fri Nov 15 10:01:09 2019 +0000
|
|
190
|
+
|
|
191
|
+
C8.1 : Implementado codigo para '<=>' y '==' para pruebas unitarias
|
|
192
|
+
|
|
193
|
+
commit 6c484d528268e15289acd71d68e30dc8ee8c0279
|
|
194
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
195
|
+
Date: Fri Nov 15 09:50:37 2019 +0000
|
|
196
|
+
|
|
197
|
+
C8: Añadido pruebas unitarias para el modulo 'Comparable' en 'Alimento_spec'
|
|
198
|
+
|
|
199
|
+
commit 53ab3805544dae775181586a94ee81f44746e10d
|
|
200
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
201
|
+
Date: Thu Nov 14 11:08:01 2019 +0000
|
|
202
|
+
|
|
203
|
+
C7.4: Implementado el codigo 'impactoAmbiental' en 'Alimento.rb'
|
|
204
|
+
|
|
205
|
+
commit 3c743ffb4d2f20dfe73abb91a97db3ca5cd0d0b8
|
|
206
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
207
|
+
Date: Thu Nov 14 11:05:52 2019 +0000
|
|
208
|
+
|
|
209
|
+
C7.3.1: Hotfix para error en sintaxis de pruebas unitarias
|
|
210
|
+
|
|
211
|
+
commit 4b8105184aaf0eb3587a3d0c613047a9bb6bfbe7
|
|
212
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
213
|
+
Date: Thu Nov 14 11:04:45 2019 +0000
|
|
214
|
+
|
|
215
|
+
C7.3: Añadido prueba funcional para calculo impacto ambiental de un hombre y mujer de 20-39 años
|
|
216
|
+
|
|
217
|
+
commit d1ca2ea6c93fe70c000b63f5a92ed4ffa2808e75
|
|
218
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
219
|
+
Date: Thu Nov 14 10:48:56 2019 +0000
|
|
220
|
+
|
|
221
|
+
C7.2 : Implementado codigo 'terrenoUsado' en 'Alimento.rb' y pruebas funcionales ejecutadas con exito
|
|
222
|
+
|
|
223
|
+
commit 575af8b2b9f39ff7597186bb40ec3c90649ac384
|
|
224
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
225
|
+
Date: Thu Nov 14 10:47:06 2019 +0000
|
|
226
|
+
|
|
227
|
+
C7.1 : Añadido prueba funcional para 'terrenoUsado' en 'Alimento_spec.rb'
|
|
228
|
+
|
|
229
|
+
commit 561bd4124ee281db1be9e8e4e64b73d4fed52ecf
|
|
230
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
231
|
+
Date: Thu Nov 14 10:44:31 2019 +0000
|
|
232
|
+
|
|
233
|
+
C7: Añadido pruebas unitarias a metodos en 'Alimento_spect.rb' y la posterior implementación de metodos en 'Alimento.rb'
|
|
234
|
+
|
|
235
|
+
commit 14d50b3c3679736b3697198bf0a8086b452c3dbb
|
|
236
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
237
|
+
Date: Wed Nov 13 12:28:47 2019 +0000
|
|
238
|
+
|
|
239
|
+
C6.1: Hotfix de un codigo mal escrito en 'Alimento_spec'
|
|
240
|
+
|
|
241
|
+
commit d57361017cdf2eff20933316c148797d33415f26
|
|
242
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
243
|
+
Date: Wed Nov 13 12:25:47 2019 +0000
|
|
244
|
+
|
|
245
|
+
C6: Añadida las pruebas unitarias para los metodos de la clase Alimento
|
|
246
|
+
|
|
247
|
+
commit 1cce37dc81d74a8964e9bb2fe3e0cdf7410e7255
|
|
248
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
249
|
+
Date: Wed Nov 13 11:57:06 2019 +0000
|
|
250
|
+
|
|
251
|
+
C5: Definido builder de Alimento y su constructor con las propiedades basicas
|
|
252
|
+
|
|
253
|
+
commit 9b23347a11a603b911e074c73269455cdf93a24c
|
|
254
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
255
|
+
Date: Wed Nov 13 10:53:35 2019 +0000
|
|
256
|
+
|
|
257
|
+
C4: Fixes y añadido estructura basica para poder empezar desarrollo
|
|
258
|
+
|
|
259
|
+
commit 2e31aad58b40ae1032abe4f437910acd72577b07
|
|
260
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
261
|
+
Date: Tue Nov 12 10:31:09 2019 +0000
|
|
262
|
+
|
|
263
|
+
C3: Estructura directorio y fichero preparada para empezar el desarrollo TDD
|
|
264
|
+
|
|
265
|
+
commit facea662db66010340a8bb17523126d1ceec0d9d
|
|
266
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
267
|
+
Date: Tue Nov 12 10:17:19 2019 +0000
|
|
268
|
+
|
|
269
|
+
C2: Borrado todo el codigo autogenerado para cumplir con la condición 'no reutilizar codigo' que la practica solitica
|
|
270
|
+
|
|
271
|
+
commit f3f8ff29ba107abde391a9c8745ac94279614449
|
|
272
|
+
Author: Javier Duque Melguizo <alu0101160337@ull.edu.es>
|
|
273
|
+
Date: Tue Nov 12 10:15:41 2019 +0000
|
|
274
|
+
|
|
275
|
+
C1 : Estructura autogenerada con 'bundler gem prct06-TDD'
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
prct06-TDD (0.1.0)
|
|
5
|
+
|
|
6
|
+
GEM
|
|
7
|
+
remote: https://rubygems.org/
|
|
8
|
+
specs:
|
|
9
|
+
coderay (1.1.2)
|
|
10
|
+
coveralls (0.8.23)
|
|
11
|
+
json (>= 1.8, < 3)
|
|
12
|
+
simplecov (~> 0.16.1)
|
|
13
|
+
term-ansicolor (~> 1.3)
|
|
14
|
+
thor (>= 0.19.4, < 2.0)
|
|
15
|
+
tins (~> 1.6)
|
|
16
|
+
diff-lcs (1.3)
|
|
17
|
+
docile (1.3.2)
|
|
18
|
+
ffi (1.11.2)
|
|
19
|
+
formatador (0.2.5)
|
|
20
|
+
guard (2.16.1)
|
|
21
|
+
formatador (>= 0.2.4)
|
|
22
|
+
listen (>= 2.7, < 4.0)
|
|
23
|
+
lumberjack (>= 1.0.12, < 2.0)
|
|
24
|
+
nenv (~> 0.1)
|
|
25
|
+
notiffany (~> 0.0)
|
|
26
|
+
pry (>= 0.9.12)
|
|
27
|
+
shellany (~> 0.0)
|
|
28
|
+
thor (>= 0.18.1)
|
|
29
|
+
guard-bundler (2.2.1)
|
|
30
|
+
bundler (>= 1.3.0, < 3)
|
|
31
|
+
guard (~> 2.2)
|
|
32
|
+
guard-compat (~> 1.1)
|
|
33
|
+
guard-compat (1.2.1)
|
|
34
|
+
guard-rspec (4.7.3)
|
|
35
|
+
guard (~> 2.1)
|
|
36
|
+
guard-compat (~> 1.1)
|
|
37
|
+
rspec (>= 2.99.0, < 4.0)
|
|
38
|
+
json (2.3.0)
|
|
39
|
+
listen (3.2.0)
|
|
40
|
+
rb-fsevent (~> 0.10, >= 0.10.3)
|
|
41
|
+
rb-inotify (~> 0.9, >= 0.9.10)
|
|
42
|
+
lumberjack (1.0.13)
|
|
43
|
+
method_source (0.9.2)
|
|
44
|
+
nenv (0.3.0)
|
|
45
|
+
notiffany (0.1.3)
|
|
46
|
+
nenv (~> 0.1)
|
|
47
|
+
shellany (~> 0.0)
|
|
48
|
+
pry (0.12.2)
|
|
49
|
+
coderay (~> 1.1.0)
|
|
50
|
+
method_source (~> 0.9.0)
|
|
51
|
+
rake (10.5.0)
|
|
52
|
+
rb-fsevent (0.10.3)
|
|
53
|
+
rb-inotify (0.10.0)
|
|
54
|
+
ffi (~> 1.0)
|
|
55
|
+
rspec (3.9.0)
|
|
56
|
+
rspec-core (~> 3.9.0)
|
|
57
|
+
rspec-expectations (~> 3.9.0)
|
|
58
|
+
rspec-mocks (~> 3.9.0)
|
|
59
|
+
rspec-core (3.9.0)
|
|
60
|
+
rspec-support (~> 3.9.0)
|
|
61
|
+
rspec-expectations (3.9.0)
|
|
62
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
63
|
+
rspec-support (~> 3.9.0)
|
|
64
|
+
rspec-mocks (3.9.0)
|
|
65
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
66
|
+
rspec-support (~> 3.9.0)
|
|
67
|
+
rspec-support (3.9.0)
|
|
68
|
+
shellany (0.0.1)
|
|
69
|
+
simplecov (0.16.1)
|
|
70
|
+
docile (~> 1.1)
|
|
71
|
+
json (>= 1.8, < 3)
|
|
72
|
+
simplecov-html (~> 0.10.0)
|
|
73
|
+
simplecov-html (0.10.2)
|
|
74
|
+
term-ansicolor (1.7.1)
|
|
75
|
+
tins (~> 1.0)
|
|
76
|
+
thor (0.20.3)
|
|
77
|
+
tins (1.22.2)
|
|
78
|
+
|
|
79
|
+
PLATFORMS
|
|
80
|
+
ruby
|
|
81
|
+
|
|
82
|
+
DEPENDENCIES
|
|
83
|
+
bundler (~> 2.0)
|
|
84
|
+
coveralls
|
|
85
|
+
guard
|
|
86
|
+
guard-bundler
|
|
87
|
+
guard-rspec
|
|
88
|
+
prct06-TDD!
|
|
89
|
+
rake (~> 10.0)
|
|
90
|
+
rspec (~> 3.0)
|
|
91
|
+
|
|
92
|
+
BUNDLED WITH
|
|
93
|
+
2.0.2
|
data/Guardfile
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# A sample Guardfile
|
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
|
3
|
+
|
|
4
|
+
## Uncomment and set this to only include directories you want to watch
|
|
5
|
+
# directories %w(app lib config test spec features) \
|
|
6
|
+
directories %w(lib spec . lib/gema) \
|
|
7
|
+
.select{|d| Dir.exist?(d) ? d : UI.warning("Directory #{d} does not exist")}
|
|
8
|
+
|
|
9
|
+
## Note: if you are using the `directories` clause above and you are not
|
|
10
|
+
## watching the project directory ('.'), then you will want to move
|
|
11
|
+
## the Guardfile to a watched dir and symlink it back, e.g.
|
|
12
|
+
#
|
|
13
|
+
# $ mkdir config
|
|
14
|
+
# $ mv Guardfile config/
|
|
15
|
+
# $ ln -s config/Guardfile .
|
|
16
|
+
#
|
|
17
|
+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
|
18
|
+
|
|
19
|
+
guard :bundler do
|
|
20
|
+
require 'guard/bundler'
|
|
21
|
+
require 'guard/bundler/verify'
|
|
22
|
+
helper = Guard::Bundler::Verify.new
|
|
23
|
+
|
|
24
|
+
files = ['Gemfile']
|
|
25
|
+
files += Dir['*.gemspec'] if files.any? { |f| helper.uses_gemspec?(f) }
|
|
26
|
+
|
|
27
|
+
# Assume files are symlinked from somewhere
|
|
28
|
+
files.each { |file| watch(helper.real_path(file)) }
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
|
32
|
+
# rspec may be run, below are examples of the most common uses.
|
|
33
|
+
# * bundler: 'bundle exec rspec'
|
|
34
|
+
# * bundler binstubs: 'bin/rspec'
|
|
35
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
|
36
|
+
# installed the spring binstubs per the docs)
|
|
37
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
|
38
|
+
# * 'just' rspec: 'rspec'
|
|
39
|
+
|
|
40
|
+
guard :rspec, cmd: "bundle exec rspec" do
|
|
41
|
+
require "guard/rspec/dsl"
|
|
42
|
+
dsl = Guard::RSpec::Dsl.new(self)
|
|
43
|
+
|
|
44
|
+
# Feel free to open issues for suggestions and improvements
|
|
45
|
+
|
|
46
|
+
# RSpec files
|
|
47
|
+
rspec = dsl.rspec
|
|
48
|
+
watch(rspec.spec_helper) { rspec.spec_dir }
|
|
49
|
+
watch(rspec.spec_support) { rspec.spec_dir }
|
|
50
|
+
watch(rspec.spec_files)
|
|
51
|
+
|
|
52
|
+
# Ruby files
|
|
53
|
+
ruby = dsl.ruby
|
|
54
|
+
dsl.watch_spec_files_for(ruby.lib_files)
|
|
55
|
+
|
|
56
|
+
# Rails files
|
|
57
|
+
rails = dsl.rails(view_extensions: %w(erb haml slim))
|
|
58
|
+
dsl.watch_spec_files_for(rails.app_files)
|
|
59
|
+
dsl.watch_spec_files_for(rails.views)
|
|
60
|
+
|
|
61
|
+
watch(rails.controllers) do |m|
|
|
62
|
+
[
|
|
63
|
+
rspec.spec.call("routing/#{m[1]}_routing"),
|
|
64
|
+
rspec.spec.call("controllers/#{m[1]}_controller"),
|
|
65
|
+
rspec.spec.call("acceptance/#{m[1]}")
|
|
66
|
+
]
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
# Rails config changes
|
|
70
|
+
watch(rails.spec_helper) { rspec.spec_dir }
|
|
71
|
+
watch(rails.routes) { "#{rspec.spec_dir}/routing" }
|
|
72
|
+
watch(rails.app_controller) { "#{rspec.spec_dir}/controllers" }
|
|
73
|
+
|
|
74
|
+
# Capybara features specs
|
|
75
|
+
watch(rails.view_dirs) { |m| rspec.spec.call("features/#{m[1]}") }
|
|
76
|
+
watch(rails.layouts) { |m| rspec.spec.call("features/#{m[1]}") }
|
|
77
|
+
|
|
78
|
+
# Turnip features and steps
|
|
79
|
+
watch(%r{^spec/acceptance/(.+)\.feature$})
|
|
80
|
+
watch(%r{^spec/acceptance/steps/(.+)_steps\.rb$}) do |m|
|
|
81
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || "spec/acceptance"
|
|
82
|
+
end
|
|
83
|
+
end
|