alimentos 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +1 -0
  3. data/.gitignore +9 -0
  4. data/.rake_tasks~ +7 -0
  5. data/.rspec +2 -0
  6. data/.travis.yml +5 -0
  7. data/CODE_OF_CONDUCT.md +74 -0
  8. data/Gemfile +7 -0
  9. data/Guardfile +82 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +50 -0
  12. data/Rakefile +6 -0
  13. data/alimentos.gemspec +45 -0
  14. data/bin/bundler +17 -0
  15. data/bin/console +14 -0
  16. data/bin/htmldiff +17 -0
  17. data/bin/ldiff +17 -0
  18. data/bin/rake +17 -0
  19. data/bin/rspec +17 -0
  20. data/bin/setup +8 -0
  21. data/docs/Alimento.html +469 -0
  22. data/docs/Alimentos.html +109 -0
  23. data/docs/CODE_OF_CONDUCT_md.html +195 -0
  24. data/docs/Gemfile.html +103 -0
  25. data/docs/Gemfile_lock.html +180 -0
  26. data/docs/Grupo.html +383 -0
  27. data/docs/Grupo_bebidas.html +102 -0
  28. data/docs/Grupo_carbohidratos.html +102 -0
  29. data/docs/Grupo_carnes.html +102 -0
  30. data/docs/Grupo_frutas.html +102 -0
  31. data/docs/Grupo_grasos.html +102 -0
  32. data/docs/Grupo_lacteos.html +102 -0
  33. data/docs/Grupo_pescados.html +102 -0
  34. data/docs/Grupo_verduras.html +102 -0
  35. data/docs/Guardfile.html +180 -0
  36. data/docs/LICENSE_txt.html +117 -0
  37. data/docs/Lista.html +457 -0
  38. data/docs/Object.html +116 -0
  39. data/docs/README_md.html +177 -0
  40. data/docs/Rakefile.html +101 -0
  41. data/docs/alimentos_gemspec.html +135 -0
  42. data/docs/bin/setup.html +101 -0
  43. data/docs/created.rid +23 -0
  44. data/docs/css/fonts.css +167 -0
  45. data/docs/css/rdoc.css +590 -0
  46. data/docs/fonts/Lato-Light.ttf +0 -0
  47. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  48. data/docs/fonts/Lato-Regular.ttf +0 -0
  49. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  50. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  51. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  52. data/docs/images/add.png +0 -0
  53. data/docs/images/arrow_up.png +0 -0
  54. data/docs/images/brick.png +0 -0
  55. data/docs/images/brick_link.png +0 -0
  56. data/docs/images/bug.png +0 -0
  57. data/docs/images/bullet_black.png +0 -0
  58. data/docs/images/bullet_toggle_minus.png +0 -0
  59. data/docs/images/bullet_toggle_plus.png +0 -0
  60. data/docs/images/date.png +0 -0
  61. data/docs/images/delete.png +0 -0
  62. data/docs/images/find.png +0 -0
  63. data/docs/images/loadingAnimation.gif +0 -0
  64. data/docs/images/macFFBgHack.png +0 -0
  65. data/docs/images/package.png +0 -0
  66. data/docs/images/page_green.png +0 -0
  67. data/docs/images/page_white_text.png +0 -0
  68. data/docs/images/page_white_width.png +0 -0
  69. data/docs/images/plugin.png +0 -0
  70. data/docs/images/ruby.png +0 -0
  71. data/docs/images/tag_blue.png +0 -0
  72. data/docs/images/tag_green.png +0 -0
  73. data/docs/images/transparent.png +0 -0
  74. data/docs/images/wrench.png +0 -0
  75. data/docs/images/wrench_orange.png +0 -0
  76. data/docs/images/zoom.png +0 -0
  77. data/docs/index.html +129 -0
  78. data/docs/js/darkfish.js +161 -0
  79. data/docs/js/jquery.js +4 -0
  80. data/docs/js/navigation.js +142 -0
  81. data/docs/js/navigation.js.gz +0 -0
  82. data/docs/js/search.js +109 -0
  83. data/docs/js/search_index.js +1 -0
  84. data/docs/js/search_index.js.gz +0 -0
  85. data/docs/js/searcher.js +228 -0
  86. data/docs/js/searcher.js.gz +0 -0
  87. data/docs/table_of_contents.html +236 -0
  88. data/lib/alimentos.rb +11 -0
  89. data/lib/alimentos/alimento.rb +40 -0
  90. data/lib/alimentos/calculadora.rb +52 -0
  91. data/lib/alimentos/comida.rb +58 -0
  92. data/lib/alimentos/grupo.rb +54 -0
  93. data/lib/alimentos/harvard_dsl.rb +67 -0
  94. data/lib/alimentos/individuo.rb +43 -0
  95. data/lib/alimentos/lista.rb +65 -0
  96. data/lib/alimentos/version.rb +3 -0
  97. metadata +237 -0
