alimento-0100905144 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/.coveralls.yml +2 -0
  3. data/.gitignore +12 -0
  4. data/.travis.yml +6 -0
  5. data/Gemfile +10 -0
  6. data/Guardfile +82 -0
  7. data/LICENSE.txt +21 -0
  8. data/README.md +39 -0
  9. data/Rakefile +6 -0
  10. data/alimento.gemspec +40 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +8 -0
  13. data/docs/Alimento.html +133 -0
  14. data/docs/Alimento/Alimento.html +347 -0
  15. data/docs/Alimento/GrupoAlimento.html +236 -0
  16. data/docs/Alimento/Lista.html +410 -0
  17. data/docs/Gemfile.html +102 -0
  18. data/docs/Gemfile_lock.html +177 -0
  19. data/docs/Guardfile.html +179 -0
  20. data/docs/LICENSE_txt.html +116 -0
  21. data/docs/README_md.html +159 -0
  22. data/docs/Rakefile.html +100 -0
  23. data/docs/alimento_gemspec.html +134 -0
  24. data/docs/bin/setup.html +100 -0
  25. data/docs/created.rid +16 -0
  26. data/docs/css/fonts.css +167 -0
  27. data/docs/css/rdoc.css +590 -0
  28. data/docs/fonts/Lato-Light.ttf +0 -0
  29. data/docs/fonts/Lato-LightItalic.ttf +0 -0
  30. data/docs/fonts/Lato-Regular.ttf +0 -0
  31. data/docs/fonts/Lato-RegularItalic.ttf +0 -0
  32. data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
  33. data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
  34. data/docs/images/add.png +0 -0
  35. data/docs/images/arrow_up.png +0 -0
  36. data/docs/images/brick.png +0 -0
  37. data/docs/images/brick_link.png +0 -0
  38. data/docs/images/bug.png +0 -0
  39. data/docs/images/bullet_black.png +0 -0
  40. data/docs/images/bullet_toggle_minus.png +0 -0
  41. data/docs/images/bullet_toggle_plus.png +0 -0
  42. data/docs/images/date.png +0 -0
  43. data/docs/images/delete.png +0 -0
  44. data/docs/images/find.png +0 -0
  45. data/docs/images/loadingAnimation.gif +0 -0
  46. data/docs/images/macFFBgHack.png +0 -0
  47. data/docs/images/package.png +0 -0
  48. data/docs/images/page_green.png +0 -0
  49. data/docs/images/page_white_text.png +0 -0
  50. data/docs/images/page_white_width.png +0 -0
  51. data/docs/images/plugin.png +0 -0
  52. data/docs/images/ruby.png +0 -0
  53. data/docs/images/tag_blue.png +0 -0
  54. data/docs/images/tag_green.png +0 -0
  55. data/docs/images/transparent.png +0 -0
  56. data/docs/images/wrench.png +0 -0
  57. data/docs/images/wrench_orange.png +0 -0
  58. data/docs/images/zoom.png +0 -0
  59. data/docs/index.html +110 -0
  60. data/docs/js/darkfish.js +161 -0
  61. data/docs/js/jquery.js +4 -0
  62. data/docs/js/navigation.js +142 -0
  63. data/docs/js/navigation.js.gz +0 -0
  64. data/docs/js/search.js +109 -0
  65. data/docs/js/search_index.js +1 -0
  66. data/docs/js/search_index.js.gz +0 -0
  67. data/docs/js/searcher.js +229 -0
  68. data/docs/js/searcher.js.gz +0 -0
  69. data/docs/table_of_contents.html +151 -0
  70. data/lib/alimento.rb +8 -0
  71. data/lib/alimento/alimento.rb +97 -0
  72. data/lib/alimento/lista.rb +69 -0
  73. data/lib/alimento/ordenacion.rb +42 -0
  74. data/lib/alimento/plato.rb +133 -0
  75. data/lib/alimento/version.rb +3 -0
  76. metadata +218 -0
