<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>alimento.gemspec - RDoc Documentation</title> <script type="text/javascript"> var rdoc_rel_prefix = "./"; </script> <script src="./js/jquery.js"></script> <script src="./js/darkfish.js"></script> <link href="./css/fonts.css" rel="stylesheet"> <link href="./css/rdoc.css" rel="stylesheet"> <body id="top" role="document" class="file"> <nav role="navigation"> <div id="project-navigation"> <div id="home-section" role="region" title="Quick navigation" class="nav-section"> <h2> <a href="./index.html" rel="home">Home</a> </h2> <div id="table-of-contents-navigation"> <a href="./table_of_contents.html#pages">Pages</a> <a href="./table_of_contents.html#classes">Classes</a> <a href="./table_of_contents.html#methods">Methods</a> </div> </div> <div id="search-section" role="search" class="project-section initially-hidden"> <form action="#" method="get" accept-charset="utf-8"> <div id="search-field-wrapper"> <input id="search-field" role="combobox" aria-label="Search" aria-autocomplete="list" aria-controls="search-results" type="text" name="search" placeholder="Search" spellcheck="false" title="Type to search, Up and Down to navigate, Enter to load"> </div> <ul id="search-results" aria-label="Search Results" aria-busy="false" aria-expanded="false" aria-atomic="false" class="initially-hidden"></ul> </form> </div> </div> <div id="project-metadata"> <div id="fileindex-section" class="nav-section"> <h3>Pages</h3> <ul class="link-list"> <li><a href="./CODE_OF_CONDUCT_md.html">CODE_OF_CONDUCT</a> <li><a href="./Gemfile.html">Gemfile</a> <li><a href="./Gemfile_lock.html">Gemfile.lock</a> <li><a href="./Guardfile.html">Guardfile</a> <li><a href="./LICENSE_txt.html">LICENSE</a> <li><a href="./README_md.html">README</a> <li><a href="./Rakefile.html">Rakefile</a> <li><a href="./alimento_gemspec.html">alimento.gemspec</a> <li><a href="./bin/setup.html">setup</a> <li><a href="./docs/Alimento_html.html">Alimento.html</a> <li><a href="./docs/Alimento/Alimento_html.html">Alimento.html</a> <li><a href="./docs/Alimento/GrupoAlimentos_html.html">GrupoAlimentos.html</a> <li><a href="./docs/Alimento/Lista_html.html">Lista.html</a> <li><a href="./docs/Alimento/Nodo_html.html">Nodo.html</a> <li><a href="./docs/_index_html.html">_index.html</a> <li><a href="./docs/class_list_html.html">class_list.html</a> <li><a href="./docs/css/common_css.html">common.css</a> <li><a href="./docs/css/full_list_css.html">full_list.css</a> <li><a href="./docs/css/style_css.html">style.css</a> <li><a href="./docs/file_README_html.html">file.README.html</a> <li><a href="./docs/file_list_html.html">file_list.html</a> <li><a href="./docs/frames_html.html">frames.html</a> <li><a href="./docs/index_html.html">index.html</a> <li><a href="./docs/js/app_js.html">app.js</a> <li><a href="./docs/js/full_list_js.html">full_list.js</a> <li><a href="./docs/js/jquery_js.html">jquery.js</a> <li><a href="./docs/method_list_html.html">method_list.html</a> <li><a href="./docs/top-level-namespace_html.html">top-level-namespace.html</a> </ul> </div> </div> </nav> <main role="main" aria-label="Page alimento.gemspec"> <p>lib = File.expand_path(“../lib”, __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require “alimento/version”</p> <p>Gem::Specification.new do |spec|</p> <pre class="ruby"><span class="ruby-identifier">spec</span>.<span class="ruby-identifier">name</span> = <span class="ruby-string">"alimento"</span> <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> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">authors</span> = [<span class="ruby-string">"David de León"</span>] <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">email</span> = [<span class="ruby-string">"alu0100965667@ull.edu.es"</span>] <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">summary</span> = <span class="ruby-string">%q{Desarrollo de una Clase Alimento}</span> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">description</span> = <span class="ruby-string">%q{Clase Alimento que almacena los nutrientes y calcula en Valor Energético}</span> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">homepage</span> = <span class="ruby-string">"https://github.com/ULL-ESIT-LPP-1718/tdd-alu0100965667"</span> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">license</span> = <span class="ruby-string">"MIT"</span> <span class="ruby-comment"># Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'</span> <span class="ruby-comment"># to allow pushing to a single host or delete this section to allow pushing to any host.</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">respond_to?</span>(:<span class="ruby-identifier">metadata</span>) <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">metadata</span>[<span class="ruby-string">"allowed_push_host"</span>] = <span class="ruby-string">"TODO: Set to 'http://mygemserver.com'"</span> <span class="ruby-keyword">else</span> <span class="ruby-identifier">raise</span> <span class="ruby-string">"RubyGems 2.0 or newer is required to protect against "</span> <span class="ruby-string">"public gem pushes."</span> <span class="ruby-keyword">end</span> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">files</span> = <span class="ruby-value">%x`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-keyword">do</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>) <span class="ruby-keyword">end</span> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">bindir</span> = <span class="ruby-string">"exe"</span> <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>) } <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">require_paths</span> = [<span class="ruby-string">"lib"</span>] <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">"bundler"</span>, <span class="ruby-string">"~> 1.15"</span> <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> <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> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">"guard"</span> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">"guard-rspec"</span> <span class="ruby-identifier">spec</span>.<span class="ruby-identifier">add_development_dependency</span> <span class="ruby-string">"guard-bundler"</span> </pre> <p>end</p> </main> <footer id="validator-badges" role="contentinfo"> <p><a href="http://validator.w3.org/check/referer">Validate</a> <p>Generated by <a href="http://docs.seattlerb.org/rdoc/">RDoc</a> 4.2.1. <p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>. </footer>