@@ -0,0 +1,116 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class Object - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="class">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="class-metadata">
56
+
57
+ <div id="parent-class-section" class="nav-section">
58
+ <h3>Parent</h3>
59
+
60
+
61
+ <p class="link">BasicObject
62
+
63
+ </div>
64
+
65
+
66
+
67
+
68
+ </div>
69
+ </nav>
70
+
71
+ <main role="main" aria-labelledby="class-Object">
72
+ <h1 id="class-Object" class="class">
73
+ class Object
74
+ </h1>
75
+
76
+ <section class="description">
77
+
78
+ </section>
79
+
80
+
81
+
82
+
83
+ <section id="5Buntitled-5D" class="documentation-section">
84
+
85
+
86
+
87
+
88
+
89
+ <section class="constants-list">
90
+ <header>
91
+ <h3>Constants</h3>
92
+ </header>
93
+ <dl>
94
+
95
+ <dt id="Nodo">Nodo
96
+
97
+ <dd>
98
+
99
+
100
+ </dl>
101
+ </section>
102
+
103
+
104
+
105
+
106
+
107
+ </section>
108
+ </main>
109
+
110
+
111
+ <footer id="validator-badges" role="contentinfo">
112
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
113
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
114
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
115
+ </footer>
116
+
@@ -0,0 +1,177 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>README - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="file">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+ <div class="nav-section">
55
+ <h3>Table of Contents</h3>
56
+
57
+ <ul class="link-list" role="directory">
58
+ <li><a href="#label-Alimentos">Alimentos</a>
59
+ <li><a href="#label-Installation">Installation</a>
60
+ <li><a href="#label-Usage">Usage</a>
61
+ <li><a href="#label-Development">Development</a>
62
+ <li><a href="#label-Contributing">Contributing</a>
63
+ <li><a href="#label-License">License</a>
64
+ <li><a href="#label-Code+of+Conduct">Code of Conduct</a>
65
+ </ul>
66
+ </div>
67
+
68
+
69
+ <div id="project-metadata">
70
+ <div id="fileindex-section" class="nav-section">
71
+ <h3>Pages</h3>
72
+
73
+ <ul class="link-list">
74
+
75
+ <li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
76
+
77
+ <li><a href="./Gemfile.html">Gemfile</a>
78
+
79
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
80
+
81
+ <li><a href="./Guardfile.html">Guardfile</a>
82
+
83
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
84
+
85
+ <li><a href="./README_md.html">README</a>
86
+
87
+ <li><a href="./Rakefile.html">Rakefile</a>
88
+
89
+ <li><a href="./alimentos_gemspec.html">alimentos.gemspec</a>
90
+
91
+ <li><a href="./bin/setup.html">setup</a>
92
+
93
+ </ul>
94
+ </div>
95
+
96
+ </div>
97
+ </nav>
98
+
99
+ <main role="main" aria-label="Page README.md">
100
+
101
+ <p>Lenguajes y Paradigmas de la Programación</p>
102
+
103
+ <p>Practica 6</p>
104
+
105
+ <p>Autor: Rafael Abadia Reyes</p>
106
+
107
+ <h1 id="label-Alimentos"><a href="Alimentos.html">Alimentos</a><span><a href="#label-Alimentos">&para;</a> <a href="#top">&uarr;</a></span></h1>
108
+
109
+ <p>Welcome to your new gem! In this directory, you&#39;ll find the files you
110
+ need to be able to package up your Ruby library into a gem. Put your Ruby
111
+ code in the file <code>lib/alimentos</code>. To experiment with that code,
112
+ run <code>bin/console</code> for an interactive prompt.</p>
113
+
114
+ <p>TODO: Delete this and the text above, and describe your gem</p>
115
+
116
+ <h2 id="label-Installation">Installation<span><a href="#label-Installation">&para;</a> <a href="#top">&uarr;</a></span></h2>
117
+
118
+ <p>Add this line to your application&#39;s Gemfile:</p>
119
+
120
+ <pre class="ruby"><span class="ruby-identifier">gem</span> <span class="ruby-string">&#39;alimentos&#39;</span>
121
+ </pre>
122
+
123
+ <p>And then execute:</p>
124
+
125
+ <pre>$ bundle</pre>
126
+
127
+ <p>Or install it yourself as:</p>
128
+
129
+ <pre>$ gem install alimentos</pre>
130
+
131
+ <h2 id="label-Usage">Usage<span><a href="#label-Usage">&para;</a> <a href="#top">&uarr;</a></span></h2>
132
+
133
+ <p>TODO: Write usage instructions here</p>
134
+
135
+ <h2 id="label-Development">Development<span><a href="#label-Development">&para;</a> <a href="#top">&uarr;</a></span></h2>
136
+
137
+ <p>After checking out the repo, run <code>bin/setup</code> to install
138
+ dependencies. You can also run <code>bin/console</code> for an interactive
139
+ prompt that will allow you to experiment.</p>
140
+
141
+ <p>To install this gem onto your local machine, run <code>bundle exec rake
142
+ install</code>. To release a new version, update the version number in
143
+ <code>version.rb</code>, and then run <code>bundle exec rake
144
+ release</code>, which will create a git tag for the version, push git
145
+ commits and tags, and push the <code>.gem</code> file to <a
146
+ href="https://rubygems.org">rubygems.org</a>.</p>
147
+
148
+ <h2 id="label-Contributing">Contributing<span><a href="#label-Contributing">&para;</a> <a href="#top">&uarr;</a></span></h2>
149
+
150
+ <p>Bug reports and pull requests are welcome on GitHub at <a
151
+ href="https://github.com/[USERNAME]/alimentos">github.com/[USERNAME]/alimentos</a>.
152
+ This project is intended to be a safe, welcoming space for collaboration,
153
+ and contributors are expected to adhere to the <a
154
+ href="http://contributor-covenant.org">Contributor Covenant</a> code of
155
+ conduct.</p>
156
+
157
+ <h2 id="label-License">License<span><a href="#label-License">&para;</a> <a href="#top">&uarr;</a></span></h2>
158
+
159
+ <p>The gem is available as open source under the terms of the <a
160
+ href="http://opensource.org/licenses/MIT">MIT License</a>.</p>
161
+
162
+ <h2 id="label-Code+of+Conduct">Code of Conduct<span><a href="#label-Code+of+Conduct">&para;</a> <a href="#top">&uarr;</a></span></h2>
163
+
164
+ <p>Everyone interacting in the <a href="Alimentos.html">Alimentos</a>
165
+ project’s codebases, issue trackers, chat rooms and mailing lists is
166
+ expected to follow the {code of
167
+ conduct}[https://github.com/[USERNAME]/alimentos/blob/master/CODE_OF_CONDUCT.md].</p>
168
+ </main>
169
+
170
+
171
+
172
+ <footer id="validator-badges" role="contentinfo">
173
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
174
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
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
+
@@ -0,0 +1,101 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>Rakefile - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="file">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="project-metadata">
56
+ <div id="fileindex-section" class="nav-section">
57
+ <h3>Pages</h3>
58
+
59
+ <ul class="link-list">
60
+
61
+ <li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
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="./LICENSE_txt.html">LICENSE</a>
70
+
71
+ <li><a href="./README_md.html">README</a>
72
+
73
+ <li><a href="./Rakefile.html">Rakefile</a>
74
+
75
+ <li><a href="./alimentos_gemspec.html">alimentos.gemspec</a>
76
+
77
+ <li><a href="./bin/setup.html">setup</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-label="Page Rakefile">
86
+
87
+ <p>require “bundler/gem_tasks” require “rspec/core/rake_task”</p>
88
+
89
+ <p>RSpec::Core::RakeTask.new(:spec)</p>
90
+
91
+ <p>task :default =&gt; :spec</p>
92
+ </main>
93
+
94
+
95
+
96
+ <footer id="validator-badges" role="contentinfo">
97
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
98
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
99
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
100
+ </footer>
101
+
@@ -0,0 +1,135 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>alimentos.gemspec - RDoc Documentation</title>
8
+
9
+ <script type="text/javascript">
10
+ var rdoc_rel_prefix = "./";
11
+ </script>
12
+
13
+ <script src="./js/jquery.js"></script>
14
+ <script src="./js/darkfish.js"></script>
15
+
16
+ <link href="./css/fonts.css" rel="stylesheet">
17
+ <link href="./css/rdoc.css" rel="stylesheet">
18
+
19
+
20
+
21
+ <body id="top" role="document" class="file">
22
+ <nav role="navigation">
23
+ <div id="project-navigation">
24
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
25
+ <h2>
26
+ <a href="./index.html" rel="home">Home</a>
27
+ </h2>
28
+
29
+ <div id="table-of-contents-navigation">
30
+ <a href="./table_of_contents.html#pages">Pages</a>
31
+ <a href="./table_of_contents.html#classes">Classes</a>
32
+ <a href="./table_of_contents.html#methods">Methods</a>
33
+ </div>
34
+ </div>
35
+
36
+ <div id="search-section" role="search" class="project-section initially-hidden">
37
+ <form action="#" method="get" accept-charset="utf-8">
38
+ <div id="search-field-wrapper">
39
+ <input id="search-field" role="combobox" aria-label="Search"
40
+ aria-autocomplete="list" aria-controls="search-results"
41
+ type="text" name="search" placeholder="Search" spellcheck="false"
42
+ title="Type to search, Up and Down to navigate, Enter to load">
43
+ </div>
44
+
45
+ <ul id="search-results" aria-label="Search Results"
46
+ aria-busy="false" aria-expanded="false"
47
+ aria-atomic="false" class="initially-hidden"></ul>
48
+ </form>
49
+ </div>
50
+
51
+ </div>
52
+
53
+
54
+
55
+ <div id="project-metadata">
56
+ <div id="fileindex-section" class="nav-section">
57
+ <h3>Pages</h3>
58
+
59
+ <ul class="link-list">
60
+
61
+ <li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a>
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="./LICENSE_txt.html">LICENSE</a>
70
+
71
+ <li><a href="./README_md.html">README</a>
72
+
73
+ <li><a href="./Rakefile.html">Rakefile</a>
74
+
75
+ <li><a href="./alimentos_gemspec.html">alimentos.gemspec</a>
76
+
77
+ <li><a href="./bin/setup.html">setup</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-label="Page alimentos.gemspec">
86
+
87
+ <p>lib = File.expand_path(“../lib”, __FILE__) $LOAD_PATH.unshift(lib) unless
88
+ $LOAD_PATH.include?(lib) require “alimentos/version”</p>
89
+
90
+ <p>Gem::Specification.new do |spec|</p>
91
+
92
+ <pre class="ruby"><span class="ruby-identifier">spec</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">&quot;alimentos&quot;</span>
93
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">version</span> = <span class="ruby-constant">Alimentos</span><span class="ruby-operator">::</span><span class="ruby-constant">VERSION</span>
94
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">authors</span> = [<span class="ruby-string">&quot;rafael abadia&quot;</span>]
95
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">email</span> = [<span class="ruby-string">&quot;alu0100648782@ull.edu.es&quot;</span>]
96
+
97
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">summary</span> = <span class="ruby-string">%q{sumario de la gema}</span>
98
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">description</span> = <span class="ruby-string">%q{Descripcion de la gema}</span>
99
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">homepage</span> = <span class="ruby-string">&quot;https://github.com/alu0100648782/tdd-1718&quot;</span>
100
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">license</span> = <span class="ruby-string">&quot;MIT&quot;</span>
101
+
102
+ <span class="ruby-comment"># Prevent pushing this gem to RubyGems.org. To allow pushes either set the &#39;allowed_push_host&#39;</span>
103
+ <span class="ruby-comment"># to allow pushing to a single host or delete this section to allow pushing to any host.</span>
104
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">respond_to?</span>(:<span class="ruby-identifier">metadata</span>)
105
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">metadata</span>[<span class="ruby-string">&quot;allowed_push_host&quot;</span>] = <span class="ruby-string">&quot;TODO: Set to &#39;http://mygemserver.com&#39;&quot;</span>
106
+ <span class="ruby-keyword">else</span>
107
+ <span class="ruby-identifier">raise</span> <span class="ruby-string">&quot;RubyGems 2.0 or newer is required to protect against &quot;</span> <span class="ruby-string">&quot;public gem pushes.&quot;</span>
108
+ <span class="ruby-keyword">end</span>
109
+
110
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">files</span> = <span class="ruby-value">%x`git ls-files -z`</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">&quot;\x0&quot;</span>).<span class="ruby-identifier">reject</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span>
111
+ <span class="ruby-identifier">f</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp">%r{^(test|spec|features)/}</span>)
112
+ <span class="ruby-keyword">end</span>
113
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">bindir</span> = <span class="ruby-string">&quot;exe&quot;</span>
114
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">executables</span> = <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">files</span>.<span class="ruby-identifier">grep</span>(<span class="ruby-regexp">%r{^exe/}</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">f</span>) }
115
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">require_paths</span> = [<span class="ruby-string">&quot;lib&quot;</span>]
116
+
117
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&quot;bundler&quot;</span>, <span class="ruby-string">&quot;~&gt; 1.15&quot;</span>
118
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&quot;rake&quot;</span>, <span class="ruby-string">&quot;~&gt; 10.0&quot;</span>
119
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&quot;rspec&quot;</span>, <span class="ruby-string">&quot;~&gt; 3.0&quot;</span>
120
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&quot;guard&quot;</span>
121
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&quot;guard-rspec&quot;</span>
122
+ <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">&quot;guard-bundler&quot;</span>
123
+ </pre>
124
+
125
+ <p>end</p>
126
+ </main>
127
+
128
+
129
+
130
+ <footer id="validator-badges" role="contentinfo">
131
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
132
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
133
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
134
+ </footer>
135
+