@@ -0,0 +1,102 @@
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
+ <body id="top" role="document" class="file">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
55
+
56
+ <div id="project-metadata">
57
+ <div id="fileindex-section" class="nav-section">
58
+ <h3>Pages</h3>
59
+
60
+ <ul class="link-list">
61
+
62
+ <li><a href="./Gemfile.html">Gemfile</a>
63
+
64
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
65
+
66
+ <li><a href="./Guardfile.html">Guardfile</a>
67
+
68
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
69
+
70
+ <li><a href="./README_md.html">README</a>
71
+
72
+ <li><a href="./Rakefile.html">Rakefile</a>
73
+
74
+ <li><a href="./alimento_gemspec.html">alimento.gemspec</a>
75
+
76
+ <li><a href="./bin/setup.html">setup</a>
77
+
78
+ </ul>
79
+ </div>
80
+
81
+ </div>
82
+ </nav>
83
+
84
+ <main role="main" aria-label="Page Gemfile">
85
+
86
+ <p>source “<a href="https://rubygems.org">rubygems.org</a>”</p>
87
+
88
+ <p>git_source(:github) {|repo_name| “<a
89
+ href="https://github.com/#{repo_name">github.com/#{repo_name</a>}” }</p>
90
+
91
+ <p># Specify your gem&#39;s dependencies in <a
92
+ href="alimento_gemspec.html">alimento.gemspec</a> gemspec</p>
93
+ </main>
94
+
95
+
96
+
97
+ <footer id="validator-badges" role="contentinfo">
98
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
99
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
100
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
101
+ </footer>
102
+
@@ -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
+ <body id="top" role="document" class="file">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
55
+
56
+ <div id="project-metadata">
57
+ <div id="fileindex-section" class="nav-section">
58
+ <h3>Pages</h3>
59
+
60
+ <ul class="link-list">
61
+
62
+ <li><a href="./Gemfile.html">Gemfile</a>
63
+
64
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
65
+
66
+ <li><a href="./Guardfile.html">Guardfile</a>
67
+
68
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
69
+
70
+ <li><a href="./README_md.html">README</a>
71
+
72
+ <li><a href="./Rakefile.html">Rakefile</a>
73
+
74
+ <li><a href="./alimento_gemspec.html">alimento.gemspec</a>
75
+
76
+ <li><a href="./bin/setup.html">setup</a>
77
+
78
+ </ul>
79
+ </div>
80
+
81
+ </div>
82
+ </nav>
83
+
84
+ <main role="main" aria-label="Page Gemfile.lock">
85
+
86
+ <p>PATH</p>
87
+
88
+ <pre>remote: .
89
+ specs:
90
+ alimento (0.1.0)</pre>
91
+
92
+ <p>GEM</p>
93
+
94
+ <pre>remote: https://rubygems.org/
95
+ specs:
96
+ coderay (1.1.2)
97
+ diff-lcs (1.3)
98
+ ffi (1.9.18)
99
+ formatador (0.2.5)
100
+ guard (2.14.1)
101
+ formatador (&gt;= 0.2.4)
102
+ listen (&gt;= 2.7, &lt; 4.0)
103
+ lumberjack (~&gt; 1.0)
104
+ nenv (~&gt; 0.1)
105
+ notiffany (~&gt; 0.0)
106
+ pry (&gt;= 0.9.12)
107
+ shellany (~&gt; 0.0)
108
+ thor (&gt;= 0.18.1)
109
+ guard-bundler (2.1.0)
110
+ bundler (~&gt; 1.0)
111
+ guard (~&gt; 2.2)
112
+ guard-compat (~&gt; 1.1)
113
+ guard-compat (1.2.1)
114
+ guard-rspec (4.7.3)
115
+ guard (~&gt; 2.1)
116
+ guard-compat (~&gt; 1.1)
117
+ rspec (&gt;= 2.99.0, &lt; 4.0)
118
+ listen (3.1.1)
119
+ rb-fsevent (&gt;= 0.9.3)
120
+ rb-inotify (&gt;= 0.9.7)
121
+ lumberjack (1.0.12)
122
+ method_source (0.9.0)
123
+ nenv (0.3.0)
124
+ notiffany (0.1.1)
125
+ nenv (~&gt; 0.1)
126
+ shellany (~&gt; 0.0)
127
+ pry (0.11.2)
128
+ coderay (~&gt; 1.1.0)
129
+ method_source (~&gt; 0.9.0)
130
+ rake (10.5.0)
131
+ rb-fsevent (0.10.2)
132
+ rb-inotify (0.9.10)
133
+ ffi (&gt;= 0.5.0, &lt; 2)
134
+ rspec (3.7.0)
135
+ rspec-core (~&gt; 3.7.0)
136
+ rspec-expectations (~&gt; 3.7.0)
137
+ rspec-mocks (~&gt; 3.7.0)
138
+ rspec-core (3.7.0)
139
+ rspec-support (~&gt; 3.7.0)
140
+ rspec-expectations (3.7.0)
141
+ diff-lcs (&gt;= 1.2.0, &lt; 2.0)
142
+ rspec-support (~&gt; 3.7.0)
143
+ rspec-mocks (3.7.0)
144
+ diff-lcs (&gt;= 1.2.0, &lt; 2.0)
145
+ rspec-support (~&gt; 3.7.0)
146
+ rspec-support (3.7.0)
147
+ shellany (0.0.1)
148
+ thor (0.20.0)</pre>
149
+
150
+ <p>PLATFORMS</p>
151
+
152
+ <pre class="ruby"><span class="ruby-identifier">ruby</span>
153
+ </pre>
154
+
155
+ <p>DEPENDENCIES</p>
156
+
157
+ <pre>alimento!
158
+ bundler (~&gt; 1.15)
159
+ guard
160
+ guard-bundler
161
+ guard-rspec
162
+ rake (~&gt; 10.0)
163
+ rspec (~&gt; 3.0)</pre>
164
+
165
+ <p>BUNDLED WITH</p>
166
+
167
+ <pre>1.15.4</pre>
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="https://rdoc.github.io/rdoc">RDoc</a> 5.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
+
@@ -0,0 +1,179 @@
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
+ 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
+ <body id="top" role="document" class="file">
23
+ <nav role="navigation">
24
+ <div id="project-navigation">
25
+ <div id="home-section" role="region" title="Quick navigation" class="nav-section">
26
+ <h2>
27
+ <a href="./index.html" rel="home">Home</a>
28
+ </h2>
29
+
30
+ <div id="table-of-contents-navigation">
31
+ <a href="./table_of_contents.html#pages">Pages</a>
32
+ <a href="./table_of_contents.html#classes">Classes</a>
33
+ <a href="./table_of_contents.html#methods">Methods</a>
34
+ </div>
35
+ </div>
36
+
37
+ <div id="search-section" role="search" class="project-section initially-hidden">
38
+ <form action="#" method="get" accept-charset="utf-8">
39
+ <div id="search-field-wrapper">
40
+ <input id="search-field" role="combobox" aria-label="Search"
41
+ aria-autocomplete="list" aria-controls="search-results"
42
+ type="text" name="search" placeholder="Search" spellcheck="false"
43
+ title="Type to search, Up and Down to navigate, Enter to load">
44
+ </div>
45
+
46
+ <ul id="search-results" aria-label="Search Results"
47
+ aria-busy="false" aria-expanded="false"
48
+ aria-atomic="false" class="initially-hidden"></ul>
49
+ </form>
50
+ </div>
51
+
52
+ </div>
53
+
54
+
55
+
56
+ <div id="project-metadata">
57
+ <div id="fileindex-section" class="nav-section">
58
+ <h3>Pages</h3>
59
+
60
+ <ul class="link-list">
61
+
62
+ <li><a href="./Gemfile.html">Gemfile</a>
63
+
64
+ <li><a href="./Gemfile_lock.html">Gemfile.lock</a>
65
+
66
+ <li><a href="./Guardfile.html">Guardfile</a>
67
+
68
+ <li><a href="./LICENSE_txt.html">LICENSE</a>
69
+
70
+ <li><a href="./README_md.html">README</a>
71
+
72
+ <li><a href="./Rakefile.html">Rakefile</a>
73
+
74
+ <li><a href="./alimento_gemspec.html">alimento.gemspec</a>
75
+
76
+ <li><a href="./bin/setup.html">setup</a>
77
+
78
+ </ul>
79
+ </div>
80
+
81
+ </div>
82
+ </nav>
83
+
84
+ <main role="main" aria-label="Page Guardfile">
85
+
86
+ <p># A sample <a href="Guardfile.html">Guardfile</a> # More info at <a
87
+ href="https://github.com/guard/guard#readme">github.com/guard/guard#readme</a></p>
88
+
89
+ <p>## Uncomment and set this to only include directories you want to watch #
90
+ directories %w(app lib config test spec features) \ # .select{|d|
91
+ Dir.exists?(d) ? d : UI.warning(“Directory #{d} does not exist”)}</p>
92
+
93
+ <p>## Note: if you are using the `directories` clause above and you are not ##
94
+ watching the project directory (&#39;.&#39;), then you will want to move ##
95
+ the <a href="Guardfile.html">Guardfile</a> to a watched dir and symlink it
96
+ back, e.g. # # $ mkdir config # $ mv <a
97
+ href="Guardfile.html">Guardfile</a> config/ # $ ln -s config/Guardfile . #
98
+ # and, you&#39;ll have to watch “config/Guardfile” instead of “Guardfile”</p>
99
+
100
+ <p>guard :bundler do</p>
101
+
102
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler&#39;</span>
103
+ <span class="ruby-identifier">require</span> <span class="ruby-string">&#39;guard/bundler/verify&#39;</span>
104
+ <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>
105
+
106
+ <span class="ruby-identifier">files</span> = [<span class="ruby-string">&#39;Gemfile&#39;</span>]
107
+ <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>) }
108
+
109
+ <span class="ruby-comment"># Assume files are symlinked from somewhere</span>
110
+ <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>)) }
111
+ </pre>
112
+
113
+ <p>end</p>
114
+
115
+ <p># Note: The cmd option is now required due to the increasing number of ways
116
+ # rspec may be run, below are examples of the most common uses. # *
117
+ bundler: &#39;bundle exec rspec&#39; # * bundler binstubs:
118
+ &#39;bin/rspec&#39; # * spring: &#39;bin/rspec&#39; (This will use spring
119
+ if running and you have # installed the spring
120
+ binstubs per the docs) # * zeus: &#39;zeus rspec&#39; (requires the server
121
+ to be started separately) # * &#39;just&#39; rspec: &#39;rspec&#39;</p>
122
+
123
+ <p>guard :rspec, cmd: “bundle exec rspec” do</p>
124
+
125
+ <pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">&quot;guard/rspec/dsl&quot;</span>
126
+ <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>)
127
+
128
+ <span class="ruby-comment"># Feel free to open issues for suggestions and improvements</span>
129
+
130
+ <span class="ruby-comment"># RSpec files</span>
131
+ <span class="ruby-identifier">rspec</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rspec</span>
132
+ <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> }
133
+ <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> }
134
+ <span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_files</span>)
135
+
136
+ <span class="ruby-comment"># Ruby files</span>
137
+ <span class="ruby-identifier">ruby</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">ruby</span>
138
+ <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>)
139
+
140
+ <span class="ruby-comment"># Rails files</span>
141
+ <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>)
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">app_files</span>)
143
+ <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>)
144
+
145
+ <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>
146
+ [
147
+ <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>),
148
+ <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>),
149
+ <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>)
150
+ ]
151
+ <span class="ruby-keyword">end</span>
152
+
153
+ <span class="ruby-comment"># Rails config changes</span>
154
+ <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> }
155
+ <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> }
156
+ <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> }
157
+
158
+ <span class="ruby-comment"># Capybara features specs</span>
159
+ <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>) }
160
+ <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>) }
161
+
162
+ <span class="ruby-comment"># Turnip features and steps</span>
163
+ <span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/(.+)\.feature$}</span>)
164
+ <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>
165
+ <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>
166
+ <span class="ruby-keyword">end</span>
167
+ </pre>
168
+
169
+ <p>end</p>
170
+ </main>
171
+
172
+
173
+
174
+ <footer id="validator-badges" role="contentinfo">
175
+ <p><a href="http://validator.w3.org/check/referer">Validate</a>
176
+ <p>Generated by <a href="https://rdoc.github.io/rdoc">RDoc</a> 5.1.0.
177
+ <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
178
+ </footer>
179
+