etiqueta_nutricional 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +10 -0
  4. data/.travis.yml +9 -0
  5. data/CODE_OF_CONDUCT.md +74 -0
  6. data/Gemfile +7 -0
  7. data/Gemfile.lock +111 -0
  8. data/Guardfile +82 -0
  9. data/README.md +24 -0
  10. data/Rakefile +6 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/doc/CODE_OF_CONDUCT_md.html +194 -0
  14. data/doc/Etiqueta.html +972 -0
  15. data/doc/EtiquetaNutricional.html +110 -0
  16. data/doc/EtiquetaNutricional/Error.html +103 -0
  17. data/doc/Gemfile.html +103 -0
  18. data/doc/Gemfile_lock.html +179 -0
  19. data/doc/Guardfile.html +179 -0
  20. data/doc/Individuo.html +373 -0
  21. data/doc/ListaEtiquetas.html +605 -0
  22. data/doc/Object.html +117 -0
  23. data/doc/Paciente.html +521 -0
  24. data/doc/README_md.html +128 -0
  25. data/doc/Rakefile.html +100 -0
  26. data/doc/bin/setup.html +100 -0
  27. data/doc/created.rid +18 -0
  28. data/doc/css/fonts.css +167 -0
  29. data/doc/css/rdoc.css +590 -0
  30. data/doc/etiqueta_nutricional_gemspec.html +140 -0
  31. data/doc/fonts/Lato-Light.ttf +0 -0
  32. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  33. data/doc/fonts/Lato-Regular.ttf +0 -0
  34. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  35. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  36. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  37. data/doc/images/add.png +0 -0
  38. data/doc/images/arrow_up.png +0 -0
  39. data/doc/images/brick.png +0 -0
  40. data/doc/images/brick_link.png +0 -0
  41. data/doc/images/bug.png +0 -0
  42. data/doc/images/bullet_black.png +0 -0
  43. data/doc/images/bullet_toggle_minus.png +0 -0
  44. data/doc/images/bullet_toggle_plus.png +0 -0
  45. data/doc/images/date.png +0 -0
  46. data/doc/images/delete.png +0 -0
  47. data/doc/images/find.png +0 -0
  48. data/doc/images/loadingAnimation.gif +0 -0
  49. data/doc/images/macFFBgHack.png +0 -0
  50. data/doc/images/package.png +0 -0
  51. data/doc/images/page_green.png +0 -0
  52. data/doc/images/page_white_text.png +0 -0
  53. data/doc/images/page_white_width.png +0 -0
  54. data/doc/images/plugin.png +0 -0
  55. data/doc/images/ruby.png +0 -0
  56. data/doc/images/tag_blue.png +0 -0
  57. data/doc/images/tag_green.png +0 -0
  58. data/doc/images/transparent.png +0 -0
  59. data/doc/images/wrench.png +0 -0
  60. data/doc/images/wrench_orange.png +0 -0
  61. data/doc/images/zoom.png +0 -0
  62. data/doc/index.html +116 -0
  63. data/doc/js/darkfish.js +161 -0
  64. data/doc/js/jquery.js +4 -0
  65. data/doc/js/navigation.js +142 -0
  66. data/doc/js/navigation.js.gz +0 -0
  67. data/doc/js/search.js +109 -0
  68. data/doc/js/search_index.js +1 -0
  69. data/doc/js/search_index.js.gz +0 -0
  70. data/doc/js/searcher.js +229 -0
  71. data/doc/js/searcher.js.gz +0 -0
  72. data/doc/table_of_contents.html +337 -0
  73. data/etiqueta_nutricional.gemspec +48 -0
  74. data/lib/etiqueta_nutricional.rb +13 -0
  75. data/lib/etiqueta_nutricional/array.rb +50 -0
  76. data/lib/etiqueta_nutricional/etiqueta_nutricional.rb +114 -0
  77. data/lib/etiqueta_nutricional/individuo.rb +39 -0
  78. data/lib/etiqueta_nutricional/lista_etiquetas.rb +198 -0
  79. data/lib/etiqueta_nutricional/menu.rb +66 -0
  80. data/lib/etiqueta_nutricional/paciente.rb +148 -0
  81. data/lib/etiqueta_nutricional/tabla.rb +45 -0
  82. data/lib/etiqueta_nutricional/version.rb +3 -0
  83. metadata +222 -0
