menu-alu0100821390 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (79) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +9 -0
  3. data/.travis.yml +5 -0
  4. data/CODE_OF_CONDUCT.md +49 -0
  5. data/Gemfile +4 -0
  6. data/Guardfile +82 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +41 -0
  9. data/Rakefile +6 -0
  10. data/bin/console +14 -0
  11. data/bin/setup +8 -0
  12. data/doc/CODE_OF_CONDUCT_md.html +147 -0
  13. data/doc/DietaPorAlimentos.html +269 -0
  14. data/doc/DietaPorEdades.html +269 -0
  15. data/doc/Gemfile.html +98 -0
  16. data/doc/Guardfile.html +178 -0
  17. data/doc/LICENSE_txt.html +115 -0
  18. data/doc/Lista.html +477 -0
  19. data/doc/Menu/Menu.html +751 -0
  20. data/doc/Menu.html +113 -0
  21. data/doc/Object.html +116 -0
  22. data/doc/README_md.html +162 -0
  23. data/doc/Rakefile.html +99 -0
  24. data/doc/bin/setup.html +99 -0
  25. data/doc/created.rid +18 -0
  26. data/doc/css/fonts.css +167 -0
  27. data/doc/css/rdoc.css +590 -0
  28. data/doc/fonts/Lato-Light.ttf +0 -0
  29. data/doc/fonts/Lato-LightItalic.ttf +0 -0
  30. data/doc/fonts/Lato-Regular.ttf +0 -0
  31. data/doc/fonts/Lato-RegularItalic.ttf +0 -0
  32. data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
  33. data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
  34. data/doc/images/add.png +0 -0
  35. data/doc/images/arrow_up.png +0 -0
  36. data/doc/images/brick.png +0 -0
  37. data/doc/images/brick_link.png +0 -0
  38. data/doc/images/bug.png +0 -0
  39. data/doc/images/bullet_black.png +0 -0
  40. data/doc/images/bullet_toggle_minus.png +0 -0
  41. data/doc/images/bullet_toggle_plus.png +0 -0
  42. data/doc/images/date.png +0 -0
  43. data/doc/images/delete.png +0 -0
  44. data/doc/images/find.png +0 -0
  45. data/doc/images/loadingAnimation.gif +0 -0
  46. data/doc/images/macFFBgHack.png +0 -0
  47. data/doc/images/package.png +0 -0
  48. data/doc/images/page_green.png +0 -0
  49. data/doc/images/page_white_text.png +0 -0
  50. data/doc/images/page_white_width.png +0 -0
  51. data/doc/images/plugin.png +0 -0
  52. data/doc/images/ruby.png +0 -0
  53. data/doc/images/tag_blue.png +0 -0
  54. data/doc/images/tag_green.png +0 -0
  55. data/doc/images/transparent.png +0 -0
  56. data/doc/images/wrench.png +0 -0
  57. data/doc/images/wrench_orange.png +0 -0
  58. data/doc/images/zoom.png +0 -0
  59. data/doc/index.html +113 -0
  60. data/doc/js/darkfish.js +161 -0
  61. data/doc/js/jquery.js +4 -0
  62. data/doc/js/navigation.js +142 -0
  63. data/doc/js/navigation.js.gz +0 -0
  64. data/doc/js/search.js +109 -0
  65. data/doc/js/search_index.js +1 -0
  66. data/doc/js/search_index.js.gz +0 -0
  67. data/doc/js/searcher.js +228 -0
  68. data/doc/js/searcher.js.gz +0 -0
  69. data/doc/menu_gemspec.html +131 -0
  70. data/doc/table_of_contents.html +235 -0
  71. data/lib/menu/codigo_alimentos.rb +21 -0
  72. data/lib/menu/codigo_edades.rb +21 -0
  73. data/lib/menu/codigo_lista.rb +104 -0
  74. data/lib/menu/codigo_menu.rb +103 -0
  75. data/lib/menu/codigo_menu_dsl.rb +70 -0
  76. data/lib/menu/version.rb +5 -0
  77. data/lib/menu.rb +10 -0
  78. data/menu.gemspec +36 -0
  79. metadata +205 -0
