gemaalu0100884982 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +4 -0
- data/Guardfile +82 -0
- data/README.md +11 -0
- data/Rakefile +21 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/doc/Dieta.html +681 -0
- data/doc/Gema.html +97 -0
- data/doc/Gemfile.html +120 -0
- data/doc/Gemfile_lock.html +204 -0
- data/doc/Guardfile.html +200 -0
- data/doc/Lista.html +587 -0
- data/doc/Menu_Alimentos.html +234 -0
- data/doc/Menu_Edad.html +234 -0
- data/doc/Object.html +116 -0
- data/doc/README_md.html +129 -0
- data/doc/README_md~.html +128 -0
- data/doc/Rakefile.html +140 -0
- data/doc/Rakefile~.html +140 -0
- data/doc/bin/setup.html +121 -0
- data/doc/created.rid +30 -0
- data/doc/css/fonts.css +167 -0
- data/doc/css/rdoc.css +590 -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/gema_gemspec.html +155 -0
- data/doc/gema_gemspec~.html +156 -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 +135 -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/lib/gema/dieta_rb~.html +253 -0
- data/doc/lib/gema/lista_dll_rb~.html +253 -0
- data/doc/lib/gema/lista_rb~.html +241 -0
- data/doc/lib/gema/version_rb~.html +122 -0
- data/doc/lib/gema_rb~.html +123 -0
- data/doc/spec/dieta_spec_rb~.html +286 -0
- data/doc/spec/herenciadieta_spec_rb~.html +222 -0
- data/doc/spec/lista_spec_rb~.html +396 -0
- data/doc/spec/spec_helper_rb~.html +118 -0
- data/doc/table_of_contents.html +258 -0
- data/gema.gemspec +40 -0
- data/lib/gema.rb +6 -0
- data/lib/gema/dieta.rb +134 -0
- data/lib/gema/dieta_dsl.rb +188 -0
- data/lib/gema/lista_dll.rb +157 -0
- data/lib/gema/version.rb +4 -0
- metadata +228 -0
data/doc/Gema.html
ADDED
@@ -0,0 +1,97 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>module Gema - 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="module">
|
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
|
+
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
</div>
|
62
|
+
</nav>
|
63
|
+
|
64
|
+
<main role="main" aria-labelledby="module-Gema">
|
65
|
+
<h1 id="module-Gema" class="module">
|
66
|
+
module Gema
|
67
|
+
</h1>
|
68
|
+
|
69
|
+
<section class="description">
|
70
|
+
|
71
|
+
<p>Versión de la gema</p>
|
72
|
+
|
73
|
+
</section>
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
79
|
+
|
80
|
+
|
81
|
+
|
82
|
+
|
83
|
+
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
</section>
|
89
|
+
</main>
|
90
|
+
|
91
|
+
|
92
|
+
<footer id="validator-badges" role="contentinfo">
|
93
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
94
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
95
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
96
|
+
</footer>
|
97
|
+
|
data/doc/Gemfile.html
ADDED
@@ -0,0 +1,120 @@
|
|
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="./Gemfile.html">Gemfile</a>
|
62
|
+
|
63
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
64
|
+
|
65
|
+
<li><a href="./Guardfile.html">Guardfile</a>
|
66
|
+
|
67
|
+
<li><a href="./README_md.html">README</a>
|
68
|
+
|
69
|
+
<li><a href="./README_md~.html">README.md~</a>
|
70
|
+
|
71
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
72
|
+
|
73
|
+
<li><a href="./Rakefile~.html">Rakefile~</a>
|
74
|
+
|
75
|
+
<li><a href="./bin/setup.html">setup</a>
|
76
|
+
|
77
|
+
<li><a href="./gema_gemspec.html">gema.gemspec</a>
|
78
|
+
|
79
|
+
<li><a href="./gema_gemspec~.html">gema.gemspec~</a>
|
80
|
+
|
81
|
+
<li><a href="./lib/gema_rb~.html">gema.rb~</a>
|
82
|
+
|
83
|
+
<li><a href="./lib/gema/dieta_rb~.html">dieta.rb~</a>
|
84
|
+
|
85
|
+
<li><a href="./lib/gema/lista_rb~.html">lista.rb~</a>
|
86
|
+
|
87
|
+
<li><a href="./lib/gema/lista_dll_rb~.html">lista_dll.rb~</a>
|
88
|
+
|
89
|
+
<li><a href="./lib/gema/version_rb~.html">version.rb~</a>
|
90
|
+
|
91
|
+
<li><a href="./spec/dieta_spec_rb~.html">dieta_spec.rb~</a>
|
92
|
+
|
93
|
+
<li><a href="./spec/herenciadieta_spec_rb~.html">herenciadieta_spec.rb~</a>
|
94
|
+
|
95
|
+
<li><a href="./spec/lista_spec_rb~.html">lista_spec.rb~</a>
|
96
|
+
|
97
|
+
<li><a href="./spec/spec_helper_rb~.html">spec_helper.rb~</a>
|
98
|
+
|
99
|
+
</ul>
|
100
|
+
</div>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
</nav>
|
104
|
+
|
105
|
+
<main role="main" aria-label="Page Gemfile">
|
106
|
+
|
107
|
+
<p>source '<a href="https://rubygems.org">rubygems.org</a>'</p>
|
108
|
+
|
109
|
+
<p># Specify your gem's dependencies in <a
|
110
|
+
href="gema_gemspec.html">gema.gemspec</a> gemspec</p>
|
111
|
+
</main>
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
<footer id="validator-badges" role="contentinfo">
|
116
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
117
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
118
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
119
|
+
</footer>
|
120
|
+
|
@@ -0,0 +1,204 @@
|
|
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
|
+
</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="./Gemfile.html">Gemfile</a>
|
62
|
+
|
63
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
64
|
+
|
65
|
+
<li><a href="./Guardfile.html">Guardfile</a>
|
66
|
+
|
67
|
+
<li><a href="./README_md.html">README</a>
|
68
|
+
|
69
|
+
<li><a href="./README_md~.html">README.md~</a>
|
70
|
+
|
71
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
72
|
+
|
73
|
+
<li><a href="./Rakefile~.html">Rakefile~</a>
|
74
|
+
|
75
|
+
<li><a href="./bin/setup.html">setup</a>
|
76
|
+
|
77
|
+
<li><a href="./gema_gemspec.html">gema.gemspec</a>
|
78
|
+
|
79
|
+
<li><a href="./gema_gemspec~.html">gema.gemspec~</a>
|
80
|
+
|
81
|
+
<li><a href="./lib/gema_rb~.html">gema.rb~</a>
|
82
|
+
|
83
|
+
<li><a href="./lib/gema/dieta_rb~.html">dieta.rb~</a>
|
84
|
+
|
85
|
+
<li><a href="./lib/gema/lista_rb~.html">lista.rb~</a>
|
86
|
+
|
87
|
+
<li><a href="./lib/gema/lista_dll_rb~.html">lista_dll.rb~</a>
|
88
|
+
|
89
|
+
<li><a href="./lib/gema/version_rb~.html">version.rb~</a>
|
90
|
+
|
91
|
+
<li><a href="./spec/dieta_spec_rb~.html">dieta_spec.rb~</a>
|
92
|
+
|
93
|
+
<li><a href="./spec/herenciadieta_spec_rb~.html">herenciadieta_spec.rb~</a>
|
94
|
+
|
95
|
+
<li><a href="./spec/lista_spec_rb~.html">lista_spec.rb~</a>
|
96
|
+
|
97
|
+
<li><a href="./spec/spec_helper_rb~.html">spec_helper.rb~</a>
|
98
|
+
|
99
|
+
</ul>
|
100
|
+
</div>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
</nav>
|
104
|
+
|
105
|
+
<main role="main" aria-label="Page Gemfile.lock">
|
106
|
+
|
107
|
+
<p>PATH</p>
|
108
|
+
|
109
|
+
<pre>remote: .
|
110
|
+
specs:
|
111
|
+
gema (0.0.1)</pre>
|
112
|
+
|
113
|
+
<p>GEM</p>
|
114
|
+
|
115
|
+
<pre>remote: https://rubygems.org/
|
116
|
+
specs:
|
117
|
+
coderay (1.1.1)
|
118
|
+
diff-lcs (1.2.5)
|
119
|
+
ffi (1.9.14)
|
120
|
+
formatador (0.2.5)
|
121
|
+
guard (2.14.0)
|
122
|
+
formatador (>= 0.2.4)
|
123
|
+
listen (>= 2.7, < 4.0)
|
124
|
+
lumberjack (~> 1.0)
|
125
|
+
nenv (~> 0.1)
|
126
|
+
notiffany (~> 0.0)
|
127
|
+
pry (>= 0.9.12)
|
128
|
+
shellany (~> 0.0)
|
129
|
+
thor (>= 0.18.1)
|
130
|
+
guard-bundler (2.1.0)
|
131
|
+
bundler (~> 1.0)
|
132
|
+
guard (~> 2.2)
|
133
|
+
guard-compat (~> 1.1)
|
134
|
+
guard-compat (1.2.1)
|
135
|
+
guard-rspec (4.7.3)
|
136
|
+
guard (~> 2.1)
|
137
|
+
guard-compat (~> 1.1)
|
138
|
+
rspec (>= 2.99.0, < 4.0)
|
139
|
+
listen (3.1.5)
|
140
|
+
rb-fsevent (~> 0.9, >= 0.9.4)
|
141
|
+
rb-inotify (~> 0.9, >= 0.9.7)
|
142
|
+
ruby_dep (~> 1.2)
|
143
|
+
lumberjack (1.0.10)
|
144
|
+
method_source (0.8.2)
|
145
|
+
nenv (0.3.0)
|
146
|
+
notiffany (0.1.1)
|
147
|
+
nenv (~> 0.1)
|
148
|
+
shellany (~> 0.0)
|
149
|
+
pry (0.10.4)
|
150
|
+
coderay (~> 1.1.0)
|
151
|
+
method_source (~> 0.8.1)
|
152
|
+
slop (~> 3.4)
|
153
|
+
rake (10.5.0)
|
154
|
+
rb-fsevent (0.9.8)
|
155
|
+
rb-inotify (0.9.7)
|
156
|
+
ffi (>= 0.5.0)
|
157
|
+
rb-readline (0.5.3)
|
158
|
+
rspec (3.5.0)
|
159
|
+
rspec-core (~> 3.5.0)
|
160
|
+
rspec-expectations (~> 3.5.0)
|
161
|
+
rspec-mocks (~> 3.5.0)
|
162
|
+
rspec-core (3.5.4)
|
163
|
+
rspec-support (~> 3.5.0)
|
164
|
+
rspec-expectations (3.5.0)
|
165
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
166
|
+
rspec-support (~> 3.5.0)
|
167
|
+
rspec-mocks (3.5.0)
|
168
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
169
|
+
rspec-support (~> 3.5.0)
|
170
|
+
rspec-support (3.5.0)
|
171
|
+
ruby_dep (1.5.0)
|
172
|
+
shellany (0.0.1)
|
173
|
+
slop (3.6.0)
|
174
|
+
thor (0.19.1)</pre>
|
175
|
+
|
176
|
+
<p>PLATFORMS</p>
|
177
|
+
|
178
|
+
<pre class="ruby"><span class="ruby-identifier">ruby</span>
|
179
|
+
</pre>
|
180
|
+
|
181
|
+
<p>DEPENDENCIES</p>
|
182
|
+
|
183
|
+
<pre>bundler (~> 1.13)
|
184
|
+
gema!
|
185
|
+
guard
|
186
|
+
guard-bundler
|
187
|
+
guard-rspec
|
188
|
+
rake (~> 10.0)
|
189
|
+
rb-readline
|
190
|
+
rspec (~> 3.0)</pre>
|
191
|
+
|
192
|
+
<p>BUNDLED WITH</p>
|
193
|
+
|
194
|
+
<pre>1.13.6</pre>
|
195
|
+
</main>
|
196
|
+
|
197
|
+
|
198
|
+
|
199
|
+
<footer id="validator-badges" role="contentinfo">
|
200
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
201
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
202
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
203
|
+
</footer>
|
204
|
+
|
data/doc/Guardfile.html
ADDED
@@ -0,0 +1,200 @@
|
|
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="./Gemfile.html">Gemfile</a>
|
62
|
+
|
63
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
64
|
+
|
65
|
+
<li><a href="./Guardfile.html">Guardfile</a>
|
66
|
+
|
67
|
+
<li><a href="./README_md.html">README</a>
|
68
|
+
|
69
|
+
<li><a href="./README_md~.html">README.md~</a>
|
70
|
+
|
71
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
72
|
+
|
73
|
+
<li><a href="./Rakefile~.html">Rakefile~</a>
|
74
|
+
|
75
|
+
<li><a href="./bin/setup.html">setup</a>
|
76
|
+
|
77
|
+
<li><a href="./gema_gemspec.html">gema.gemspec</a>
|
78
|
+
|
79
|
+
<li><a href="./gema_gemspec~.html">gema.gemspec~</a>
|
80
|
+
|
81
|
+
<li><a href="./lib/gema_rb~.html">gema.rb~</a>
|
82
|
+
|
83
|
+
<li><a href="./lib/gema/dieta_rb~.html">dieta.rb~</a>
|
84
|
+
|
85
|
+
<li><a href="./lib/gema/lista_rb~.html">lista.rb~</a>
|
86
|
+
|
87
|
+
<li><a href="./lib/gema/lista_dll_rb~.html">lista_dll.rb~</a>
|
88
|
+
|
89
|
+
<li><a href="./lib/gema/version_rb~.html">version.rb~</a>
|
90
|
+
|
91
|
+
<li><a href="./spec/dieta_spec_rb~.html">dieta_spec.rb~</a>
|
92
|
+
|
93
|
+
<li><a href="./spec/herenciadieta_spec_rb~.html">herenciadieta_spec.rb~</a>
|
94
|
+
|
95
|
+
<li><a href="./spec/lista_spec_rb~.html">lista_spec.rb~</a>
|
96
|
+
|
97
|
+
<li><a href="./spec/spec_helper_rb~.html">spec_helper.rb~</a>
|
98
|
+
|
99
|
+
</ul>
|
100
|
+
</div>
|
101
|
+
|
102
|
+
</div>
|
103
|
+
</nav>
|
104
|
+
|
105
|
+
<main role="main" aria-label="Page Guardfile">
|
106
|
+
|
107
|
+
<p># A sample <a href="Guardfile.html">Guardfile</a> # More info at <a
|
108
|
+
href="https://github.com/guard/guard#readme">github.com/guard/guard#readme</a></p>
|
109
|
+
|
110
|
+
<p>## Uncomment and set this to only include directories you want to watch #
|
111
|
+
directories %w(app lib config test spec features) \ # .select{|d|
|
112
|
+
Dir.exists?(d) ? d : UI.warning(“Directory #{d} does not exist”)}</p>
|
113
|
+
|
114
|
+
<p>## Note: if you are using the `directories` clause above and you are not ##
|
115
|
+
watching the project directory ('.'), then you will want to move ##
|
116
|
+
the <a href="Guardfile.html">Guardfile</a> to a watched dir and symlink it
|
117
|
+
back, e.g. # # $ mkdir config # $ mv <a
|
118
|
+
href="Guardfile.html">Guardfile</a> config/ # $ ln -s config/Guardfile . #
|
119
|
+
# and, you'll have to watch “config/Guardfile” instead of “Guardfile”</p>
|
120
|
+
|
121
|
+
<p>guard :bundler do</p>
|
122
|
+
|
123
|
+
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">'guard/bundler'</span>
|
124
|
+
<span class="ruby-identifier">require</span> <span class="ruby-string">'guard/bundler/verify'</span>
|
125
|
+
<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>
|
126
|
+
|
127
|
+
<span class="ruby-identifier">files</span> = [<span class="ruby-string">'Gemfile'</span>]
|
128
|
+
<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>) }
|
129
|
+
|
130
|
+
<span class="ruby-comment"># Assume files are symlinked from somewhere</span>
|
131
|
+
<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>)) }
|
132
|
+
</pre>
|
133
|
+
|
134
|
+
<p>end</p>
|
135
|
+
|
136
|
+
<p># Note: The cmd option is now required due to the increasing number of ways
|
137
|
+
# rspec may be run, below are examples of the most common uses. # *
|
138
|
+
bundler: 'bundle exec rspec' # * bundler binstubs:
|
139
|
+
'bin/rspec' # * spring: 'bin/rspec' (This will use spring
|
140
|
+
if running and you have # installed the spring
|
141
|
+
binstubs per the docs) # * zeus: 'zeus rspec' (requires the server
|
142
|
+
to be started separately) # * 'just' rspec: 'rspec'</p>
|
143
|
+
|
144
|
+
<p>guard :rspec, cmd: “bundle exec rspec” do</p>
|
145
|
+
|
146
|
+
<pre class="ruby"><span class="ruby-identifier">require</span> <span class="ruby-string">"guard/rspec/dsl"</span>
|
147
|
+
<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>)
|
148
|
+
|
149
|
+
<span class="ruby-comment"># Feel free to open issues for suggestions and improvements</span>
|
150
|
+
|
151
|
+
<span class="ruby-comment"># RSpec files</span>
|
152
|
+
<span class="ruby-identifier">rspec</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">rspec</span>
|
153
|
+
<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> }
|
154
|
+
<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> }
|
155
|
+
<span class="ruby-identifier">watch</span>(<span class="ruby-identifier">rspec</span>.<span class="ruby-identifier">spec_files</span>)
|
156
|
+
|
157
|
+
<span class="ruby-comment"># Ruby files</span>
|
158
|
+
<span class="ruby-identifier">ruby</span> = <span class="ruby-identifier">dsl</span>.<span class="ruby-identifier">ruby</span>
|
159
|
+
<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>)
|
160
|
+
|
161
|
+
<span class="ruby-comment"># Rails files</span>
|
162
|
+
<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>)
|
163
|
+
<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>)
|
164
|
+
<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>)
|
165
|
+
|
166
|
+
<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>
|
167
|
+
[
|
168
|
+
<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>),
|
169
|
+
<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>),
|
170
|
+
<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>)
|
171
|
+
]
|
172
|
+
<span class="ruby-keyword">end</span>
|
173
|
+
|
174
|
+
<span class="ruby-comment"># Rails config changes</span>
|
175
|
+
<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> }
|
176
|
+
<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> }
|
177
|
+
<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> }
|
178
|
+
|
179
|
+
<span class="ruby-comment"># Capybara features specs</span>
|
180
|
+
<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>) }
|
181
|
+
<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>) }
|
182
|
+
|
183
|
+
<span class="ruby-comment"># Turnip features and steps</span>
|
184
|
+
<span class="ruby-identifier">watch</span>(<span class="ruby-regexp">%r{^spec/acceptance/(.+)\.feature$}</span>)
|
185
|
+
<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>
|
186
|
+
<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>
|
187
|
+
<span class="ruby-keyword">end</span>
|
188
|
+
</pre>
|
189
|
+
|
190
|
+
<p>end</p>
|
191
|
+
</main>
|
192
|
+
|
193
|
+
|
194
|
+
|
195
|
+
<footer id="validator-badges" role="contentinfo">
|
196
|
+
<p><a href="http://validator.w3.org/check/referer">Validate</a>
|
197
|
+
<p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1.
|
198
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
199
|
+
</footer>
|
200
|
+
|