@@ -0,0 +1,45 @@
1
+ class Row < Array
2
+
3
+ @@cols = []
4
+
5
+ def << parm
6
+ arg = parm.to_s
7
+ if(@@cols[size])
8
+ @@cols[size] = arg.size if arg.size > @@cols[size]
9
+ else
10
+ @@cols[size] = arg.size
11
+ end
12
+ super arg
13
+ end
14
+
15
+ def to_s
16
+ str = String.new
17
+ self.each_with_index do |cell,i|
18
+ str << cell + (' ' * (@@cols[i] - cell.size + 1))
19
+ end
20
+ str + "\n"
21
+ end
22
+
23
+ end
24
+
25
+ class Tabla
26
+
27
+ def initialize
28
+ @rows = []
29
+ end
30
+
31
+ def << arg
32
+ row = Row.new
33
+ @rows << row
34
+ row << arg
35
+ end
36
+
37
+ def to_s
38
+ str = String.new
39
+ @rows.each do |row|
40
+ str << row.to_s
41
+ end
42
+ str
43
+ end
44
+
45
+ end
@@ -0,0 +1,3 @@
1
+ module EtiquetaNutricional
2
+ VERSION = "5.0.0"
3
+ end
metadata ADDED
@@ -0,0 +1,222 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: etiqueta_nutricional
3
+ version: !ruby/object:Gem::Version
4
+ version: 5.0.0
5
+ platform: ruby
6
+ authors:
7
+ - alu0100463118
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2019-01-09 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.17'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.17'
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: coveralls
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
+ description: Practica 6 de la asignatura LPP
112
+ email:
113
+ - alu0100463118@ull.edu.es
114
+ executables: []
115
+ extensions: []
116
+ extra_rdoc_files: []
117
+ files:
118
+ - ".coveralls.yml"
119
+ - ".gitignore"
120
+ - ".travis.yml"
121
+ - CODE_OF_CONDUCT.md
122
+ - Gemfile
123
+ - Gemfile.lock
124
+ - Guardfile
125
+ - README.md
126
+ - Rakefile
127
+ - bin/console
128
+ - bin/setup
129
+ - doc/CODE_OF_CONDUCT_md.html
130
+ - doc/Etiqueta.html
131
+ - doc/EtiquetaNutricional.html
132
+ - doc/EtiquetaNutricional/Error.html
133
+ - doc/Gemfile.html
134
+ - doc/Gemfile_lock.html
135
+ - doc/Guardfile.html
136
+ - doc/Individuo.html
137
+ - doc/ListaEtiquetas.html
138
+ - doc/Object.html
139
+ - doc/Paciente.html
140
+ - doc/README_md.html
141
+ - doc/Rakefile.html
142
+ - doc/bin/setup.html
143
+ - doc/created.rid
144
+ - doc/css/fonts.css
145
+ - doc/css/rdoc.css
146
+ - doc/etiqueta_nutricional_gemspec.html
147
+ - doc/fonts/Lato-Light.ttf
148
+ - doc/fonts/Lato-LightItalic.ttf
149
+ - doc/fonts/Lato-Regular.ttf
150
+ - doc/fonts/Lato-RegularItalic.ttf
151
+ - doc/fonts/SourceCodePro-Bold.ttf
152
+ - doc/fonts/SourceCodePro-Regular.ttf
153
+ - doc/images/add.png
154
+ - doc/images/arrow_up.png
155
+ - doc/images/brick.png
156
+ - doc/images/brick_link.png
157
+ - doc/images/bug.png
158
+ - doc/images/bullet_black.png
159
+ - doc/images/bullet_toggle_minus.png
160
+ - doc/images/bullet_toggle_plus.png
161
+ - doc/images/date.png
162
+ - doc/images/delete.png
163
+ - doc/images/find.png
164
+ - doc/images/loadingAnimation.gif
165
+ - doc/images/macFFBgHack.png
166
+ - doc/images/package.png
167
+ - doc/images/page_green.png
168
+ - doc/images/page_white_text.png
169
+ - doc/images/page_white_width.png
170
+ - doc/images/plugin.png
171
+ - doc/images/ruby.png
172
+ - doc/images/tag_blue.png
173
+ - doc/images/tag_green.png
174
+ - doc/images/transparent.png
175
+ - doc/images/wrench.png
176
+ - doc/images/wrench_orange.png
177
+ - doc/images/zoom.png
178
+ - doc/index.html
179
+ - doc/js/darkfish.js
180
+ - doc/js/jquery.js
181
+ - doc/js/navigation.js
182
+ - doc/js/navigation.js.gz
183
+ - doc/js/search.js
184
+ - doc/js/search_index.js
185
+ - doc/js/search_index.js.gz
186
+ - doc/js/searcher.js
187
+ - doc/js/searcher.js.gz
188
+ - doc/table_of_contents.html
189
+ - etiqueta_nutricional.gemspec
190
+ - lib/etiqueta_nutricional.rb
191
+ - lib/etiqueta_nutricional/array.rb
192
+ - lib/etiqueta_nutricional/etiqueta_nutricional.rb
193
+ - lib/etiqueta_nutricional/individuo.rb
194
+ - lib/etiqueta_nutricional/lista_etiquetas.rb
195
+ - lib/etiqueta_nutricional/menu.rb
196
+ - lib/etiqueta_nutricional/paciente.rb
197
+ - lib/etiqueta_nutricional/tabla.rb
198
+ - lib/etiqueta_nutricional/version.rb
199
+ homepage: https://github.com/ULL-ESIT-LPP-1819/tdd-alu0100463118.git
200
+ licenses: []
201
+ metadata: {}
202
+ post_install_message:
203
+ rdoc_options: []
204
+ require_paths:
205
+ - lib
206
+ required_ruby_version: !ruby/object:Gem::Requirement
207
+ requirements:
208
+ - - ">="
209
+ - !ruby/object:Gem::Version
210
+ version: '0'
211
+ required_rubygems_version: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ requirements: []
217
+ rubyforge_project:
218
+ rubygems_version: 2.6.8
219
+ signing_key:
220
+ specification_version: 4
221
+ summary: Desarrollo de la etiqueta nutricional
222
+ test_files: []