dieta_alu0100648782 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +9 -0
- data/Guardfile +82 -0
- data/LICENSE.txt +21 -0
- data/README.md +47 -0
- data/Rakefile +6 -0
- data/bat +122 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/dieta.gemspec +39 -0
- data/doc/CODE_OF_CONDUCT_md.html +197 -0
- data/doc/Dieta.html +109 -0
- data/doc/Dietas.html +219 -0
- data/doc/Gemfile.html +109 -0
- data/doc/Gemfile_lock.html +184 -0
- data/doc/Grupo_alimento.html +221 -0
- data/doc/Grupo_edad.html +221 -0
- data/doc/Guardfile.html +182 -0
- data/doc/LICENSE_txt.html +119 -0
- data/doc/Lista.html +457 -0
- data/doc/Menu.html +624 -0
- data/doc/Object.html +116 -0
- data/doc/Plato.html +314 -0
- data/doc/README_md.html +175 -0
- data/doc/Rakefile.html +103 -0
- data/doc/bat.html +224 -0
- data/doc/bin/setup.html +103 -0
- data/doc/created.rid +20 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -0
- data/doc/dieta_gemspec.html +137 -0
- data/doc/fonts/Lato-Light.ttf +0 -0
- data/doc/fonts/Lato-LightItalic.ttf +0 -0
- data/doc/fonts/Lato-Regular.ttf +0 -0
- data/doc/fonts/Lato-RegularItalic.ttf +0 -0
- data/doc/fonts/SourceCodePro-Bold.ttf +0 -0
- data/doc/fonts/SourceCodePro-Regular.ttf +0 -0
- data/doc/images/add.png +0 -0
- data/doc/images/arrow_up.png +0 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/delete.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_blue.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/transparent.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +121 -0
- data/doc/js/darkfish.js +161 -0
- data/doc/js/jquery.js +4 -0
- data/doc/js/navigation.js +142 -0
- data/doc/js/navigation.js.gz +0 -0
- data/doc/js/search.js +109 -0
- data/doc/js/search_index.js +1 -0
- data/doc/js/search_index.js.gz +0 -0
- data/doc/js/searcher.js +228 -0
- data/doc/js/searcher.js.gz +0 -0
- data/doc/table_of_contents.html +260 -0
- data/lib/dieta/dietas.rb +11 -0
- data/lib/dieta/dsl.rb +59 -0
- data/lib/dieta/lista.rb +66 -0
- data/lib/dieta/menu.rb +79 -0
- data/lib/dieta/plato.rb +19 -0
- data/lib/dieta/version.rb +3 -0
- data/lib/dieta.rb +10 -0
- metadata +211 -0
data/doc/Rakefile.html
ADDED
@@ -0,0 +1,103 @@
|
|
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="./bat.html">bat</a>
|
76
|
+
|
77
|
+
<li><a href="./bin/setup.html">setup</a>
|
78
|
+
|
79
|
+
<li><a href="./dieta_gemspec.html">dieta.gemspec</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
</nav>
|
86
|
+
|
87
|
+
<main role="main" aria-label="Page Rakefile">
|
88
|
+
|
89
|
+
<p>require “bundler/gem_tasks” require “rspec/core/rake_task”</p>
|
90
|
+
|
91
|
+
<p>RSpec::Core::RakeTask.new(:spec)</p>
|
92
|
+
|
93
|
+
<p>task :default => :spec</p>
|
94
|
+
</main>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<footer id="validator-badges" role="contentinfo">
|
99
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
100
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
101
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
102
|
+
</footer>
|
103
|
+
|
data/doc/bat.html
ADDED
@@ -0,0 +1,224 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>bat - 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="./bat.html">bat</a>
|
76
|
+
|
77
|
+
<li><a href="./bin/setup.html">setup</a>
|
78
|
+
|
79
|
+
<li><a href="./dieta_gemspec.html">dieta.gemspec</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
</nav>
|
86
|
+
|
87
|
+
<main role="main" aria-label="Page bat">
|
88
|
+
|
89
|
+
<p># A sample <a href="Guardfile.html">Guardfile</a> # More info at <a
|
90
|
+
href="https://github.com/guard/guard#readme">github.com/guard/guard#readme</a></p>
|
91
|
+
|
92
|
+
<p>## Uncomment and set this to only include directories you want to watch #
|
93
|
+
directories %w(app lib config test spec features) \ # .select{|d|
|
94
|
+
Dir.exists?(d) ? d : UI.warning(“Directory #{d} does not exist”)}</p>
|
95
|
+
|
96
|
+
<p>## Note: if you are using the `directories` clause above and you are not ##
|
97
|
+
watching the project directory ('.'), then you will want to move ##
|
98
|
+
the <a href="Guardfile.html">Guardfile</a> to a watched dir and symlink it
|
99
|
+
back, e.g. # # $ mkdir config # $ mv <a
|
100
|
+
href="Guardfile.html">Guardfile</a> config/ # $ ln -s config/Guardfile . #
|
101
|
+
# and, you'll have to watch “config/Guardfile” instead of “Guardfile”</p>
|
102
|
+
|
103
|
+
<p>guard :bundler do</p>
|
104
|
+
|
105
|
+
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'guard/bundler'</span>
|
106
|
+
<span class="ruby-identifier">require</span> <span class="ruby-string">'guard/bundler/verify'</span>
|
107
|
+
<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>
|
108
|
+
|
109
|
+
<span class="ruby-identifier">files</span> = [<span class="ruby-string">'Gemfile'</span>]
|
110
|
+
<span class="ruby-identifier">files</span> <span class="ruby-operator">+=</span> <span class="ruby-constant">Dir</span>[<span class="ruby-string">'*.gemspec'</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>) }
|
111
|
+
|
112
|
+
<span class="ruby-comment"># Assume files are symlinked from somewhere sample Guardfile</span>
|
113
|
+
</pre>
|
114
|
+
|
115
|
+
<p># More info at <a
|
116
|
+
href="https://github.com/guard/guard#readme">github.com/guard/guard#readme</a></p>
|
117
|
+
|
118
|
+
<p>## Uncomment and set this to only include directories you want to watch #
|
119
|
+
directories %w(app lib config test spec features) \ # .select{|d|
|
120
|
+
Dir.exists?(d) ? d : UI.warning(“Directory #{d} does not exist”)}</p>
|
121
|
+
|
122
|
+
<p>## Note: if you are using the `directories` clause above and you are not ##
|
123
|
+
watching the project directory ('.'), then you will want to move ##
|
124
|
+
the <a href="Guardfile.html">Guardfile</a> to a watched dir and symlink it
|
125
|
+
back, e.g. # # $ mkdir config # $ mv <a
|
126
|
+
href="Guardfile.html">Guardfile</a> config/ # $ ln -s config/Guardfile . #
|
127
|
+
# and, you'll have to watch “config/Guardfile” instead of “Guardfile”</p>
|
128
|
+
|
129
|
+
<p>guard :bundler do</p>
|
130
|
+
|
131
|
+
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'guard/bundler'</span>
|
132
|
+
<span class="ruby-identifier">require</span> <span class="ruby-string">'guard/bundler/verify'</span>
|
133
|
+
<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>
|
134
|
+
|
135
|
+
<span class="ruby-identifier">files</span> = [<span class="ruby-string">'Gemfile'</span>]
|
136
|
+
<span class="ruby-identifier">files</span> <span class="ruby-operator">+=</span> <span class="ruby-constant">Dir</span>[<span class="ruby-string">'*.gemspec'</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>) }
|
137
|
+
|
138
|
+
<span class="ruby-comment"># Assume files are symlinked from somewhere</span>
|
139
|
+
<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>)) }
|
140
|
+
</pre>
|
141
|
+
|
142
|
+
<p>end</p>
|
143
|
+
|
144
|
+
<p># Note: The cmd option is now required due to the increasing number of ways
|
145
|
+
# rspec may be run, below are examples of the most common uses. # *
|
146
|
+
bundler: 'bundle exec rspec' # * bundler binstubs:
|
147
|
+
'bin/rspec' # * spring: 'bin/rspec' (This will use spring
|
148
|
+
if running and you have # installed the spring
|
149
|
+
binstubs per the docs) # * zeus: 'zeus rspec' (requires the server
|
150
|
+
to be started separately) # * 'just' rspec: 'rspec'</p>
|
151
|
+
|
152
|
+
<p>guard :rspec, cmd: “bundle exec rspec” do</p>
|
153
|
+
|
154
|
+
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">"guard/rspec/dsl"</span>
|
155
|
+
|
156
|
+
<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>)) }
|
157
|
+
</pre>
|
158
|
+
|
159
|
+
<p>end</p>
|
160
|
+
|
161
|
+
<p># Note: The cmd option is now required due to the increasing number of ways
|
162
|
+
# rspec may be run, below are examples of the most common uses. # *
|
163
|
+
bundler: 'bundle exec rspec' # * bundler binstubs:
|
164
|
+
'bin/rspec' # * spring: 'bin/rspec' (This will use spring
|
165
|
+
if running and you have # installed the spring
|
166
|
+
binstubs per the docs) # * zeus: 'zeus rspec' (requires the server
|
167
|
+
to be started separately) # * 'just' rspec: 'rspec'</p>
|
168
|
+
|
169
|
+
<p>guard :rspec, cmd: “bundle exec rspec” do</p>
|
170
|
+
|
171
|
+
<pre class="ruby"> <span class="ruby-identifier">require</span> <span class="ruby-string">"guard/rspec/dsl"</span>
|
172
|
+
<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>)
|
173
|
+
|
174
|
+
<span class="ruby-comment"># Feel free to open issues for suggestions and improvements</span>
|
175
|
+
|
176
|
+
<span class="ruby-comment"># RSpec files</span>
|
177
|
+
<span class="ruby-identifier">rspec</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rspec</span>
|
178
|
+
<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> }
|
179
|
+
<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> }
|
180
|
+
<span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_files</span>)
|
181
|
+
|
182
|
+
<span class="ruby-comment"># Ruby files</span>
|
183
|
+
<span class="ruby-identifier">ruby</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">ruby</span>
|
184
|
+
<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>)
|
185
|
+
|
186
|
+
<span class="ruby-comment"># Rails files</span>
|
187
|
+
<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>)
|
188
|
+
<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>)
|
189
|
+
<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>)
|
190
|
+
|
191
|
+
<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>
|
192
|
+
[
|
193
|
+
<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">"routing/#{m[1]}_routing"</span>),
|
194
|
+
<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">"controllers/#{m[1]}_controller"</span>),
|
195
|
+
<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">call</span>(<span class="ruby-node">"acceptance/#{m[1]}"</span>)
|
196
|
+
]
|
197
|
+
<span class="ruby-keyword">end</span>
|
198
|
+
<span class="ruby-comment"># Rails config changes</span>
|
199
|
+
<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> }
|
200
|
+
<span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">routes</span>) { <span class="ruby-node">"#{rspec.spec_dir}/routing"</span> }
|
201
|
+
<span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rails</span>.<span class="ruby-identifier">app_controller</span>) { <span class="ruby-node">"#{rspec.spec_dir}/controllers"</span> }
|
202
|
+
|
203
|
+
<span class="ruby-comment"># Capybara features specs</span>
|
204
|
+
<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">"features/#{m[1]}"</span>) }
|
205
|
+
<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">"features/#{m[1]}"</span>) }
|
206
|
+
|
207
|
+
<span class="ruby-comment"># Turnip features and steps</span>
|
208
|
+
<span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/(.+)\.feature$}</span>)
|
209
|
+
<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>
|
210
|
+
<span class="ruby-constant">Dir</span>[<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-node">"**/#{m[1]}.feature"</span>)][<span class="ruby-value">0</span>] <span class="ruby-operator">||</span> <span class="ruby-string">"spec/acceptance"</span>
|
211
|
+
<span class="ruby-keyword">end</span>
|
212
|
+
</pre>
|
213
|
+
|
214
|
+
<p>end</p>
|
215
|
+
</main>
|
216
|
+
|
217
|
+
|
218
|
+
|
219
|
+
<footer id="validator-badges" role="contentinfo">
|
220
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
221
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
222
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
223
|
+
</footer>
|
224
|
+
|
data/doc/bin/setup.html
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>setup - 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="../bat.html">bat</a>
|
76
|
+
|
77
|
+
<li><a href="../bin/setup.html">setup</a>
|
78
|
+
|
79
|
+
<li><a href="../dieta_gemspec.html">dieta.gemspec</a>
|
80
|
+
|
81
|
+
</ul>
|
82
|
+
</div>
|
83
|
+
|
84
|
+
</div>
|
85
|
+
</nav>
|
86
|
+
|
87
|
+
<main role="main" aria-label="Page bin/setup">
|
88
|
+
|
89
|
+
<p>#!/usr/bin/env bash set -euo pipefail IFS=$'nt' set -vx</p>
|
90
|
+
|
91
|
+
<p>bundle install</p>
|
92
|
+
|
93
|
+
<p># Do any other automated setup that you need to do here</p>
|
94
|
+
</main>
|
95
|
+
|
96
|
+
|
97
|
+
|
98
|
+
<footer id="validator-badges" role="contentinfo">
|
99
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
100
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
101
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
102
|
+
</footer>
|
103
|
+
|
data/doc/created.rid
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Fri, 25 Nov 2016 14:27:49 +0000
|
2
|
+
./lib/dieta/version.rb Fri, 18 Nov 2016 12:02:01 +0000
|
3
|
+
./lib/dieta/dietas.rb Fri, 18 Nov 2016 12:02:01 +0000
|
4
|
+
./lib/dieta/lista.rb Fri, 25 Nov 2016 11:41:52 +0000
|
5
|
+
./lib/dieta/menu.rb Fri, 25 Nov 2016 11:50:53 +0000
|
6
|
+
./lib/dieta/plato.rb Fri, 18 Nov 2016 12:02:01 +0000
|
7
|
+
./lib/dieta.rb Fri, 18 Nov 2016 12:02:01 +0000
|
8
|
+
./bin/setup Fri, 18 Nov 2016 12:02:01 +0000
|
9
|
+
./bin/console Fri, 18 Nov 2016 12:02:01 +0000
|
10
|
+
./spec/spec_helper.rb Fri, 18 Nov 2016 12:02:01 +0000
|
11
|
+
./spec/dieta_spec.rb Fri, 25 Nov 2016 14:21:44 +0000
|
12
|
+
./CODE_OF_CONDUCT.md Fri, 18 Nov 2016 12:02:01 +0000
|
13
|
+
./Gemfile.lock Fri, 18 Nov 2016 15:38:47 +0000
|
14
|
+
./Gemfile Fri, 18 Nov 2016 12:19:11 +0000
|
15
|
+
./bat Fri, 18 Nov 2016 15:38:05 +0000
|
16
|
+
./README.md Fri, 18 Nov 2016 12:02:01 +0000
|
17
|
+
./Rakefile Fri, 18 Nov 2016 12:02:01 +0000
|
18
|
+
./dieta.gemspec Fri, 18 Nov 2016 15:15:14 +0000
|
19
|
+
./Guardfile Fri, 25 Nov 2016 12:35:34 +0000
|
20
|
+
./LICENSE.txt Fri, 18 Nov 2016 12:02:01 +0000
|
data/doc/css/fonts.css
ADDED
@@ -0,0 +1,167 @@
|
|
1
|
+
/*
|
2
|
+
* Copyright 2010, 2012 Adobe Systems Incorporated (http://www.adobe.com/),
|
3
|
+
* with Reserved Font Name "Source". All Rights Reserved. Source is a
|
4
|
+
* trademark of Adobe Systems Incorporated in the United States and/or other
|
5
|
+
* countries.
|
6
|
+
*
|
7
|
+
* This Font Software is licensed under the SIL Open Font License, Version
|
8
|
+
* 1.1.
|
9
|
+
*
|
10
|
+
* This license is copied below, and is also available with a FAQ at:
|
11
|
+
* http://scripts.sil.org/OFL
|
12
|
+
*/
|
13
|
+
|
14
|
+
@font-face {
|
15
|
+
font-family: "Source Code Pro";
|
16
|
+
font-style: normal;
|
17
|
+
font-weight: 400;
|
18
|
+
src: local("Source Code Pro"),
|
19
|
+
local("SourceCodePro-Regular"),
|
20
|
+
url("fonts/SourceCodePro-Regular.ttf") format("truetype");
|
21
|
+
}
|
22
|
+
|
23
|
+
@font-face {
|
24
|
+
font-family: "Source Code Pro";
|
25
|
+
font-style: normal;
|
26
|
+
font-weight: 700;
|
27
|
+
src: local("Source Code Pro Bold"),
|
28
|
+
local("SourceCodePro-Bold"),
|
29
|
+
url("fonts/SourceCodePro-Bold.ttf") format("truetype");
|
30
|
+
}
|
31
|
+
|
32
|
+
/*
|
33
|
+
* Copyright (c) 2010, Łukasz Dziedzic (dziedzic@typoland.com),
|
34
|
+
* with Reserved Font Name Lato.
|
35
|
+
*
|
36
|
+
* This Font Software is licensed under the SIL Open Font License, Version
|
37
|
+
* 1.1.
|
38
|
+
*
|
39
|
+
* This license is copied below, and is also available with a FAQ at:
|
40
|
+
* http://scripts.sil.org/OFL
|
41
|
+
*/
|
42
|
+
|
43
|
+
@font-face {
|
44
|
+
font-family: "Lato";
|
45
|
+
font-style: normal;
|
46
|
+
font-weight: 300;
|
47
|
+
src: local("Lato Light"),
|
48
|
+
local("Lato-Light"),
|
49
|
+
url("fonts/Lato-Light.ttf") format("truetype");
|
50
|
+
}
|
51
|
+
|
52
|
+
@font-face {
|
53
|
+
font-family: "Lato";
|
54
|
+
font-style: italic;
|
55
|
+
font-weight: 300;
|
56
|
+
src: local("Lato Light Italic"),
|
57
|
+
local("Lato-LightItalic"),
|
58
|
+
url("fonts/Lato-LightItalic.ttf") format("truetype");
|
59
|
+
}
|
60
|
+
|
61
|
+
@font-face {
|
62
|
+
font-family: "Lato";
|
63
|
+
font-style: normal;
|
64
|
+
font-weight: 700;
|
65
|
+
src: local("Lato Regular"),
|
66
|
+
local("Lato-Regular"),
|
67
|
+
url("fonts/Lato-Regular.ttf") format("truetype");
|
68
|
+
}
|
69
|
+
|
70
|
+
@font-face {
|
71
|
+
font-family: "Lato";
|
72
|
+
font-style: italic;
|
73
|
+
font-weight: 700;
|
74
|
+
src: local("Lato Italic"),
|
75
|
+
local("Lato-Italic"),
|
76
|
+
url("fonts/Lato-RegularItalic.ttf") format("truetype");
|
77
|
+
}
|
78
|
+
|
79
|
+
/*
|
80
|
+
* -----------------------------------------------------------
|
81
|
+
* SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
82
|
+
* -----------------------------------------------------------
|
83
|
+
*
|
84
|
+
* PREAMBLE
|
85
|
+
* The goals of the Open Font License (OFL) are to stimulate worldwide
|
86
|
+
* development of collaborative font projects, to support the font creation
|
87
|
+
* efforts of academic and linguistic communities, and to provide a free and
|
88
|
+
* open framework in which fonts may be shared and improved in partnership
|
89
|
+
* with others.
|
90
|
+
*
|
91
|
+
* The OFL allows the licensed fonts to be used, studied, modified and
|
92
|
+
* redistributed freely as long as they are not sold by themselves. The
|
93
|
+
* fonts, including any derivative works, can be bundled, embedded,
|
94
|
+
* redistributed and/or sold with any software provided that any reserved
|
95
|
+
* names are not used by derivative works. The fonts and derivatives,
|
96
|
+
* however, cannot be released under any other type of license. The
|
97
|
+
* requirement for fonts to remain under this license does not apply
|
98
|
+
* to any document created using the fonts or their derivatives.
|
99
|
+
*
|
100
|
+
* DEFINITIONS
|
101
|
+
* "Font Software" refers to the set of files released by the Copyright
|
102
|
+
* Holder(s) under this license and clearly marked as such. This may
|
103
|
+
* include source files, build scripts and documentation.
|
104
|
+
*
|
105
|
+
* "Reserved Font Name" refers to any names specified as such after the
|
106
|
+
* copyright statement(s).
|
107
|
+
*
|
108
|
+
* "Original Version" refers to the collection of Font Software components as
|
109
|
+
* distributed by the Copyright Holder(s).
|
110
|
+
*
|
111
|
+
* "Modified Version" refers to any derivative made by adding to, deleting,
|
112
|
+
* or substituting -- in part or in whole -- any of the components of the
|
113
|
+
* Original Version, by changing formats or by porting the Font Software to a
|
114
|
+
* new environment.
|
115
|
+
*
|
116
|
+
* "Author" refers to any designer, engineer, programmer, technical
|
117
|
+
* writer or other person who contributed to the Font Software.
|
118
|
+
*
|
119
|
+
* PERMISSION & CONDITIONS
|
120
|
+
* Permission is hereby granted, free of charge, to any person obtaining
|
121
|
+
* a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
122
|
+
* redistribute, and sell modified and unmodified copies of the Font
|
123
|
+
* Software, subject to the following conditions:
|
124
|
+
*
|
125
|
+
* 1) Neither the Font Software nor any of its individual components,
|
126
|
+
* in Original or Modified Versions, may be sold by itself.
|
127
|
+
*
|
128
|
+
* 2) Original or Modified Versions of the Font Software may be bundled,
|
129
|
+
* redistributed and/or sold with any software, provided that each copy
|
130
|
+
* contains the above copyright notice and this license. These can be
|
131
|
+
* included either as stand-alone text files, human-readable headers or
|
132
|
+
* in the appropriate machine-readable metadata fields within text or
|
133
|
+
* binary files as long as those fields can be easily viewed by the user.
|
134
|
+
*
|
135
|
+
* 3) No Modified Version of the Font Software may use the Reserved Font
|
136
|
+
* Name(s) unless explicit written permission is granted by the corresponding
|
137
|
+
* Copyright Holder. This restriction only applies to the primary font name as
|
138
|
+
* presented to the users.
|
139
|
+
*
|
140
|
+
* 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
141
|
+
* Software shall not be used to promote, endorse or advertise any
|
142
|
+
* Modified Version, except to acknowledge the contribution(s) of the
|
143
|
+
* Copyright Holder(s) and the Author(s) or with their explicit written
|
144
|
+
* permission.
|
145
|
+
*
|
146
|
+
* 5) The Font Software, modified or unmodified, in part or in whole,
|
147
|
+
* must be distributed entirely under this license, and must not be
|
148
|
+
* distributed under any other license. The requirement for fonts to
|
149
|
+
* remain under this license does not apply to any document created
|
150
|
+
* using the Font Software.
|
151
|
+
*
|
152
|
+
* TERMINATION
|
153
|
+
* This license becomes null and void if any of the above conditions are
|
154
|
+
* not met.
|
155
|
+
*
|
156
|
+
* DISCLAIMER
|
157
|
+
* THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
158
|
+
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
159
|
+
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
160
|
+
* OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
161
|
+
* COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
162
|
+
* INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
163
|
+
* DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
164
|
+
* FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
165
|
+
* OTHER DEALINGS IN THE FONT SOFTWARE.
|
166
|
+
*/
|
167
|
+
|