@@ -0,0 +1,269 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>class DietaPorEdades - 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"><a href="Menu/Menu.html">Menu::Menu</a>
62
+
63
+ </div>
64
+
65
+
66
+
67
+ <!-- Method Quickref -->
68
+ <div id="method-list-section" class="nav-section">
69
+ <h3>Methods</h3>
70
+
71
+ <ul class="link-list" role="directory">
72
+
73
+ <li ><a href="#method-c-new">::new</a>
74
+
75
+ <li ><a href="#method-i-pop">#pop</a>
76
+
77
+ <li ><a href="#method-i-push">#push</a>
78
+
79
+ </ul>
80
+ </div>
81
+
82
+ </div>
83
+ </nav>
84
+
85
+ <main role="main" aria-labelledby="class-DietaPorEdades">
86
+ <h1 id="class-DietaPorEdades" class="class">
87
+ class DietaPorEdades
88
+ </h1>
89
+
90
+ <section class="description">
91
+
92
+ <p>Clase hija de <a href="Menu.html">Menu</a> que representa una dieta por
93
+ grupos de alimentos</p>
94
+
95
+ </section>
96
+
97
+
98
+
99
+
100
+ <section id="5Buntitled-5D" class="documentation-section">
101
+
102
+
103
+
104
+
105
+
106
+
107
+
108
+ <section class="attribute-method-details" class="method-section">
109
+ <header>
110
+ <h3>Attributes</h3>
111
+ </header>
112
+
113
+
114
+ <div id="attribute-i-dieta" class="method-detail">
115
+ <div class="method-heading attribute-method-heading">
116
+ <span class="method-name">dieta</span><span
117
+ class="attribute-access-type">[R]</span>
118
+ </div>
119
+
120
+ <div class="method-description">
121
+
122
+ <p>Atributos</p>
123
+
124
+ </div>
125
+ </div>
126
+
127
+ <div id="attribute-i-edades" class="method-detail">
128
+ <div class="method-heading attribute-method-heading">
129
+ <span class="method-name">edades</span><span
130
+ class="attribute-access-type">[R]</span>
131
+ </div>
132
+
133
+ <div class="method-description">
134
+
135
+ <p>Atributos</p>
136
+
137
+ </div>
138
+ </div>
139
+
140
+ </section>
141
+
142
+
143
+
144
+ <section id="public-class-5Buntitled-5D-method-details" class="method-section">
145
+ <header>
146
+ <h3>Public Class Methods</h3>
147
+ </header>
148
+
149
+
150
+ <div id="method-c-new" class="method-detail ">
151
+
152
+ <div class="method-heading">
153
+ <span class="method-name">new</span><span
154
+ class="method-args">(edad)</span>
155
+
156
+ <span class="method-click-advice">click to toggle source</span>
157
+
158
+ </div>
159
+
160
+
161
+ <div class="method-description">
162
+
163
+ <p>Meodo initialize para la llamada del new</p>
164
+
165
+
166
+
167
+
168
+ <div class="method-source-code" id="new-source">
169
+ <pre><span class="ruby-comment"># File lib/menu/codigo_edades.rb, line 7</span>
170
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">edad</span>)
171
+ <span class="ruby-ivar">@dieta</span> = <span class="ruby-constant">Lista</span>.<span class="ruby-identifier">new</span>()
172
+ <span class="ruby-ivar">@edades</span> = <span class="ruby-identifier">edad</span>
173
+ <span class="ruby-keyword">end</span></pre>
174
+ </div>
175
+
176
+ </div>
177
+
178
+
179
+
180
+
181
+ </div>
182
+
183
+
184
+ </section>
185
+
186
+ <section id="public-instance-5Buntitled-5D-method-details" class="method-section">
187
+ <header>
188
+ <h3>Public Instance Methods</h3>
189
+ </header>
190
+
191
+
192
+ <div id="method-i-pop" class="method-detail ">
193
+
194
+ <div class="method-heading">
195
+ <span class="method-name">pop</span><span
196
+ class="method-args">()</span>
197
+
198
+ <span class="method-click-advice">click to toggle source</span>
199
+
200
+ </div>
201
+
202
+
203
+ <div class="method-description">
204
+
205
+ <p>Método que extrae un menú de la lista</p>
206
+
207
+
208
+
209
+
210
+ <div class="method-source-code" id="pop-source">
211
+ <pre><span class="ruby-comment"># File lib/menu/codigo_edades.rb, line 18</span>
212
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">pop</span>
213
+ <span class="ruby-ivar">@dieta</span>.<span class="ruby-identifier">extract_inicio</span>
214
+ <span class="ruby-keyword">end</span></pre>
215
+ </div>
216
+
217
+ </div>
218
+
219
+
220
+
221
+
222
+ </div>
223
+
224
+
225
+ <div id="method-i-push" class="method-detail ">
226
+
227
+ <div class="method-heading">
228
+ <span class="method-name">push</span><span
229
+ class="method-args">(menu)</span>
230
+
231
+ <span class="method-click-advice">click to toggle source</span>
232
+
233
+ </div>
234
+
235
+
236
+ <div class="method-description">
237
+
238
+ <p>Método que introduce un menú en la lista</p>
239
+
240
+
241
+
242
+
243
+ <div class="method-source-code" id="push-source">
244
+ <pre><span class="ruby-comment"># File lib/menu/codigo_edades.rb, line 13</span>
245
+ <span class="ruby-keyword">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">menu</span>)
246
+ <span class="ruby-ivar">@dieta</span>.<span class="ruby-identifier">insert_final</span>(<span class="ruby-identifier">menu</span>)
247
+ <span class="ruby-keyword">end</span></pre>
248
+ </div>
249
+
250
+ </div>
251
+
252
+
253
+
254
+
255
+ </div>
256
+
257
+
258
+ </section>
259
+
260
+ </section>
261
+ </main>
262
+
263
+
264
+ <footer id="validator-badges" role="contentinfo">
265
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
266
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
267
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
268
+ </footer>
269
+
data/doc/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
+ </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="./Guardfile.html">Guardfile</a>
66
+
67
+ <li><a href="./LICENSE_txt.html">LICENSE</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="./menu_gemspec.html">menu.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 &#39;<a href="https://rubygems.org">rubygems.org</a>&#39;</p>
86
+
87
+ <p># Specify your gem&#39;s dependencies in <a
88
+ href="menu_gemspec.html">menu.gemspec</a> gemspec</p>
89
+ </main>
90
+
91
+
92
+
93
+ <footer id="validator-badges" role="contentinfo">
94
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
95
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
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,178 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>Guardfile - 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="./Guardfile.html">Guardfile</a>
66
+
67
+ <li><a href="./LICENSE_txt.html">LICENSE</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="./menu_gemspec.html">menu.gemspec</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-label="Page Guardfile">
84
+
85
+ <p># A sample <a href="Guardfile.html">Guardfile</a> # More info at <a
86
+ href="https://github.com/guard/guard#readme">github.com/guard/guard#readme</a></p>
87
+
88
+ <p>## Uncomment and set this to only include directories you want to watch #
89
+ directories %w(app lib config test spec features) \ # .select{|d|
90
+ Dir.exists?(d) ? d : UI.warning(“Directory #{d} does not exist”)}</p>
91
+
92
+ <p>## Note: if you are using the `directories` clause above and you are not ##
93
+ watching the project directory (&#39;.&#39;), then you will want to move ##
94
+ the <a href="Guardfile.html">Guardfile</a> to a watched dir and symlink it
95
+ back, e.g. # # $ mkdir config # $ mv <a
96
+ href="Guardfile.html">Guardfile</a> config/ # $ ln -s config/Guardfile . #
97
+ # and, you&#39;ll have to watch “config/Guardfile” instead of “Guardfile”</p>
98
+
99
+ <p>guard :bundler do</p>
100
+
101
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler&#39;</span>
102
+ <span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler/verify&#39;</span>
103
+ <span class="ruby-identifier">helper</span> = <span class="ruby-constant">Guard</span><span class="ruby-operator">::</span><span class="ruby-constant">Bundler</span><span class="ruby-operator">::</span><span class="ruby-constant">Verify</span>.<span class="ruby-identifier">new</span>
104
+
105
+ <span class="ruby-identifier">files</span> = [<span class="ruby-string">&#39;Gemfile&#39;</span>]
106
+ <span class="ruby-identifier">files</span> <span class="ruby-operator">+=</span> <span class="ruby-constant">Dir</span>[<span class="ruby-string">&#39;*.gemspec&#39;</span>] <span class="ruby-keyword">if</span> <span class="ruby-identifier">files</span>.<span class="ruby-identifier">any?</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">helper</span>.<span class="ruby-identifier">uses_gemspec?</span>(<span class="ruby-identifier">f</span>) }
107
+
108
+ <span class="ruby-comment"># Assume files are symlinked from somewhere</span>
109
+ <span class="ruby-identifier">files</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">helper</span>.<span class="ruby-identifier">real_path</span>(<span class="ruby-identifier">file</span>)) }
110
+ </pre>
111
+
112
+ <p>end</p>
113
+
114
+ <p># Note: The cmd option is now required due to the increasing number of ways
115
+ # rspec may be run, below are examples of the most common uses. # *
116
+ bundler: &#39;bundle exec rspec&#39; # * bundler binstubs:
117
+ &#39;bin/rspec&#39; # * spring: &#39;bin/rspec&#39; (This will use spring
118
+ if running and you have # installed the spring
119
+ binstubs per the docs) # * zeus: &#39;zeus rspec&#39; (requires the server
120
+ to be started separately) # * &#39;just&#39; rspec: &#39;rspec&#39;</p>
121
+
122
+ <p>guard :rspec, cmd: “bundle exec rspec” do</p>
123
+
124
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&quot;guard/rspec/dsl&quot;</span>
125
+ <span class="ruby-identifier">dsl</span> = <span class="ruby-constant">Guard</span><span class="ruby-operator">::</span><span class="ruby-constant">RSpec</span><span class="ruby-operator">::</span><span class="ruby-constant">Dsl</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword">self</span>)
126
+
127
+ <span class="ruby-comment"># Feel free to open issues for suggestions and improvements</span>
128
+
129
+ <span class="ruby-comment"># RSpec files</span>
130
+ <span class="ruby-identifier">rspec</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rspec</span>
131
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_helper</span>) { <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_dir</span> }
132
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_support</span>) { <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_dir</span> }
133
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_files</span>)
134
+
135
+ <span class="ruby-comment"># Ruby files</span>
136
+ <span class="ruby-identifier">ruby</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">ruby</span>
137
+ <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">watch_spec_files_for</span>(<span class="ruby-identifier">ruby</span>.<span class="ruby-identifier">lib_files</span>)
138
+
139
+ <span class="ruby-comment"># Rails files</span>
140
+ <span class="ruby-identifier">rails</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rails</span>(<span class="ruby-identifier">view_extensions</span><span class="ruby-operator">:</span> <span class="ruby-node">%w(erb haml slim)</span>)
141
+ <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">watch_spec_files_for</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">app_files</span>)
142
+ <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">watch_spec_files_for</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">views</span>)
143
+
144
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">controllers</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
145
+ [
146
+ <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">&quot;routing/#{m[1]}_routing&quot;</span>),
147
+ <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">&quot;controllers/#{m[1]}_controller&quot;</span>),
148
+ <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">&quot;acceptance/#{m[1]}&quot;</span>)
149
+ ]
150
+ <span class="ruby-keyword">end</span>
151
+
152
+ <span class="ruby-comment"># Rails config changes</span>
153
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">spec_helper</span>) { <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_dir</span> }
154
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">routes</span>) { <span class="ruby-node">&quot;#{rspec.spec_dir}/routing&quot;</span> }
155
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">app_controller</span>) { <span class="ruby-node">&quot;#{rspec.spec_dir}/controllers&quot;</span> }
156
+
157
+ <span class="ruby-comment"># Capybara features specs</span>
158
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">view_dirs</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">&quot;features/#{m[1]}&quot;</span>) }
159
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">layouts</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">&quot;features/#{m[1]}&quot;</span>) }
160
+
161
+ <span class="ruby-comment"># Turnip features and steps</span>
162
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/(.+)\.feature$}</span>)
163
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/steps/(.+)_steps\.rb$}</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span>
164
+ <span class="ruby-constant">Dir</span>[<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-node">&quot;**/#{m[1]}.feature&quot;</span>)][<span class="ruby-value">0</span>] <span class="ruby-operator">||</span> <span class="ruby-string">&quot;spec/acceptance&quot;</span>
165
+ <span class="ruby-keyword">end</span>
166
+ </pre>
167
+
168
+ <p>end</p>
169
+ </main>
170
+
171
+
172
+
173
+ <footer id="validator-badges" role="contentinfo">
174
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
175
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
176
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
177
+ </footer>
178
+
@@ -0,0 +1,115 @@
1
+ <!DOCTYPE html>
2
+
3
+ <html>
4
+ <head>
5
+ <meta charset="UTF-8">
6
+
7
+ <title>LICENSE - 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="./Guardfile.html">Guardfile</a>
66
+
67
+ <li><a href="./LICENSE_txt.html">LICENSE</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="./menu_gemspec.html">menu.gemspec</a>
76
+
77
+ </ul>
78
+ </div>
79
+
80
+ </div>
81
+ </nav>
82
+
83
+ <main role="main" aria-label="Page LICENSE.txt">
84
+
85
+ <p>The MIT License (MIT)</p>
86
+
87
+ <p>Copyright © 2016 alu0100814651</p>
88
+
89
+ <p>Permission is hereby granted, free of charge, to any person obtaining a
90
+ copy of this software and associated documentation files (the “Software”),
91
+ to deal in the Software without restriction, including without limitation
92
+ the rights to use, copy, modify, merge, publish, distribute, sublicense,
93
+ and/or sell copies of the Software, and to permit persons to whom the
94
+ Software is furnished to do so, subject to the following conditions:</p>
95
+
96
+ <p>The above copyright notice and this permission notice shall be included in
97
+ all copies or substantial portions of the Software.</p>
98
+
99
+ <p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
100
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
101
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
102
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
103
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
104
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
105
+ DEALINGS IN THE SOFTWARE.</p>
106
+ </main>
107
+
108
+
109
+
110
+ <footer id="validator-badges" role="contentinfo">
111
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
112
+ <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.2.
113
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
114
+ </footer>
115
+