alimento-alu0101132907 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/.coveralls.yml +2 -0
- data/.gitignore +11 -0
- data/.rspec +3 -0
- data/.travis.yml +8 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +97 -0
- data/Guardfile +84 -0
- data/README.md +27 -0
- data/Rakefile +6 -0
- data/alimento.gemspec +35 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/docs/Alimento.html +133 -0
- data/docs/Alimento/Comida.html +1129 -0
- data/docs/Alimento/Error.html +124 -0
- data/docs/Dll.html +1762 -0
- data/docs/Dll/Node.html +410 -0
- data/docs/Gemfile.html +100 -0
- data/docs/Gemfile_lock.html +178 -0
- data/docs/Guardfile.html +182 -0
- data/docs/Plato.html +1002 -0
- data/docs/PlatoEfi.html +561 -0
- data/docs/README_md.html +135 -0
- data/docs/Rakefile.html +101 -0
- data/docs/_index.html +183 -0
- data/docs/alimento_gemspec.html +132 -0
- data/docs/bin/setup.html +101 -0
- data/docs/class_list.html +51 -0
- data/docs/created.rid +16 -0
- data/docs/css/common.css +1 -0
- data/docs/css/fonts.css +167 -0
- data/docs/css/full_list.css +58 -0
- data/docs/css/rdoc.css +611 -0
- data/docs/css/style.css +496 -0
- data/docs/file.README.html +102 -0
- data/docs/file_list.html +56 -0
- data/docs/fonts/Lato-Light.ttf +0 -0
- data/docs/fonts/Lato-LightItalic.ttf +0 -0
- data/docs/fonts/Lato-Regular.ttf +0 -0
- data/docs/fonts/Lato-RegularItalic.ttf +0 -0
- data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/docs/frames.html +17 -0
- data/docs/images/add.png +0 -0
- data/docs/images/arrow_up.png +0 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/delete.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_blue.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/transparent.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +102 -0
- data/docs/js/app.js +303 -0
- data/docs/js/darkfish.js +84 -0
- data/docs/js/full_list.js +216 -0
- data/docs/js/jquery.js +4 -0
- data/docs/js/navigation.js +106 -0
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search.js +110 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searcher.js +229 -0
- data/docs/js/searcher.js.gz +0 -0
- data/docs/method_list.html +411 -0
- data/docs/table_of_contents.html +259 -0
- data/docs/top-level-namespace.html +112 -0
- data/lib/alimento.rb +46 -0
- data/lib/alimento/alimento.rb +70 -0
- data/lib/alimento/dll.rb +164 -0
- data/lib/alimento/plato.rb +173 -0
- data/lib/alimento/version.rb +3 -0
- metadata +243 -0
data/docs/README_md.html
ADDED
@@ -0,0 +1,135 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>README - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
<body id="top" role="document" class="file">
|
26
|
+
<nav role="navigation">
|
27
|
+
<div id="project-navigation">
|
28
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
29
|
+
<h2>
|
30
|
+
<a href="./index.html" rel="home">Home</a>
|
31
|
+
</h2>
|
32
|
+
|
33
|
+
<div id="table-of-contents-navigation">
|
34
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
35
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
36
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
41
|
+
<form action="#" method="get" accept-charset="utf-8">
|
42
|
+
<div id="search-field-wrapper">
|
43
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
44
|
+
aria-autocomplete="list" aria-controls="search-results"
|
45
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
46
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<ul id="search-results" aria-label="Search Results"
|
50
|
+
aria-busy="false" aria-expanded="false"
|
51
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
52
|
+
</form>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
<div class="nav-section">
|
59
|
+
<h3>Table of Contents</h3>
|
60
|
+
|
61
|
+
<ul class="link-list" role="directory">
|
62
|
+
<li><a href="#label-Alimento">Alimento</a>
|
63
|
+
<li><a href="#label-Installation">Installation</a>
|
64
|
+
<li><a href="#label-Usage">Usage</a>
|
65
|
+
</ul>
|
66
|
+
</div>
|
67
|
+
|
68
|
+
|
69
|
+
<div id="project-metadata">
|
70
|
+
<div id="fileindex-section" class="nav-section">
|
71
|
+
<h3>Pages</h3>
|
72
|
+
|
73
|
+
<ul class="link-list">
|
74
|
+
|
75
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
76
|
+
|
77
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
78
|
+
|
79
|
+
<li><a href="./Guardfile.html">Guardfile</a>
|
80
|
+
|
81
|
+
<li><a href="./README_md.html">README</a>
|
82
|
+
|
83
|
+
<li><a href="./Rakefile.html">Rakefile</a>
|
84
|
+
|
85
|
+
<li><a href="./alimento_gemspec.html">alimento.gemspec</a>
|
86
|
+
|
87
|
+
<li><a href="./bin/setup.html">setup</a>
|
88
|
+
|
89
|
+
</ul>
|
90
|
+
</div>
|
91
|
+
|
92
|
+
</div>
|
93
|
+
</nav>
|
94
|
+
|
95
|
+
<main role="main" aria-label="Page README.md">
|
96
|
+
|
97
|
+
<h1 id="label-Alimento"><a href="Alimento.html">Alimento</a><span><a href="#label-Alimento">¶</a> <a href="#top">↑</a></span></h1>
|
98
|
+
|
99
|
+
<p>Con esta gema podrás crear alimentos y comrpobar distintas caracteristicas
|
100
|
+
de estos</p>
|
101
|
+
|
102
|
+
<h2 id="label-Installation">Installation<span><a href="#label-Installation">¶</a> <a href="#top">↑</a></span></h2>
|
103
|
+
|
104
|
+
<p>Agrega esta linea a tu gemfile:</p>
|
105
|
+
|
106
|
+
<pre class="ruby"><span class="ruby-identifier">gem</span> <span class="ruby-string">'alimento'</span>
|
107
|
+
</pre>
|
108
|
+
|
109
|
+
<p>Y ejecuta:</p>
|
110
|
+
|
111
|
+
<pre>$ bundle</pre>
|
112
|
+
|
113
|
+
<p>O instálalo tú mismo usando:</p>
|
114
|
+
|
115
|
+
<pre>$ gem install alimento</pre>
|
116
|
+
|
117
|
+
<h2 id="label-Usage">Usage<span><a href="#label-Usage">¶</a> <a href="#top">↑</a></span></h2>
|
118
|
+
|
119
|
+
<p>Para usar la clase comida simplemente hay que llamar al constructor de la
|
120
|
+
siguiente forma: <code>Alimento::Comida.new("Nombre", [array con
|
121
|
+
los valores nutricionales], [array con impacto ambientar]) </code></p>
|
122
|
+
|
123
|
+
<p>Para obtener el valor de un nutriente o de un indicador de impacto
|
124
|
+
ambiental, podemos usar nutriente o impacto respectivamente. Estos nos
|
125
|
+
devolverán un Hash.</p>
|
126
|
+
</main>
|
127
|
+
|
128
|
+
|
129
|
+
|
130
|
+
<footer id="validator-badges" role="contentinfo">
|
131
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
132
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.1.
|
133
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
134
|
+
</footer>
|
135
|
+
|
data/docs/Rakefile.html
ADDED
@@ -0,0 +1,101 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>Rakefile - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "./";
|
11
|
+
var index_rel_prefix = "./";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="./js/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
<body id="top" role="document" class="file">
|
26
|
+
<nav role="navigation">
|
27
|
+
<div id="project-navigation">
|
28
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
29
|
+
<h2>
|
30
|
+
<a href="./index.html" rel="home">Home</a>
|
31
|
+
</h2>
|
32
|
+
|
33
|
+
<div id="table-of-contents-navigation">
|
34
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
35
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
36
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
41
|
+
<form action="#" method="get" accept-charset="utf-8">
|
42
|
+
<div id="search-field-wrapper">
|
43
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
44
|
+
aria-autocomplete="list" aria-controls="search-results"
|
45
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
46
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<ul id="search-results" aria-label="Search Results"
|
50
|
+
aria-busy="false" aria-expanded="false"
|
51
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
52
|
+
</form>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
<div id="project-metadata">
|
60
|
+
<div id="fileindex-section" class="nav-section">
|
61
|
+
<h3>Pages</h3>
|
62
|
+
|
63
|
+
<ul class="link-list">
|
64
|
+
|
65
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
66
|
+
|
67
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
68
|
+
|
69
|
+
<li><a href="./Guardfile.html">Guardfile</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="./alimento_gemspec.html">alimento.gemspec</a>
|
76
|
+
|
77
|
+
<li><a href="./bin/setup.html">setup</a>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
</div>
|
81
|
+
|
82
|
+
</div>
|
83
|
+
</nav>
|
84
|
+
|
85
|
+
<main role="main" aria-label="Page Rakefile">
|
86
|
+
|
87
|
+
<p>require “bundler/gem_tasks” require “rspec/core/rake_task”</p>
|
88
|
+
|
89
|
+
<p>RSpec::Core::RakeTask.new(:spec)</p>
|
90
|
+
|
91
|
+
<p>task :default => :spec</p>
|
92
|
+
</main>
|
93
|
+
|
94
|
+
|
95
|
+
|
96
|
+
<footer id="validator-badges" role="contentinfo">
|
97
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
98
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.1.
|
99
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
100
|
+
</footer>
|
101
|
+
|
data/docs/_index.html
ADDED
@@ -0,0 +1,183 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Documentation by YARD 0.9.20
|
8
|
+
|
9
|
+
</title>
|
10
|
+
|
11
|
+
<link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8">
|
16
|
+
pathId = null;
|
17
|
+
relpath = '';
|
18
|
+
</script>
|
19
|
+
|
20
|
+
|
21
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
24
|
+
|
25
|
+
|
26
|
+
</head>
|
27
|
+
<body>
|
28
|
+
<div class="nav_wrap">
|
29
|
+
<iframe id="nav" src="class_list.html?1"></iframe>
|
30
|
+
<div id="resizer"></div>
|
31
|
+
</div>
|
32
|
+
|
33
|
+
<div id="main" tabindex="-1">
|
34
|
+
<div id="header">
|
35
|
+
<div id="menu">
|
36
|
+
|
37
|
+
</div>
|
38
|
+
|
39
|
+
<div id="search">
|
40
|
+
|
41
|
+
<a class="full_list_link" id="class_list_link"
|
42
|
+
href="class_list.html">
|
43
|
+
|
44
|
+
<svg width="24" height="24">
|
45
|
+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
|
46
|
+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
|
47
|
+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
|
48
|
+
</svg>
|
49
|
+
</a>
|
50
|
+
|
51
|
+
</div>
|
52
|
+
<div class="clear"></div>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
<div id="content"><h1 class="noborder title">Documentation by YARD 0.9.20</h1>
|
56
|
+
<div id="listing">
|
57
|
+
<h1 class="alphaindex">Alphabetic Index</h1>
|
58
|
+
|
59
|
+
<h2>File Listing</h2>
|
60
|
+
<ul id="files" class="index_inline_list">
|
61
|
+
|
62
|
+
|
63
|
+
<li class="r1"><a href="index.html" title="README">README</a></li>
|
64
|
+
|
65
|
+
|
66
|
+
</ul>
|
67
|
+
|
68
|
+
<div class="clear"></div>
|
69
|
+
<h2>Namespace Listing A-Z</h2>
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
<table>
|
75
|
+
<tr>
|
76
|
+
<td valign='top' width="33%">
|
77
|
+
|
78
|
+
|
79
|
+
<ul id="alpha_A" class="alpha">
|
80
|
+
<li class="letter">A</li>
|
81
|
+
<ul>
|
82
|
+
|
83
|
+
<li>
|
84
|
+
<span class='object_link'><a href="Alimento.html" title="Alimento (module)">Alimento</a></span>
|
85
|
+
|
86
|
+
</li>
|
87
|
+
|
88
|
+
</ul>
|
89
|
+
</ul>
|
90
|
+
|
91
|
+
|
92
|
+
<ul id="alpha_C" class="alpha">
|
93
|
+
<li class="letter">C</li>
|
94
|
+
<ul>
|
95
|
+
|
96
|
+
<li>
|
97
|
+
<span class='object_link'><a href="Alimento/Comida.html" title="Alimento::Comida (class)">Comida</a></span>
|
98
|
+
|
99
|
+
<small>(Alimento)</small>
|
100
|
+
|
101
|
+
</li>
|
102
|
+
|
103
|
+
</ul>
|
104
|
+
</ul>
|
105
|
+
|
106
|
+
|
107
|
+
<ul id="alpha_D" class="alpha">
|
108
|
+
<li class="letter">D</li>
|
109
|
+
<ul>
|
110
|
+
|
111
|
+
<li>
|
112
|
+
<span class='object_link'><a href="Dll.html" title="Dll (class)">Dll</a></span>
|
113
|
+
|
114
|
+
</li>
|
115
|
+
|
116
|
+
</ul>
|
117
|
+
</ul>
|
118
|
+
|
119
|
+
|
120
|
+
<ul id="alpha_E" class="alpha">
|
121
|
+
<li class="letter">E</li>
|
122
|
+
<ul>
|
123
|
+
|
124
|
+
<li>
|
125
|
+
<span class='object_link'><a href="Alimento/Error.html" title="Alimento::Error (class)">Error</a></span>
|
126
|
+
|
127
|
+
<small>(Alimento)</small>
|
128
|
+
|
129
|
+
</li>
|
130
|
+
|
131
|
+
</ul>
|
132
|
+
</ul>
|
133
|
+
|
134
|
+
|
135
|
+
<ul id="alpha_N" class="alpha">
|
136
|
+
<li class="letter">N</li>
|
137
|
+
<ul>
|
138
|
+
|
139
|
+
<li>
|
140
|
+
<span class='object_link'><a href="Dll/Node.html" title="Dll::Node (class)">Node</a></span>
|
141
|
+
|
142
|
+
<small>(Dll)</small>
|
143
|
+
|
144
|
+
</li>
|
145
|
+
|
146
|
+
</ul>
|
147
|
+
</ul>
|
148
|
+
|
149
|
+
|
150
|
+
<ul id="alpha_P" class="alpha">
|
151
|
+
<li class="letter">P</li>
|
152
|
+
<ul>
|
153
|
+
|
154
|
+
<li>
|
155
|
+
<span class='object_link'><a href="Plato.html" title="Plato (class)">Plato</a></span>
|
156
|
+
|
157
|
+
</li>
|
158
|
+
|
159
|
+
<li>
|
160
|
+
<span class='object_link'><a href="PlatoEfi.html" title="PlatoEfi (class)">PlatoEfi</a></span>
|
161
|
+
|
162
|
+
</li>
|
163
|
+
|
164
|
+
</ul>
|
165
|
+
</ul>
|
166
|
+
|
167
|
+
</td>
|
168
|
+
</tr>
|
169
|
+
</table>
|
170
|
+
|
171
|
+
</div>
|
172
|
+
|
173
|
+
</div>
|
174
|
+
|
175
|
+
<div id="footer">
|
176
|
+
Generated on Thu Dec 19 15:40:29 2019 by
|
177
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
178
|
+
0.9.20 (ruby-2.5.7).
|
179
|
+
</div>
|
180
|
+
|
181
|
+
</div>
|
182
|
+
</body>
|
183
|
+
</html>
|
@@ -0,0 +1,132 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>alimento.gemspec - 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/navigation.js" defer></script>
|
15
|
+
<script src="./js/search.js" defer></script>
|
16
|
+
<script src="./js/search_index.js" defer></script>
|
17
|
+
<script src="./js/searcher.js" defer></script>
|
18
|
+
<script src="./js/darkfish.js" defer></script>
|
19
|
+
|
20
|
+
<link href="./css/fonts.css" rel="stylesheet">
|
21
|
+
<link href="./css/rdoc.css" rel="stylesheet">
|
22
|
+
|
23
|
+
|
24
|
+
|
25
|
+
<body id="top" role="document" class="file">
|
26
|
+
<nav role="navigation">
|
27
|
+
<div id="project-navigation">
|
28
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
29
|
+
<h2>
|
30
|
+
<a href="./index.html" rel="home">Home</a>
|
31
|
+
</h2>
|
32
|
+
|
33
|
+
<div id="table-of-contents-navigation">
|
34
|
+
<a href="./table_of_contents.html#pages">Pages</a>
|
35
|
+
<a href="./table_of_contents.html#classes">Classes</a>
|
36
|
+
<a href="./table_of_contents.html#methods">Methods</a>
|
37
|
+
</div>
|
38
|
+
</div>
|
39
|
+
|
40
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
41
|
+
<form action="#" method="get" accept-charset="utf-8">
|
42
|
+
<div id="search-field-wrapper">
|
43
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
44
|
+
aria-autocomplete="list" aria-controls="search-results"
|
45
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
46
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
47
|
+
</div>
|
48
|
+
|
49
|
+
<ul id="search-results" aria-label="Search Results"
|
50
|
+
aria-busy="false" aria-expanded="false"
|
51
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
52
|
+
</form>
|
53
|
+
</div>
|
54
|
+
|
55
|
+
</div>
|
56
|
+
|
57
|
+
|
58
|
+
|
59
|
+
<div id="project-metadata">
|
60
|
+
<div id="fileindex-section" class="nav-section">
|
61
|
+
<h3>Pages</h3>
|
62
|
+
|
63
|
+
<ul class="link-list">
|
64
|
+
|
65
|
+
<li><a href="./Gemfile.html">Gemfile</a>
|
66
|
+
|
67
|
+
<li><a href="./Gemfile_lock.html">Gemfile.lock</a>
|
68
|
+
|
69
|
+
<li><a href="./Guardfile.html">Guardfile</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="./alimento_gemspec.html">alimento.gemspec</a>
|
76
|
+
|
77
|
+
<li><a href="./bin/setup.html">setup</a>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
</div>
|
81
|
+
|
82
|
+
</div>
|
83
|
+
</nav>
|
84
|
+
|
85
|
+
<main role="main" aria-label="Page alimento.gemspec">
|
86
|
+
|
87
|
+
<p>lib = File.expand_path(“lib”, __dir__) $LOAD_PATH.unshift(lib) unless
|
88
|
+
$LOAD_PATH.include?(lib) require “alimento/version”</p>
|
89
|
+
|
90
|
+
<p>Gem::Specification.new do |spec|</p>
|
91
|
+
|
92
|
+
<pre class="ruby"><span class="ruby-identifier">spec</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">"alimento"</span>
|
93
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">version</span> = <span class="ruby-constant">Alimento</span><span class="ruby-operator">::</span><span class="ruby-constant">VERSION</span>
|
94
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">authors</span> = [<span class="ruby-string">"Alejandro Perez Moreno"</span>]
|
95
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">email</span> = [<span class="ruby-string">"alu0101132907@ull.edu.es"</span>]
|
96
|
+
|
97
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">summary</span> = <span class="ruby-string">%q{Representa alimentos}</span>
|
98
|
+
|
99
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">metadata</span>[<span class="ruby-string">"allowed_push_host"</span>] = <span class="ruby-string">"http://mygemserver.com"</span>
|
100
|
+
|
101
|
+
<span class="ruby-comment">#spec.metadata["homepage_uri"] = spec.homepage</span>
|
102
|
+
<span class="ruby-comment">#spec.metadata["source_code_uri"] = "http://x.com"</span>
|
103
|
+
<span class="ruby-comment">#spec.metadata["changelog_uri"] = ": Put your gem's CHANGELOG.md URL here."</span>
|
104
|
+
|
105
|
+
<span class="ruby-comment"># Specify which files should be added to the gem when it is released.</span>
|
106
|
+
<span class="ruby-comment"># The `git ls-files -z` loads the files in the RubyGem that have been added into git.</span>
|
107
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">files</span> = <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-string">'..'</span>, <span class="ruby-keyword">__FILE__</span>)) <span class="ruby-keyword">do</span>
|
108
|
+
<span class="ruby-string">`git ls-files -z`</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">"\x0"</span>).<span class="ruby-identifier">reject</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">match</span>(<span class="ruby-regexp">%r{^(test|spec|features)/}</span>) }
|
109
|
+
<span class="ruby-keyword">end</span>
|
110
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">bindir</span> = <span class="ruby-string">"exe"</span>
|
111
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">executables</span> = <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">files</span>.<span class="ruby-identifier">grep</span>(<span class="ruby-regexp">%r{^exe/}</span>) { <span class="ruby-operator">|</span><span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">basename</span>(<span class="ruby-identifier">f</span>) }
|
112
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">require_paths</span> = [<span class="ruby-string">"lib"</span>]
|
113
|
+
|
114
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">"bundler"</span>, <span class="ruby-string">"~> 2.0"</span>
|
115
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">"rake"</span>, <span class="ruby-string">"~> 10.0"</span>
|
116
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">"rspec"</span>, <span class="ruby-string">"~> 3.0"</span>
|
117
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">"guard"</span>
|
118
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">"guard-rspec"</span>
|
119
|
+
<span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">"guard-bundler"</span>
|
120
|
+
</pre>
|
121
|
+
|
122
|
+
<p>end</p>
|
123
|
+
</main>
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
<footer id="validator-badges" role="contentinfo">
|
128
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
129
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.0.1.1.
|
130
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
131
|
+
</footer>
|
132
|
+
|