diff options
Diffstat (limited to 'doc/app/Glsamaker')
-rw-r--r-- | doc/app/Glsamaker/Bugs.html | 279 | ||||
-rw-r--r-- | doc/app/Glsamaker/Bugs/ArchesMixin.html | 310 | ||||
-rw-r--r-- | doc/app/Glsamaker/Bugs/Bug.html | 376 | ||||
-rw-r--r-- | doc/app/Glsamaker/Bugs/BugReadyMixin.html | 317 | ||||
-rw-r--r-- | doc/app/Glsamaker/Bugs/Status.html | 580 | ||||
-rw-r--r-- | doc/app/Glsamaker/Bugs/StatusMixin.html | 320 | ||||
-rw-r--r-- | doc/app/Glsamaker/Diff.html | 338 | ||||
-rw-r--r-- | doc/app/Glsamaker/HTTP.html | 323 | ||||
-rw-r--r-- | doc/app/Glsamaker/Helper.html | 285 | ||||
-rw-r--r-- | doc/app/Glsamaker/Mail.html | 498 | ||||
-rw-r--r-- | doc/app/Glsamaker/Portage.html | 567 | ||||
-rw-r--r-- | doc/app/Glsamaker/Portage/Description.html | 436 | ||||
-rw-r--r-- | doc/app/Glsamaker/XML.html | 323 |
13 files changed, 0 insertions, 4952 deletions
diff --git a/doc/app/Glsamaker/Bugs.html b/doc/app/Glsamaker/Bugs.html deleted file mode 100644 index 08b4f0b..0000000 --- a/doc/app/Glsamaker/Bugs.html +++ /dev/null @@ -1,279 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Module: Glsamaker::Bugs</title> - - <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" /> - - <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="module"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../index.html">Home</a> - <a href="../index.html#classes">Classes</a> - <a href="../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../lib/glsamaker/bugs_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/bugs.rb">lib/glsamaker/bugs.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - - - - - <!-- Namespace Contents --> - <div id="namespace-list-section" class="section"> - <h3 class="section-header">Namespace</h3> - <ul class="link-list"> - - <li><span class="type">MODULE</span> <a href="Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><span class="type">MODULE</span> <a href="Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><span class="type">MODULE</span> <a href="Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><span class="type">CLASS</span> <a href="Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><span class="type">CLASS</span> <a href="Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - </ul> - </div> - - - - - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../Admin.html">Admin</a></li> - - <li><a href="../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../Comment.html">Comment</a></li> - - <li><a href="../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../Authentication.html">Authentication</a></li> - - <li><a href="../Authorization.html">Authorization</a></li> - - <li><a href="../Bug.html">Bug</a></li> - - <li><a href="../BugController.html">BugController</a></li> - - <li><a href="../BugHelper.html">BugHelper</a></li> - - <li><a href="../BugsController.html">BugsController</a></li> - - <li><a href="../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../CommentsController.html">CommentsController</a></li> - - <li><a href="../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../Cpe.html">Cpe</a></li> - - <li><a href="../Cve.html">Cve</a></li> - - <li><a href="../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../CveChange.html">CveChange</a></li> - - <li><a href="../CveComment.html">CveComment</a></li> - - <li><a href="../CveController.html">CveController</a></li> - - <li><a href="../CveHelper.html">CveHelper</a></li> - - <li><a href="../CveReference.html">CveReference</a></li> - - <li><a href="../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../Glsa.html">Glsa</a></li> - - <li><a href="../GlsaController.html">GlsaController</a></li> - - <li><a href="../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../IndexController.html">IndexController</a></li> - - <li><a href="../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../Package.html">Package</a></li> - - <li><a href="../Reference.html">Reference</a></li> - - <li><a href="../Revision.html">Revision</a></li> - - <li><a href="../SearchController.html">SearchController</a></li> - - <li><a href="../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../String.html">String</a></li> - - <li><a href="../Template.html">Template</a></li> - - <li><a href="../ToolsController.html">ToolsController</a></li> - - <li><a href="../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="module">Glsamaker::Bugs</h1> - - <div id="description" class="description"> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/Bugs/ArchesMixin.html b/doc/app/Glsamaker/Bugs/ArchesMixin.html deleted file mode 100644 index d1bc6e8..0000000 --- a/doc/app/Glsamaker/Bugs/ArchesMixin.html +++ /dev/null @@ -1,310 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Module: Glsamaker::Bugs::ArchesMixin</title> - - <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" /> - - <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="module"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../../index.html">Home</a> - <a href="../../index.html#classes">Classes</a> - <a href="../../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../../lib/glsamaker/bugs_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/bugs.rb">lib/glsamaker/bugs.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - - - - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-i-arch_cc">#arch_cc</a></li> - - </ul> - </div> - - - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../../Admin.html">Admin</a></li> - - <li><a href="../../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../../Comment.html">Comment</a></li> - - <li><a href="../../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../../Authentication.html">Authentication</a></li> - - <li><a href="../../Authorization.html">Authorization</a></li> - - <li><a href="../../Bug.html">Bug</a></li> - - <li><a href="../../BugController.html">BugController</a></li> - - <li><a href="../../BugHelper.html">BugHelper</a></li> - - <li><a href="../../BugsController.html">BugsController</a></li> - - <li><a href="../../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../../CommentsController.html">CommentsController</a></li> - - <li><a href="../../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../../Cpe.html">Cpe</a></li> - - <li><a href="../../Cve.html">Cve</a></li> - - <li><a href="../../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../../CveChange.html">CveChange</a></li> - - <li><a href="../../CveComment.html">CveComment</a></li> - - <li><a href="../../CveController.html">CveController</a></li> - - <li><a href="../../CveHelper.html">CveHelper</a></li> - - <li><a href="../../CveReference.html">CveReference</a></li> - - <li><a href="../../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../../Glsa.html">Glsa</a></li> - - <li><a href="../../GlsaController.html">GlsaController</a></li> - - <li><a href="../../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../../IndexController.html">IndexController</a></li> - - <li><a href="../../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../../Package.html">Package</a></li> - - <li><a href="../../Reference.html">Reference</a></li> - - <li><a href="../../Revision.html">Revision</a></li> - - <li><a href="../../SearchController.html">SearchController</a></li> - - <li><a href="../../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../../String.html">String</a></li> - - <li><a href="../../Template.html">Template</a></li> - - <li><a href="../../ToolsController.html">ToolsController</a></li> - - <li><a href="../../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="module">Glsamaker::Bugs::ArchesMixin</h1> - - <div id="description" class="description"> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - <div id="public-instance-method-details" class="method-section section"> - <h3 class="section-header">Public Instance Methods</h3> - - - <div id="arch_cc-method" class="method-detail "> - <a name="method-i-arch_cc"></a> - - - <div class="method-heading"> - <span class="method-name">arch_cc</span><span - class="method-args">()</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns an array of all arch teams in CC</p> - - - - <div class="method-source-code" id="arch_cc-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 35</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">arch_cc</span> - <span class="ruby-ivar">@arch_cc</span> <span class="ruby-operator">||=</span> <span class="ruby-identifier">_arch_cc</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- arch_cc-source --> - - </div> - - - - - </div><!-- arch_cc-method --> - - - </div><!-- public-instance-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/Bugs/Bug.html b/doc/app/Glsamaker/Bugs/Bug.html deleted file mode 100644 index 810cd26..0000000 --- a/doc/app/Glsamaker/Bugs/Bug.html +++ /dev/null @@ -1,376 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Class: Glsamaker::Bugs::Bug</title> - - <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" /> - - <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="class"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../../index.html">Home</a> - <a href="../../index.html#classes">Classes</a> - <a href="../../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../../lib/glsamaker/bugs_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/bugs.rb">lib/glsamaker/bugs.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - <!-- Parent Class --> - <div id="parent-class-section" class="section"> - <h3 class="section-header">Parent</h3> - - <p class="link"><a href="../../Bugzilla/Bug.html">Bugzilla::Bug</a></p> - - </div> - - - - - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-i-cc">#cc</a></li> - - <li><a href="#method-i-whiteboard">#whiteboard</a></li> - - </ul> - </div> - - - - <!-- Included Modules --> - <div id="includes-section" class="section"> - <h3 class="section-header">Included Modules</h3> - <ul class="link-list"> - - - <li><a class="include" href="StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - - - <li><a class="include" href="ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - - - <li><a class="include" href="BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - - </ul> - </div> - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../../Admin.html">Admin</a></li> - - <li><a href="../../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../../Comment.html">Comment</a></li> - - <li><a href="../../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../../Authentication.html">Authentication</a></li> - - <li><a href="../../Authorization.html">Authorization</a></li> - - <li><a href="../../Bug.html">Bug</a></li> - - <li><a href="../../BugController.html">BugController</a></li> - - <li><a href="../../BugHelper.html">BugHelper</a></li> - - <li><a href="../../BugsController.html">BugsController</a></li> - - <li><a href="../../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../../CommentsController.html">CommentsController</a></li> - - <li><a href="../../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../../Cpe.html">Cpe</a></li> - - <li><a href="../../Cve.html">Cve</a></li> - - <li><a href="../../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../../CveChange.html">CveChange</a></li> - - <li><a href="../../CveComment.html">CveComment</a></li> - - <li><a href="../../CveController.html">CveController</a></li> - - <li><a href="../../CveHelper.html">CveHelper</a></li> - - <li><a href="../../CveReference.html">CveReference</a></li> - - <li><a href="../../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../../Glsa.html">Glsa</a></li> - - <li><a href="../../GlsaController.html">GlsaController</a></li> - - <li><a href="../../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../../IndexController.html">IndexController</a></li> - - <li><a href="../../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../../Package.html">Package</a></li> - - <li><a href="../../Reference.html">Reference</a></li> - - <li><a href="../../Revision.html">Revision</a></li> - - <li><a href="../../SearchController.html">SearchController</a></li> - - <li><a href="../../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../../String.html">String</a></li> - - <li><a href="../../Template.html">Template</a></li> - - <li><a href="../../ToolsController.html">ToolsController</a></li> - - <li><a href="../../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="class">Glsamaker::Bugs::Bug</h1> - - <div id="description" class="description"> - -<p>Extends <a href="../../Bugzilla/Bug.html">Bugzilla::Bug</a> with the <a -href="Status.html">Status</a> and Arches functionality</p> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - <div id="public-instance-method-details" class="method-section section"> - <h3 class="section-header">Public Instance Methods</h3> - - - <div id="cc-method" class="method-detail "> - <a name="method-i-cc"></a> - - - <div class="method-heading"> - <span class="method-name">cc</span><span - class="method-args">()</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - - - - - <div class="method-source-code" id="cc-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 82</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">cc</span> - <span class="ruby-ivar">@cc</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- cc-source --> - - </div> - - - - - </div><!-- cc-method --> - - - <div id="whiteboard-method" class="method-detail "> - <a name="method-i-whiteboard"></a> - - - <div class="method-heading"> - <span class="method-name">whiteboard</span><span - class="method-args">()</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - - - - - <div class="method-source-code" id="whiteboard-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 78</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">whiteboard</span> - <span class="ruby-ivar">@status_whiteboard</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- whiteboard-source --> - - </div> - - - - - </div><!-- whiteboard-method --> - - - </div><!-- public-instance-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/Bugs/BugReadyMixin.html b/doc/app/Glsamaker/Bugs/BugReadyMixin.html deleted file mode 100644 index b34c627..0000000 --- a/doc/app/Glsamaker/Bugs/BugReadyMixin.html +++ /dev/null @@ -1,317 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Module: Glsamaker::Bugs::BugReadyMixin</title> - - <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" /> - - <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="module"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../../index.html">Home</a> - <a href="../../index.html#classes">Classes</a> - <a href="../../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../../lib/glsamaker/bugs_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/bugs.rb">lib/glsamaker/bugs.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - - - - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-i-bug_ready-3F">#bug_ready?</a></li> - - </ul> - </div> - - - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../../Admin.html">Admin</a></li> - - <li><a href="../../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../../Comment.html">Comment</a></li> - - <li><a href="../../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../../Authentication.html">Authentication</a></li> - - <li><a href="../../Authorization.html">Authorization</a></li> - - <li><a href="../../Bug.html">Bug</a></li> - - <li><a href="../../BugController.html">BugController</a></li> - - <li><a href="../../BugHelper.html">BugHelper</a></li> - - <li><a href="../../BugsController.html">BugsController</a></li> - - <li><a href="../../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../../CommentsController.html">CommentsController</a></li> - - <li><a href="../../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../../Cpe.html">Cpe</a></li> - - <li><a href="../../Cve.html">Cve</a></li> - - <li><a href="../../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../../CveChange.html">CveChange</a></li> - - <li><a href="../../CveComment.html">CveComment</a></li> - - <li><a href="../../CveController.html">CveController</a></li> - - <li><a href="../../CveHelper.html">CveHelper</a></li> - - <li><a href="../../CveReference.html">CveReference</a></li> - - <li><a href="../../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../../Glsa.html">Glsa</a></li> - - <li><a href="../../GlsaController.html">GlsaController</a></li> - - <li><a href="../../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../../IndexController.html">IndexController</a></li> - - <li><a href="../../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../../Package.html">Package</a></li> - - <li><a href="../../Reference.html">Reference</a></li> - - <li><a href="../../Revision.html">Revision</a></li> - - <li><a href="../../SearchController.html">SearchController</a></li> - - <li><a href="../../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../../String.html">String</a></li> - - <li><a href="../../Template.html">Template</a></li> - - <li><a href="../../ToolsController.html">ToolsController</a></li> - - <li><a href="../../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="module">Glsamaker::Bugs::BugReadyMixin</h1> - - <div id="description" class="description"> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - <div id="public-instance-method-details" class="method-section section"> - <h3 class="section-header">Public Instance Methods</h3> - - - <div id="bug_ready-3F-method" class="method-detail "> - <a name="method-i-bug_ready-3F"></a> - - - <div class="method-heading"> - <span class="method-name">bug_ready?</span><span - class="method-args">()</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Indicates whether this bug has been handled and is in the correct state for -sending a GLSA assigned to it.</p> - - - - <div class="method-source-code" id="bug_ready-3F-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 65</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">bug_ready?</span> - <span class="ruby-identifier">secbug_status</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">s</span><span class="ruby-operator">|</span> - <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-value">:glsa</span> <span class="ruby-keyword">and</span> <span class="ruby-keyword">not</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">pending?</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-keyword">return</span> <span class="ruby-identifier">arch_cc</span> <span class="ruby-operator">==</span> [] -<span class="ruby-keyword">rescue</span> <span class="ruby-constant">Exception</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">e</span> - <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- bug_ready-3F-source --> - - </div> - - - - - </div><!-- bug_ready-3F-method --> - - - </div><!-- public-instance-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/Bugs/Status.html b/doc/app/Glsamaker/Bugs/Status.html deleted file mode 100644 index 6d819fe..0000000 --- a/doc/app/Glsamaker/Bugs/Status.html +++ /dev/null @@ -1,580 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Class: Glsamaker::Bugs::Status</title> - - <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" /> - - <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="class"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../../index.html">Home</a> - <a href="../../index.html#classes">Classes</a> - <a href="../../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../../lib/glsamaker/bugs_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/bugs.rb">lib/glsamaker/bugs.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - <!-- Parent Class --> - <div id="parent-class-section" class="section"> - <h3 class="section-header">Parent</h3> - - <p class="link">Object</p> - - </div> - - - - - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-c-new">::new</a></li> - - <li><a href="#method-i-3C-3D-3E">#<=></a></li> - - <li><a href="#method-i-blocked-3F">#blocked?</a></li> - - <li><a href="#method-i-overdue-3F">#overdue?</a></li> - - <li><a href="#method-i-pending-3F">#pending?</a></li> - - <li><a href="#method-i-to_s">#to_s</a></li> - - </ul> - </div> - - - - <!-- Included Modules --> - <div id="includes-section" class="section"> - <h3 class="section-header">Included Modules</h3> - <ul class="link-list"> - - - <li><span class="include">Comparable</span></li> - - - </ul> - </div> - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../../Admin.html">Admin</a></li> - - <li><a href="../../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../../Comment.html">Comment</a></li> - - <li><a href="../../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../../Authentication.html">Authentication</a></li> - - <li><a href="../../Authorization.html">Authorization</a></li> - - <li><a href="../../Bug.html">Bug</a></li> - - <li><a href="../../BugController.html">BugController</a></li> - - <li><a href="../../BugHelper.html">BugHelper</a></li> - - <li><a href="../../BugsController.html">BugsController</a></li> - - <li><a href="../../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../../CommentsController.html">CommentsController</a></li> - - <li><a href="../../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../../Cpe.html">Cpe</a></li> - - <li><a href="../../Cve.html">Cve</a></li> - - <li><a href="../../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../../CveChange.html">CveChange</a></li> - - <li><a href="../../CveComment.html">CveComment</a></li> - - <li><a href="../../CveController.html">CveController</a></li> - - <li><a href="../../CveHelper.html">CveHelper</a></li> - - <li><a href="../../CveReference.html">CveReference</a></li> - - <li><a href="../../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../../Glsa.html">Glsa</a></li> - - <li><a href="../../GlsaController.html">GlsaController</a></li> - - <li><a href="../../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../../IndexController.html">IndexController</a></li> - - <li><a href="../../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../../Package.html">Package</a></li> - - <li><a href="../../Reference.html">Reference</a></li> - - <li><a href="../../Revision.html">Revision</a></li> - - <li><a href="../../SearchController.html">SearchController</a></li> - - <li><a href="../../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../../String.html">String</a></li> - - <li><a href="../../Template.html">Template</a></li> - - <li><a href="../../ToolsController.html">ToolsController</a></li> - - <li><a href="../../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="class">Glsamaker::Bugs::Status</h1> - - <div id="description" class="description"> - -<p>This baby is a bug status, one of the things you see in squared brackets in -whiteboards.</p> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - <!-- Attributes --> - <div id="attribute-method-details" class="method-section section"> - <h3 class="section-header">Attributes</h3> - - - <div id="status-attribute-method" class="method-detail"> - <a name="status"></a> - - <div class="method-heading attribute-method-heading"> - <span class="method-name">status</span><span - class="attribute-access-type">[R]</span> - </div> - - <div class="method-description"> - - - - </div> - </div> - - </div><!-- attribute-method-details --> - - - <!-- Methods --> - - <div id="public-class-method-details" class="method-section section"> - <h3 class="section-header">Public Class Methods</h3> - - - <div id="new-method" class="method-detail "> - <a name="method-c-new"></a> - - - <div class="method-heading"> - <span class="method-name">new</span><span - class="method-args">(str)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Creates a new <a href="Status.html">Status</a> object by parsing -<tt>str</tt> as a single status string</p> - - - - <div class="method-source-code" id="new-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 98</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">str</span>) - <span class="ruby-keyword">if</span> <span class="ruby-identifier">str</span> <span class="ruby-operator">==</span> <span class="ruby-string">'?'</span> - <span class="ruby-ivar">@status</span> = <span class="ruby-string">'?'</span>.<span class="ruby-identifier">to_sym</span> - <span class="ruby-ivar">@blocked</span> = <span class="ruby-ivar">@overdue</span> = <span class="ruby-ivar">@pending</span> = <span class="ruby-keyword">false</span> - <span class="ruby-keyword">return</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-identifier">cmp</span> = <span class="ruby-identifier">str</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp">/\s+/</span>) - - <span class="ruby-keyword">if</span> <span class="ruby-identifier">cmp</span>.<span class="ruby-identifier">length</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span> - <span class="ruby-ivar">@blocked</span> = (<span class="ruby-identifier">cmp</span>[<span class="ruby-value">1</span>] <span class="ruby-operator">==</span> <span class="ruby-string">"blocked"</span>) - <span class="ruby-keyword">end</span> - - <span class="ruby-keyword">if</span> <span class="ruby-identifier">cmp</span>[<span class="ruby-value">0</span>] <span class="ruby-operator">=~</span> <span class="ruby-regexp">/^(upstream|ebuild|stable|glsa|noglsa)(\+|\?|\+\?|\?\+)?$/</span> - <span class="ruby-ivar">@overdue</span> = (<span class="ruby-node">$2</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">and</span> <span class="ruby-node">$2</span>.<span class="ruby-identifier">include?</span> <span class="ruby-string">"+"</span>) - <span class="ruby-ivar">@pending</span> = (<span class="ruby-node">$2</span> <span class="ruby-operator">!=</span> <span class="ruby-keyword">nil</span> <span class="ruby-keyword">and</span> <span class="ruby-node">$2</span>.<span class="ruby-identifier">include?</span> <span class="ruby-string">"?"</span>) - - <span class="ruby-ivar">@status</span> = <span class="ruby-node">$1</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">to_sym</span> - <span class="ruby-keyword">else</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"Malformed Status string: #{str}"</span> - <span class="ruby-keyword">end</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- new-source --> - - </div> - - - - - </div><!-- new-method --> - - - </div><!-- public-class-method-details --> - - <div id="public-instance-method-details" class="method-section section"> - <h3 class="section-header">Public Instance Methods</h3> - - - <div id="3C-3D-3E-method" class="method-detail "> - <a name="method-i-3C-3D-3E"></a> - - - <div class="method-heading"> - <span class="method-name"><=></span><span - class="method-args">(other)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Comparison</p> - - - - <div class="method-source-code" id="3C-3D-3E-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 142</span> -<span class="ruby-keyword">def</span> <span class="ruby-operator"><=></span>(<span class="ruby-identifier">other</span>) - <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"Cannot compare to #{other.class}"</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Status</span> - - <span class="ruby-identifier">s</span> = [<span class="ruby-string">'?'</span>.<span class="ruby-identifier">to_sym</span>, <span class="ruby-value">:upstream</span>, <span class="ruby-value">:ebuild</span>, <span class="ruby-value">:stable</span>, <span class="ruby-value">:glsa</span>, <span class="ruby-value">:noglsa</span>] - - <span class="ruby-keyword">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">status</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@status</span> - <span class="ruby-keyword">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">pending?</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@pending</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">overdue?</span> <span class="ruby-operator">==</span> <span class="ruby-ivar">@overdue</span> - <span class="ruby-value">0</span> - <span class="ruby-keyword">else</span> - <span class="ruby-keyword">if</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">overdue?</span> <span class="ruby-keyword">and</span> <span class="ruby-keyword">not</span> <span class="ruby-ivar">@overdue</span> - <span class="ruby-value">-1</span> - <span class="ruby-keyword">elsif</span> <span class="ruby-ivar">@overdue</span> <span class="ruby-keyword">and</span> <span class="ruby-keyword">not</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">overdue?</span> - <span class="ruby-value">1</span> - <span class="ruby-keyword">else</span> - <span class="ruby-keyword">if</span> <span class="ruby-ivar">@pending</span> <span class="ruby-keyword">and</span> <span class="ruby-keyword">not</span> <span class="ruby-identifier">other</span>.<span class="ruby-identifier">pending?</span> - <span class="ruby-value">-1</span> - <span class="ruby-keyword">else</span> - <span class="ruby-value">1</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">else</span> - (<span class="ruby-identifier">s</span>.<span class="ruby-identifier">index</span>(<span class="ruby-ivar">@status</span>) <span class="ruby-operator">-</span> <span class="ruby-identifier">s</span>.<span class="ruby-identifier">index</span>(<span class="ruby-identifier">other</span>.<span class="ruby-identifier">status</span>)) <span class="ruby-operator"><</span> <span class="ruby-value">0</span> <span class="ruby-operator">?</span> <span class="ruby-value">-1</span> <span class="ruby-operator">:</span> <span class="ruby-value">1</span> - <span class="ruby-keyword">end</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- 3C-3D-3E-source --> - - </div> - - - - - </div><!-- 3C-3D-3E-method --> - - - <div id="blocked-3F-method" class="method-detail "> - <a name="method-i-blocked-3F"></a> - - - <div class="method-heading"> - <span class="method-name">blocked?</span><span - class="method-args">()</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns <tt>true</tt> if the bug is blocked by another (c.f. -+‘blocked’+ in whiteboards)</p> - - - - <div class="method-source-code" id="blocked-3F-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 122</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">blocked?</span> - <span class="ruby-ivar">@blocked</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- blocked-3F-source --> - - </div> - - - - - </div><!-- blocked-3F-method --> - - - <div id="overdue-3F-method" class="method-detail "> - <a name="method-i-overdue-3F"></a> - - - <div class="method-heading"> - <span class="method-name">overdue?</span><span - class="method-args">()</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns <tt>true</tt> if the bug is overdue (cf. +‘+’+ in whiteboards)</p> - - - - <div class="method-source-code" id="overdue-3F-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 127</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">overdue?</span> - <span class="ruby-ivar">@overdue</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- overdue-3F-source --> - - </div> - - - - - </div><!-- overdue-3F-method --> - - - <div id="pending-3F-method" class="method-detail "> - <a name="method-i-pending-3F"></a> - - - <div class="method-heading"> - <span class="method-name">pending?</span><span - class="method-args">()</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns <tt>true</tt> if the bug is pending action (cf. +‘?’+ in -whiteboards)</p> - - - - <div class="method-source-code" id="pending-3F-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 132</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">pending?</span> - <span class="ruby-ivar">@pending</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- pending-3F-source --> - - </div> - - - - - </div><!-- pending-3F-method --> - - - <div id="to_s-method" class="method-detail "> - <a name="method-i-to_s"></a> - - - <div class="method-heading"> - <span class="method-name">to_s</span><span - class="method-args">()</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns a string representation (like you would find it in the whiteboard)</p> - - - - <div class="method-source-code" id="to_s-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 137</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">to_s</span> - <span class="ruby-ivar">@status</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> (<span class="ruby-ivar">@overdue</span> <span class="ruby-operator">?</span> <span class="ruby-string">"+"</span> <span class="ruby-operator">:</span> <span class="ruby-string">""</span>) <span class="ruby-operator">+</span> (<span class="ruby-ivar">@pending</span> <span class="ruby-operator">?</span> <span class="ruby-string">"?"</span> <span class="ruby-operator">:</span> <span class="ruby-string">""</span>) <span class="ruby-operator">+</span> (<span class="ruby-ivar">@blocked</span> <span class="ruby-operator">?</span> <span class="ruby-string">" blocked"</span> <span class="ruby-operator">:</span> <span class="ruby-string">""</span>) -<span class="ruby-keyword">end</span></pre> - </div><!-- to_s-source --> - - </div> - - - - - </div><!-- to_s-method --> - - - </div><!-- public-instance-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/Bugs/StatusMixin.html b/doc/app/Glsamaker/Bugs/StatusMixin.html deleted file mode 100644 index fabab8c..0000000 --- a/doc/app/Glsamaker/Bugs/StatusMixin.html +++ /dev/null @@ -1,320 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Module: Glsamaker::Bugs::StatusMixin</title> - - <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" /> - - <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="module"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../../index.html">Home</a> - <a href="../../index.html#classes">Classes</a> - <a href="../../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../../lib/glsamaker/bugs_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/bugs.rb">lib/glsamaker/bugs.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - - - - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-i-secbug_status">#secbug_status</a></li> - - </ul> - </div> - - - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../../Admin.html">Admin</a></li> - - <li><a href="../../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../../Comment.html">Comment</a></li> - - <li><a href="../../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../../Authentication.html">Authentication</a></li> - - <li><a href="../../Authorization.html">Authorization</a></li> - - <li><a href="../../Bug.html">Bug</a></li> - - <li><a href="../../BugController.html">BugController</a></li> - - <li><a href="../../BugHelper.html">BugHelper</a></li> - - <li><a href="../../BugsController.html">BugsController</a></li> - - <li><a href="../../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../../CommentsController.html">CommentsController</a></li> - - <li><a href="../../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../../Cpe.html">Cpe</a></li> - - <li><a href="../../Cve.html">Cve</a></li> - - <li><a href="../../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../../CveChange.html">CveChange</a></li> - - <li><a href="../../CveComment.html">CveComment</a></li> - - <li><a href="../../CveController.html">CveController</a></li> - - <li><a href="../../CveHelper.html">CveHelper</a></li> - - <li><a href="../../CveReference.html">CveReference</a></li> - - <li><a href="../../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../../Glsa.html">Glsa</a></li> - - <li><a href="../../GlsaController.html">GlsaController</a></li> - - <li><a href="../../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../../IndexController.html">IndexController</a></li> - - <li><a href="../../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../../Package.html">Package</a></li> - - <li><a href="../../Reference.html">Reference</a></li> - - <li><a href="../../Revision.html">Revision</a></li> - - <li><a href="../../SearchController.html">SearchController</a></li> - - <li><a href="../../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../../String.html">String</a></li> - - <li><a href="../../Template.html">Template</a></li> - - <li><a href="../../ToolsController.html">ToolsController</a></li> - - <li><a href="../../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="module">Glsamaker::Bugs::StatusMixin</h1> - - <div id="description" class="description"> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - <div id="public-instance-method-details" class="method-section section"> - <h3 class="section-header">Public Instance Methods</h3> - - - <div id="secbug_status-method" class="method-detail "> - <a name="method-i-secbug_status"></a> - - - <div class="method-heading"> - <span class="method-name">secbug_status</span><span - class="method-args">()</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - - - - - <div class="method-source-code" id="secbug_status-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/bugs.rb, line 18</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">secbug_status</span> - <span class="ruby-keyword">if</span> <span class="ruby-identifier">whiteboard</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/([A-C~?][0-4?]\??)\s+\[(.*?)\]\s*?(.*?)$/</span> - <span class="ruby-identifier">st</span> = [] - - <span class="ruby-node">$2</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">"/"</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">status</span><span class="ruby-operator">|</span> - <span class="ruby-identifier">st</span> <span class="ruby-operator"><<</span> <span class="ruby-constant">Status</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">status</span>) - <span class="ruby-keyword">end</span> - - <span class="ruby-keyword">return</span> <span class="ruby-identifier">st</span> - <span class="ruby-keyword">else</span> - [<span class="ruby-constant">Status</span>.<span class="ruby-identifier">new</span>(<span class="ruby-string">'?'</span>)] - <span class="ruby-keyword">end</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- secbug_status-source --> - - </div> - - - - - </div><!-- secbug_status-method --> - - - </div><!-- public-instance-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/Diff.html b/doc/app/Glsamaker/Diff.html deleted file mode 100644 index 1e3fd06..0000000 --- a/doc/app/Glsamaker/Diff.html +++ /dev/null @@ -1,338 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Module: Glsamaker::Diff</title> - - <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" /> - - <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="module"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../index.html">Home</a> - <a href="../index.html#classes">Classes</a> - <a href="../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../lib/glsamaker/diff_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/diff.rb">lib/glsamaker/diff.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - - - - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-i-diff">#diff</a></li> - - </ul> - </div> - - - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../Admin.html">Admin</a></li> - - <li><a href="../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../Comment.html">Comment</a></li> - - <li><a href="../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../Authentication.html">Authentication</a></li> - - <li><a href="../Authorization.html">Authorization</a></li> - - <li><a href="../Bug.html">Bug</a></li> - - <li><a href="../BugController.html">BugController</a></li> - - <li><a href="../BugHelper.html">BugHelper</a></li> - - <li><a href="../BugsController.html">BugsController</a></li> - - <li><a href="../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../CommentsController.html">CommentsController</a></li> - - <li><a href="../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../Cpe.html">Cpe</a></li> - - <li><a href="../Cve.html">Cve</a></li> - - <li><a href="../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../CveChange.html">CveChange</a></li> - - <li><a href="../CveComment.html">CveComment</a></li> - - <li><a href="../CveController.html">CveController</a></li> - - <li><a href="../CveHelper.html">CveHelper</a></li> - - <li><a href="../CveReference.html">CveReference</a></li> - - <li><a href="../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../Glsa.html">Glsa</a></li> - - <li><a href="../GlsaController.html">GlsaController</a></li> - - <li><a href="../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../IndexController.html">IndexController</a></li> - - <li><a href="../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../Package.html">Package</a></li> - - <li><a href="../Reference.html">Reference</a></li> - - <li><a href="../Revision.html">Revision</a></li> - - <li><a href="../SearchController.html">SearchController</a></li> - - <li><a href="../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../String.html">String</a></li> - - <li><a href="../Template.html">Template</a></li> - - <li><a href="../ToolsController.html">ToolsController</a></li> - - <li><a href="../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="module">Glsamaker::Diff</h1> - - <div id="description" class="description"> - -<p>Module providing diff support</p> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - <div id="public-instance-method-details" class="method-section section"> - <h3 class="section-header">Public Instance Methods</h3> - - - <div id="diff-method" class="method-detail "> - <a name="method-i-diff"></a> - - - <div class="method-heading"> - <span class="method-name">diff</span><span - class="method-args">(str_old, str_new, format = :unified, context_lines = 3)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns a unified diff for two strings Adapted from the O’Reilly Ruby -Cookbook</p> - - - - <div class="method-source-code" id="diff-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/diff.rb, line 23</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">str_old</span>, <span class="ruby-identifier">str_new</span>, <span class="ruby-identifier">format</span> = <span class="ruby-value">:unified</span>, <span class="ruby-identifier">context_lines</span> = <span class="ruby-value">3</span>) - <span class="ruby-identifier">str_old</span> = <span class="ruby-identifier">str_old</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp">/\r?\n/</span>).<span class="ruby-identifier">map!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-identifier">l</span>.<span class="ruby-identifier">chomp</span> } - <span class="ruby-identifier">str_new</span> = <span class="ruby-identifier">str_new</span>.<span class="ruby-identifier">split</span>(<span class="ruby-regexp">/\r?\n/</span>).<span class="ruby-identifier">map!</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-identifier">l</span>.<span class="ruby-identifier">chomp</span> } - - <span class="ruby-identifier">output</span> = <span class="ruby-string">""</span> - <span class="ruby-identifier">diffs</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Diff</span><span class="ruby-operator">::</span><span class="ruby-constant">LCS</span>.<span class="ruby-identifier">diff</span>(<span class="ruby-identifier">str_old</span>, <span class="ruby-identifier">str_new</span>) - <span class="ruby-keyword">return</span> <span class="ruby-identifier">output</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">diffs</span>.<span class="ruby-identifier">empty?</span> - - <span class="ruby-identifier">oldhunk</span> = <span class="ruby-identifier">hunk</span> = <span class="ruby-keyword">nil</span> - <span class="ruby-identifier">file_length_difference</span> = <span class="ruby-value">0</span> - <span class="ruby-identifier">diffs</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">piece</span><span class="ruby-operator">|</span> - <span class="ruby-keyword">begin</span> - <span class="ruby-identifier">hunk</span> = <span class="ruby-operator">::</span><span class="ruby-constant">Diff</span><span class="ruby-operator">::</span><span class="ruby-constant">LCS</span><span class="ruby-operator">::</span><span class="ruby-constant">Hunk</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">str_old</span>, <span class="ruby-identifier">str_new</span>, <span class="ruby-identifier">piece</span>, <span class="ruby-identifier">context_lines</span>, <span class="ruby-identifier">file_length_difference</span>) - <span class="ruby-keyword">next</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">oldhunk</span> - - <span class="ruby-keyword">if</span> (<span class="ruby-identifier">context_lines</span> <span class="ruby-operator">></span> <span class="ruby-value">0</span>) <span class="ruby-keyword">and</span> <span class="ruby-identifier">hunk</span>.<span class="ruby-identifier">overlaps?</span>(<span class="ruby-identifier">oldhunk</span>) - <span class="ruby-identifier">hunk</span>.<span class="ruby-identifier">unshift</span>(<span class="ruby-identifier">oldhunk</span>) - <span class="ruby-keyword">else</span> - <span class="ruby-identifier">output</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">oldhunk</span>.<span class="ruby-identifier">diff</span>(<span class="ruby-identifier">format</span>) - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">ensure</span> - <span class="ruby-identifier">oldhunk</span> = <span class="ruby-identifier">hunk</span> - <span class="ruby-identifier">output</span> <span class="ruby-operator"><<</span> <span class="ruby-string">"\n"</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-identifier">output</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">oldhunk</span>.<span class="ruby-identifier">diff</span>(<span class="ruby-identifier">format</span>) <span class="ruby-operator"><<</span> <span class="ruby-string">"\n"</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- diff-source --> - - </div> - - - - - </div><!-- diff-method --> - - - </div><!-- public-instance-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/HTTP.html b/doc/app/Glsamaker/HTTP.html deleted file mode 100644 index 6600379..0000000 --- a/doc/app/Glsamaker/HTTP.html +++ /dev/null @@ -1,323 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Module: Glsamaker::HTTP</title> - - <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" /> - - <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="module"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../index.html">Home</a> - <a href="../index.html#classes">Classes</a> - <a href="../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../lib/glsamaker/http_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/http.rb">lib/glsamaker/http.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - - - - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-c-get">::get</a></li> - - </ul> - </div> - - - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../Admin.html">Admin</a></li> - - <li><a href="../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../Comment.html">Comment</a></li> - - <li><a href="../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../Authentication.html">Authentication</a></li> - - <li><a href="../Authorization.html">Authorization</a></li> - - <li><a href="../Bug.html">Bug</a></li> - - <li><a href="../BugController.html">BugController</a></li> - - <li><a href="../BugHelper.html">BugHelper</a></li> - - <li><a href="../BugsController.html">BugsController</a></li> - - <li><a href="../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../CommentsController.html">CommentsController</a></li> - - <li><a href="../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../Cpe.html">Cpe</a></li> - - <li><a href="../Cve.html">Cve</a></li> - - <li><a href="../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../CveChange.html">CveChange</a></li> - - <li><a href="../CveComment.html">CveComment</a></li> - - <li><a href="../CveController.html">CveController</a></li> - - <li><a href="../CveHelper.html">CveHelper</a></li> - - <li><a href="../CveReference.html">CveReference</a></li> - - <li><a href="../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../Glsa.html">Glsa</a></li> - - <li><a href="../GlsaController.html">GlsaController</a></li> - - <li><a href="../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../IndexController.html">IndexController</a></li> - - <li><a href="../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../Package.html">Package</a></li> - - <li><a href="../Reference.html">Reference</a></li> - - <li><a href="../Revision.html">Revision</a></li> - - <li><a href="../SearchController.html">SearchController</a></li> - - <li><a href="../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../String.html">String</a></li> - - <li><a href="../Template.html">Template</a></li> - - <li><a href="../ToolsController.html">ToolsController</a></li> - - <li><a href="../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="module">Glsamaker::HTTP</h1> - - <div id="description" class="description"> - -<p>GLSAMaker <a href="HTTP.html">HTTP</a> utilities</p> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - <div id="public-class-method-details" class="method-section section"> - <h3 class="section-header">Public Class Methods</h3> - - - <div id="get-method" class="method-detail "> - <a name="method-c-get"></a> - - - <div class="method-heading"> - <span class="method-name">get</span><span - class="method-args">(url)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Tries to fetch <tt>url</tt> via <a href="HTTP.html">HTTP</a> GET, sending a -GLSAMaker custom User-Agent header. The body part is returned.</p> - - - - <div class="method-source-code" id="get-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/http.rb, line 21</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">get</span>(<span class="ruby-identifier">url</span>) - <span class="ruby-identifier">uri</span> = <span class="ruby-constant">URI</span>.<span class="ruby-identifier">parse</span>(<span class="ruby-identifier">url</span>) - - <span class="ruby-identifier">http</span> = <span class="ruby-constant">Net</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">uri</span>.<span class="ruby-identifier">host</span>, <span class="ruby-identifier">uri</span>.<span class="ruby-identifier">port</span>) - <span class="ruby-identifier">http</span>.<span class="ruby-identifier">use_ssl</span> = <span class="ruby-keyword">true</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">uri</span>.<span class="ruby-identifier">scheme</span> <span class="ruby-operator">==</span> <span class="ruby-string">"https"</span> - <span class="ruby-identifier">res</span> = <span class="ruby-identifier">http</span>.<span class="ruby-identifier">start</span> { - <span class="ruby-identifier">http</span>.<span class="ruby-identifier">request_get</span>(<span class="ruby-identifier">uri</span>.<span class="ruby-identifier">request_uri</span>, {<span class="ruby-string">'User-Agent'</span> =<span class="ruby-operator">></span> <span class="ruby-node">"GLSAMaker/#{GLSAMAKER_VERSION} (http://security.gentoo.org/)"</span>}) - } - - <span class="ruby-comment"># Raises an exception if HTTP status suggests something went wrong</span> - <span class="ruby-identifier">res</span>.<span class="ruby-identifier">value</span> - <span class="ruby-identifier">res</span>.<span class="ruby-identifier">body</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- get-source --> - - </div> - - - - - </div><!-- get-method --> - - - </div><!-- public-class-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/Helper.html b/doc/app/Glsamaker/Helper.html deleted file mode 100644 index 96d0c97..0000000 --- a/doc/app/Glsamaker/Helper.html +++ /dev/null @@ -1,285 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Class: Glsamaker::Helper</title> - - <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" /> - - <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="class"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../index.html">Home</a> - <a href="../index.html#classes">Classes</a> - <a href="../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../lib/glsamaker/helpers_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/helpers.rb">lib/glsamaker/helpers.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - <!-- Parent Class --> - <div id="parent-class-section" class="section"> - <h3 class="section-header">Parent</h3> - - <p class="link">Object</p> - - </div> - - - - - - - - - - <!-- Included Modules --> - <div id="includes-section" class="section"> - <h3 class="section-header">Included Modules</h3> - <ul class="link-list"> - - - <li><span class="include">Singleton</span></li> - - - - <li><span class="include">::ActionView::Helpers::TextHelper</span></li> - - - </ul> - </div> - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../Admin.html">Admin</a></li> - - <li><a href="../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../Comment.html">Comment</a></li> - - <li><a href="../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../Authentication.html">Authentication</a></li> - - <li><a href="../Authorization.html">Authorization</a></li> - - <li><a href="../Bug.html">Bug</a></li> - - <li><a href="../BugController.html">BugController</a></li> - - <li><a href="../BugHelper.html">BugHelper</a></li> - - <li><a href="../BugsController.html">BugsController</a></li> - - <li><a href="../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../CommentsController.html">CommentsController</a></li> - - <li><a href="../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../Cpe.html">Cpe</a></li> - - <li><a href="../Cve.html">Cve</a></li> - - <li><a href="../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../CveChange.html">CveChange</a></li> - - <li><a href="../CveComment.html">CveComment</a></li> - - <li><a href="../CveController.html">CveController</a></li> - - <li><a href="../CveHelper.html">CveHelper</a></li> - - <li><a href="../CveReference.html">CveReference</a></li> - - <li><a href="../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../Glsa.html">Glsa</a></li> - - <li><a href="../GlsaController.html">GlsaController</a></li> - - <li><a href="../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../IndexController.html">IndexController</a></li> - - <li><a href="../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../Package.html">Package</a></li> - - <li><a href="../Reference.html">Reference</a></li> - - <li><a href="../Revision.html">Revision</a></li> - - <li><a href="../SearchController.html">SearchController</a></li> - - <li><a href="../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../String.html">String</a></li> - - <li><a href="../Template.html">Template</a></li> - - <li><a href="../ToolsController.html">ToolsController</a></li> - - <li><a href="../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="class">Glsamaker::Helper</h1> - - <div id="description" class="description"> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/Mail.html b/doc/app/Glsamaker/Mail.html deleted file mode 100644 index 1bdaf3b..0000000 --- a/doc/app/Glsamaker/Mail.html +++ /dev/null @@ -1,498 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Module: Glsamaker::Mail</title> - - <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" /> - - <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="module"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../index.html">Home</a> - <a href="../index.html#classes">Classes</a> - <a href="../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../lib/glsamaker/mail_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/mail.rb">lib/glsamaker/mail.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - - - - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-i-approval_notification">#approval_notification</a></li> - - <li><a href="#method-i-comment_notification">#comment_notification</a></li> - - <li><a href="#method-i-edit_notification">#edit_notification</a></li> - - <li><a href="#method-i-request_notification">#request_notification</a></li> - - <li><a href="#method-i-send_text">#send_text</a></li> - - </ul> - </div> - - - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../Admin.html">Admin</a></li> - - <li><a href="../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../Comment.html">Comment</a></li> - - <li><a href="../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../Authentication.html">Authentication</a></li> - - <li><a href="../Authorization.html">Authorization</a></li> - - <li><a href="../Bug.html">Bug</a></li> - - <li><a href="../BugController.html">BugController</a></li> - - <li><a href="../BugHelper.html">BugHelper</a></li> - - <li><a href="../BugsController.html">BugsController</a></li> - - <li><a href="../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../CommentsController.html">CommentsController</a></li> - - <li><a href="../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../Cpe.html">Cpe</a></li> - - <li><a href="../Cve.html">Cve</a></li> - - <li><a href="../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../CveChange.html">CveChange</a></li> - - <li><a href="../CveComment.html">CveComment</a></li> - - <li><a href="../CveController.html">CveController</a></li> - - <li><a href="../CveHelper.html">CveHelper</a></li> - - <li><a href="../CveReference.html">CveReference</a></li> - - <li><a href="../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../Glsa.html">Glsa</a></li> - - <li><a href="../GlsaController.html">GlsaController</a></li> - - <li><a href="../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../IndexController.html">IndexController</a></li> - - <li><a href="../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../Package.html">Package</a></li> - - <li><a href="../Reference.html">Reference</a></li> - - <li><a href="../Revision.html">Revision</a></li> - - <li><a href="../SearchController.html">SearchController</a></li> - - <li><a href="../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../String.html">String</a></li> - - <li><a href="../Template.html">Template</a></li> - - <li><a href="../ToolsController.html">ToolsController</a></li> - - <li><a href="../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="module">Glsamaker::Mail</h1> - - <div id="description" class="description"> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - <div id="public-instance-method-details" class="method-section section"> - <h3 class="section-header">Public Instance Methods</h3> - - - <div id="approval_notification-method" class="method-detail "> - <a name="method-i-approval_notification"></a> - - - <div class="method-heading"> - <span class="method-name">approval_notification</span><span - class="method-args">(glsa)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - - - - - <div class="method-source-code" id="approval_notification-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/mail.rb, line 59</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">approval_notification</span>(<span class="ruby-identifier">glsa</span>) - <span class="ruby-keyword">if</span> <span class="ruby-constant">GLSAMAKER_NO_EMAIL</span> - <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span> <span class="ruby-string">"Not sending email."</span> - <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-identifier">rcpt</span> = <span class="ruby-identifier">glsa</span>.<span class="ruby-identifier">submitter</span> - <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">rcpt</span>.<span class="ruby-identifier">can_access?</span> <span class="ruby-identifier">glsa</span> - - <span class="ruby-keyword">unless</span> <span class="ruby-identifier">rcpt</span>.<span class="ruby-identifier">get_pref_category</span>(<span class="ruby-value">:mail</span>)[<span class="ruby-value">:comment</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword">false</span> - <span class="ruby-constant">GlsaMailer</span>.<span class="ruby-identifier">approval</span>(<span class="ruby-identifier">rcpt</span>, <span class="ruby-identifier">glsa</span>).<span class="ruby-identifier">deliver</span> - <span class="ruby-keyword">end</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- approval_notification-source --> - - </div> - - - - - </div><!-- approval_notification-method --> - - - <div id="comment_notification-method" class="method-detail "> - <a name="method-i-comment_notification"></a> - - - <div class="method-heading"> - <span class="method-name">comment_notification</span><span - class="method-args">(glsa, comment, user)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - - - - - <div class="method-source-code" id="comment_notification-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/mail.rb, line 44</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">comment_notification</span>(<span class="ruby-identifier">glsa</span>, <span class="ruby-identifier">comment</span>, <span class="ruby-identifier">user</span>) - <span class="ruby-keyword">if</span> <span class="ruby-constant">GLSAMAKER_NO_EMAIL</span> - <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span> <span class="ruby-string">"Not sending email."</span> - <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-identifier">rcpt</span> = <span class="ruby-identifier">glsa</span>.<span class="ruby-identifier">submitter</span> - <span class="ruby-keyword">return</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">rcpt</span>.<span class="ruby-identifier">can_access?</span> <span class="ruby-identifier">glsa</span> - <span class="ruby-keyword">return</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">rcpt</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">user</span> - - <span class="ruby-keyword">unless</span> <span class="ruby-identifier">rcpt</span>.<span class="ruby-identifier">get_pref_category</span>(<span class="ruby-value">:mail</span>)[<span class="ruby-value">:comment</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword">false</span> - <span class="ruby-constant">GlsaMailer</span>.<span class="ruby-identifier">comment</span>(<span class="ruby-identifier">rcpt</span>, <span class="ruby-identifier">glsa</span>, <span class="ruby-identifier">comment</span>, <span class="ruby-identifier">user</span>).<span class="ruby-identifier">deliver</span> - <span class="ruby-keyword">end</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- comment_notification-source --> - - </div> - - - - - </div><!-- comment_notification-method --> - - - <div id="edit_notification-method" class="method-detail "> - <a name="method-i-edit_notification"></a> - - - <div class="method-heading"> - <span class="method-name">edit_notification</span><span - class="method-args">(glsa, diff, user)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - - - - - <div class="method-source-code" id="edit_notification-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/mail.rb, line 14</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">edit_notification</span>(<span class="ruby-identifier">glsa</span>, <span class="ruby-identifier">diff</span>, <span class="ruby-identifier">user</span>) - <span class="ruby-keyword">if</span> <span class="ruby-constant">GLSAMAKER_NO_EMAIL</span> - <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span> <span class="ruby-string">"Not sending email."</span> - <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-constant">User</span>.<span class="ruby-identifier">find</span>(<span class="ruby-value">:all</span>, <span class="ruby-value">:conditions</span> =<span class="ruby-operator">></span> <span class="ruby-string">'id > 0'</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">rcpt</span><span class="ruby-operator">|</span> - <span class="ruby-keyword">next</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">rcpt</span>.<span class="ruby-identifier">can_access?</span> <span class="ruby-identifier">glsa</span> - - <span class="ruby-keyword">unless</span> <span class="ruby-identifier">rcpt</span>.<span class="ruby-identifier">get_pref_category</span>(<span class="ruby-value">:mail</span>)[<span class="ruby-value">:edit</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword">false</span> - <span class="ruby-constant">GlsaMailer</span>.<span class="ruby-identifier">edit</span>(<span class="ruby-identifier">rcpt</span>, <span class="ruby-identifier">glsa</span>, <span class="ruby-identifier">diff</span>, <span class="ruby-identifier">user</span>).<span class="ruby-identifier">deliver</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- edit_notification-source --> - - </div> - - - - - </div><!-- edit_notification-method --> - - - <div id="request_notification-method" class="method-detail "> - <a name="method-i-request_notification"></a> - - - <div class="method-heading"> - <span class="method-name">request_notification</span><span - class="method-args">(glsa, user)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - - - - - <div class="method-source-code" id="request_notification-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/mail.rb, line 29</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">request_notification</span>(<span class="ruby-identifier">glsa</span>, <span class="ruby-identifier">user</span>) - <span class="ruby-keyword">if</span> <span class="ruby-constant">GLSAMAKER_NO_EMAIL</span> - <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span> <span class="ruby-string">"Not sending email."</span> - <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-constant">User</span>.<span class="ruby-identifier">find</span>(<span class="ruby-value">:all</span>, <span class="ruby-value">:conditions</span> =<span class="ruby-operator">></span> <span class="ruby-string">'id > 0'</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">rcpt</span><span class="ruby-operator">|</span> - <span class="ruby-keyword">next</span> <span class="ruby-keyword">unless</span> <span class="ruby-identifier">rcpt</span>.<span class="ruby-identifier">can_access?</span> <span class="ruby-identifier">glsa</span> - - <span class="ruby-keyword">unless</span> <span class="ruby-identifier">rcpt</span>.<span class="ruby-identifier">get_pref_category</span>(<span class="ruby-value">:mail</span>)[<span class="ruby-value">:request</span>] <span class="ruby-operator">==</span> <span class="ruby-keyword">false</span> - <span class="ruby-constant">GlsaMailer</span>.<span class="ruby-identifier">new_request</span>(<span class="ruby-identifier">rcpt</span>, <span class="ruby-identifier">glsa</span>, <span class="ruby-identifier">user</span>).<span class="ruby-identifier">deliver</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- request_notification-source --> - - </div> - - - - - </div><!-- request_notification-method --> - - - <div id="send_text-method" class="method-detail "> - <a name="method-i-send_text"></a> - - - <div class="method-heading"> - <span class="method-name">send_text</span><span - class="method-args">(text, subject, user, footer = true)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - - - - - <div class="method-source-code" id="send_text-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/mail.rb, line 73</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">send_text</span>(<span class="ruby-identifier">text</span>, <span class="ruby-identifier">subject</span>, <span class="ruby-identifier">user</span>, <span class="ruby-identifier">footer</span> = <span class="ruby-keyword">true</span>) - <span class="ruby-keyword">if</span> <span class="ruby-constant">GLSAMAKER_NO_EMAIL</span> - <span class="ruby-constant">Rails</span>.<span class="ruby-identifier">logger</span>.<span class="ruby-identifier">info</span> <span class="ruby-string">"Not sending email."</span> - <span class="ruby-keyword">return</span> <span class="ruby-keyword">false</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-constant">GlsaMailer</span>.<span class="ruby-identifier">deliver_text</span>(<span class="ruby-identifier">user</span>, <span class="ruby-identifier">subject</span>, <span class="ruby-identifier">text</span>, <span class="ruby-identifier">footer</span>) -<span class="ruby-keyword">end</span></pre> - </div><!-- send_text-source --> - - </div> - - - - - </div><!-- send_text-method --> - - - </div><!-- public-instance-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/Portage.html b/doc/app/Glsamaker/Portage.html deleted file mode 100644 index 1a3f76a..0000000 --- a/doc/app/Glsamaker/Portage.html +++ /dev/null @@ -1,567 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Module: Glsamaker::Portage</title> - - <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" /> - - <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="module"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../index.html">Home</a> - <a href="../index.html#classes">Classes</a> - <a href="../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../lib/glsamaker/portage_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/portage.rb">lib/glsamaker/portage.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - - - - - <!-- Namespace Contents --> - <div id="namespace-list-section" class="section"> - <h3 class="section-header">Namespace</h3> - <ul class="link-list"> - - <li><span class="type">CLASS</span> <a href="Portage/Description.html">Glsamaker::Portage::Description</a></li> - - </ul> - </div> - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-i-find_packages">#find_packages</a></li> - - <li><a href="#method-i-get_description">#get_description</a></li> - - <li><a href="#method-i-get_maintainers">#get_maintainers</a></li> - - <li><a href="#method-i-get_metadata">#get_metadata</a></li> - - <li><a href="#method-i-portdir">#portdir</a></li> - - <li><a href="#method-i-valid_atom-3F">#valid_atom?</a></li> - - </ul> - </div> - - - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../Admin.html">Admin</a></li> - - <li><a href="../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../Comment.html">Comment</a></li> - - <li><a href="../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../Authentication.html">Authentication</a></li> - - <li><a href="../Authorization.html">Authorization</a></li> - - <li><a href="../Bug.html">Bug</a></li> - - <li><a href="../BugController.html">BugController</a></li> - - <li><a href="../BugHelper.html">BugHelper</a></li> - - <li><a href="../BugsController.html">BugsController</a></li> - - <li><a href="../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../CommentsController.html">CommentsController</a></li> - - <li><a href="../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../Cpe.html">Cpe</a></li> - - <li><a href="../Cve.html">Cve</a></li> - - <li><a href="../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../CveChange.html">CveChange</a></li> - - <li><a href="../CveComment.html">CveComment</a></li> - - <li><a href="../CveController.html">CveController</a></li> - - <li><a href="../CveHelper.html">CveHelper</a></li> - - <li><a href="../CveReference.html">CveReference</a></li> - - <li><a href="../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../Glsa.html">Glsa</a></li> - - <li><a href="../GlsaController.html">GlsaController</a></li> - - <li><a href="../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../IndexController.html">IndexController</a></li> - - <li><a href="../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../Package.html">Package</a></li> - - <li><a href="../Reference.html">Reference</a></li> - - <li><a href="../Revision.html">Revision</a></li> - - <li><a href="../SearchController.html">SearchController</a></li> - - <li><a href="../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../String.html">String</a></li> - - <li><a href="../Template.html">Template</a></li> - - <li><a href="../ToolsController.html">ToolsController</a></li> - - <li><a href="../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="module">Glsamaker::Portage</h1> - - <div id="description" class="description"> - -<p><a href="Helper.html">Helper</a> functions for <a -href="Portage.html">Portage</a> tree interaction</p> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - <div id="public-instance-method-details" class="method-section section"> - <h3 class="section-header">Public Instance Methods</h3> - - - <div id="find_packages-method" class="method-detail "> - <a name="method-i-find_packages"></a> - - - <div class="method-heading"> - <span class="method-name">find_packages</span><span - class="method-args">(re)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns package atoms that match <tt>re</tt></p> - - - - <div class="method-source-code" id="find_packages-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/portage.rb, line 78</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">find_packages</span>(<span class="ruby-identifier">re</span>) - <span class="ruby-identifier">results</span> = [] - - <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">portdir</span>) <span class="ruby-keyword">do</span> - <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-string">'*-*'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">cat</span><span class="ruby-operator">|</span> - <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">cat</span>) <span class="ruby-keyword">do</span> - <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-string">"*"</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">pkg</span><span class="ruby-operator">|</span> - <span class="ruby-identifier">pkg</span> <span class="ruby-operator">=~</span> <span class="ruby-identifier">re</span> <span class="ruby-keyword">and</span> <span class="ruby-identifier">results</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{cat}/#{pkg}"</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-identifier">results</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- find_packages-source --> - - </div> - - - - - </div><!-- find_packages-method --> - - - <div id="get_description-method" class="method-detail "> - <a name="method-i-get_description"></a> - - - <div class="method-heading"> - <span class="method-name">get_description</span><span - class="method-args">(atom)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Gets a description</p> - - - - <div class="method-source-code" id="get_description-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/portage.rb, line 69</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_description</span>(<span class="ruby-identifier">atom</span>) - <span class="ruby-constant">Description</span>.<span class="ruby-identifier">eix</span>(<span class="ruby-identifier">atom</span>) <span class="ruby-operator">||</span> - <span class="ruby-constant">Description</span>.<span class="ruby-identifier">ebuild</span>(<span class="ruby-identifier">atom</span>) <span class="ruby-operator">||</span> - <span class="ruby-constant">Description</span>.<span class="ruby-identifier">pgo</span>(<span class="ruby-identifier">atom</span>) <span class="ruby-operator">||</span> - <span class="ruby-constant">Description</span>.<span class="ruby-identifier">google</span>(<span class="ruby-identifier">atom</span>) <span class="ruby-operator">||</span> - <span class="ruby-string">"[could not get a description]"</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- get_description-source --> - - </div> - - - - - </div><!-- get_description-method --> - - - <div id="get_maintainers-method" class="method-detail "> - <a name="method-i-get_maintainers"></a> - - - <div class="method-heading"> - <span class="method-name">get_maintainers</span><span - class="method-args">(atom)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns an array of maintainer email addresses for the package -<tt>atom</tt></p> - - - - <div class="method-source-code" id="get_maintainers-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/portage.rb, line 95</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_maintainers</span>(<span class="ruby-identifier">atom</span>) - <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Invalid package atom"</span>) <span class="ruby-keyword">unless</span> <span class="ruby-constant">Portage</span>.<span class="ruby-identifier">valid_atom?</span>(<span class="ruby-identifier">atom</span>) - <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Cannot find metadata"</span>) <span class="ruby-keyword">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exist?</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">portdir</span>, <span class="ruby-identifier">atom</span>, <span class="ruby-string">'metadata.xml'</span>) - - <span class="ruby-identifier">x</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">portdir</span>, <span class="ruby-identifier">atom</span>, <span class="ruby-string">'metadata.xml'</span>))) - - <span class="ruby-identifier">herds</span> = [] - <span class="ruby-identifier">maintainers</span> = [] - - <span class="ruby-identifier">x</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">'/pkgmetadata/herd'</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-identifier">herds</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">h</span>.<span class="ruby-identifier">content</span> } - <span class="ruby-identifier">x</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">'/pkgmetadata/maintainer/email'</span>).<span class="ruby-identifier">each</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">m</span><span class="ruby-operator">|</span> <span class="ruby-identifier">maintainers</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">m</span>.<span class="ruby-identifier">content</span> } - - <span class="ruby-keyword">unless</span> <span class="ruby-identifier">herds</span>.<span class="ruby-identifier">first</span> <span class="ruby-operator">==</span> <span class="ruby-string">"no-herd"</span> - <span class="ruby-identifier">herds_xml</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">read</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">portdir</span>, <span class="ruby-string">'metadata'</span>, <span class="ruby-string">'herds.xml'</span>))) - <span class="ruby-identifier">herds_email</span> = <span class="ruby-identifier">herds</span>.<span class="ruby-identifier">map</span> {<span class="ruby-operator">|</span><span class="ruby-identifier">h</span><span class="ruby-operator">|</span> <span class="ruby-identifier">herds_xml</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-node">"/herds/herd/name[text()='#{h}']"</span>).<span class="ruby-identifier">first</span>.<span class="ruby-identifier">parent</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">"./email"</span>).<span class="ruby-identifier">first</span>.<span class="ruby-identifier">content</span> } - - (<span class="ruby-identifier">maintainers</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">herds_email</span>).<span class="ruby-identifier">uniq</span> - <span class="ruby-keyword">else</span> - <span class="ruby-identifier">maintainers</span> - <span class="ruby-keyword">end</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- get_maintainers-source --> - - </div> - - - - - </div><!-- get_maintainers-method --> - - - <div id="get_metadata-method" class="method-detail "> - <a name="method-i-get_metadata"></a> - - - <div class="method-heading"> - <span class="method-name">get_metadata</span><span - class="method-args">(atom, version = :latest, what = [])</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns information from the portage metadata cache Values: :depend, -:rdepend, :slot, :src_uri, :restrict, :homepage, :license, :description, -:keywords, :inherited, :iuse, :required_use, :pdepend, :provide, :eapi, -:properties, :defined_phases as per portage/pym/portage/cache/metadata.py -(database.auxdbkey_order)</p> - - - - <div class="method-source-code" id="get_metadata-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/portage.rb, line 122</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">get_metadata</span>(<span class="ruby-identifier">atom</span>, <span class="ruby-identifier">version</span> = <span class="ruby-value">:latest</span>, <span class="ruby-identifier">what</span> = []) - <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Invalid package atom"</span>) <span class="ruby-keyword">unless</span> <span class="ruby-constant">Portage</span>.<span class="ruby-identifier">valid_atom?</span>(<span class="ruby-identifier">atom</span>) - <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Invalid version string"</span>) <span class="ruby-keyword">if</span> <span class="ruby-identifier">version</span>.<span class="ruby-identifier">to_s</span>.<span class="ruby-identifier">include?</span> <span class="ruby-string">'..'</span> - <span class="ruby-keyword">return</span> {} <span class="ruby-keyword">if</span> <span class="ruby-identifier">what</span> <span class="ruby-operator">==</span> [] - - <span class="ruby-identifier">lines</span> = [<span class="ruby-keyword">nil</span>, <span class="ruby-value">:depend</span>, <span class="ruby-value">:rdepend</span>, <span class="ruby-value">:slot</span>, <span class="ruby-value">:src_uri</span>, <span class="ruby-value">:restrict</span>, <span class="ruby-value">:homepage</span>, - <span class="ruby-value">:license</span>, <span class="ruby-value">:description</span>, <span class="ruby-value">:keywords</span>, <span class="ruby-value">:inherited</span>, <span class="ruby-value">:iuse</span>, <span class="ruby-value">:required_use</span>, - <span class="ruby-value">:pdepend</span>, <span class="ruby-value">:provide</span>, <span class="ruby-value">:eapi</span>, <span class="ruby-value">:properties</span>, <span class="ruby-value">:defined_phases</span>] - <span class="ruby-identifier">cat</span>, <span class="ruby-identifier">pkg</span> = <span class="ruby-identifier">atom</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">'/'</span>, <span class="ruby-value">2</span>) - <span class="ruby-identifier">result</span> = {} - - <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">Glsamaker</span><span class="ruby-operator">::</span><span class="ruby-constant">Portage</span>.<span class="ruby-identifier">portdir</span>, <span class="ruby-string">'metadata'</span>, <span class="ruby-string">'cache'</span>, <span class="ruby-identifier">cat</span>)) <span class="ruby-keyword">do</span> - <span class="ruby-keyword">if</span> <span class="ruby-identifier">version</span> <span class="ruby-operator">==</span> <span class="ruby-value">:latest</span> - <span class="ruby-identifier">f</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-node">"#{pkg}-[0-9]*"</span>).<span class="ruby-identifier">last</span>, <span class="ruby-string">'r'</span>) - <span class="ruby-keyword">else</span> - <span class="ruby-identifier">f</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">open</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-node">"#{pkg}-#{version}"</span>), <span class="ruby-string">'r'</span>) - <span class="ruby-keyword">end</span> - - <span class="ruby-keyword">while</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">gets</span> - <span class="ruby-keyword">if</span> <span class="ruby-identifier">what</span>.<span class="ruby-identifier">include?</span>(<span class="ruby-identifier">lines</span>[<span class="ruby-identifier">$.</span>]) - <span class="ruby-identifier">result</span>[<span class="ruby-identifier">lines</span>[<span class="ruby-identifier">$.</span>]] = <span class="ruby-identifier">$_</span>.<span class="ruby-identifier">chomp</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-identifier">f</span>.<span class="ruby-identifier">close</span> - <span class="ruby-keyword">end</span> - <span class="ruby-identifier">result</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- get_metadata-source --> - - </div> - - - - - </div><!-- get_metadata-method --> - - - <div id="portdir-method" class="method-detail "> - <a name="method-i-portdir"></a> - - - <div class="method-heading"> - <span class="method-name">portdir</span><span - class="method-args">()</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns the location of the portage dir, or raises an exception if it -cannot be found</p> - - - - <div class="method-source-code" id="portdir-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/portage.rb, line 55</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">portdir</span> - <span class="ruby-keyword">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span> <span class="ruby-constant">GLSAMAKER_PORTDIR</span> - <span class="ruby-identifier">raise</span> <span class="ruby-string">"GLSAMAKER_PORTDIR is not a directory"</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-constant">GLSAMAKER_PORTDIR</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- portdir-source --> - - </div> - - - - - </div><!-- portdir-method --> - - - <div id="valid_atom-3F-method" class="method-detail "> - <a name="method-i-valid_atom-3F"></a> - - - <div class="method-heading"> - <span class="method-name">valid_atom?</span><span - class="method-args">(atom)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Validates the atom <tt>atom</tt></p> - - - - <div class="method-source-code" id="valid_atom-3F-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/portage.rb, line 64</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">valid_atom?</span>(<span class="ruby-identifier">atom</span>) - <span class="ruby-identifier">atom</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp">/[a-zA-Z0-9_-]\/[a-zA-Z0-9_-]/</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- valid_atom-3F-source --> - - </div> - - - - - </div><!-- valid_atom-3F-method --> - - - </div><!-- public-instance-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/Portage/Description.html b/doc/app/Glsamaker/Portage/Description.html deleted file mode 100644 index 50ec53a..0000000 --- a/doc/app/Glsamaker/Portage/Description.html +++ /dev/null @@ -1,436 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Class: Glsamaker::Portage::Description</title> - - <link rel="stylesheet" href="../../rdoc.css" type="text/css" media="screen" /> - - <script src="../../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="class"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../../index.html">Home</a> - <a href="../../index.html#classes">Classes</a> - <a href="../../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../../lib/glsamaker/portage_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/portage.rb">lib/glsamaker/portage.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - <!-- Parent Class --> - <div id="parent-class-section" class="section"> - <h3 class="section-header">Parent</h3> - - <p class="link">Object</p> - - </div> - - - - - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-c-ebuild">::ebuild</a></li> - - <li><a href="#method-c-eix">::eix</a></li> - - <li><a href="#method-c-google">::google</a></li> - - <li><a href="#method-c-pgo">::pgo</a></li> - - </ul> - </div> - - - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../../Admin.html">Admin</a></li> - - <li><a href="../../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../../Comment.html">Comment</a></li> - - <li><a href="../../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../../Authentication.html">Authentication</a></li> - - <li><a href="../../Authorization.html">Authorization</a></li> - - <li><a href="../../Bug.html">Bug</a></li> - - <li><a href="../../BugController.html">BugController</a></li> - - <li><a href="../../BugHelper.html">BugHelper</a></li> - - <li><a href="../../BugsController.html">BugsController</a></li> - - <li><a href="../../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../../CommentsController.html">CommentsController</a></li> - - <li><a href="../../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../../Cpe.html">Cpe</a></li> - - <li><a href="../../Cve.html">Cve</a></li> - - <li><a href="../../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../../CveChange.html">CveChange</a></li> - - <li><a href="../../CveComment.html">CveComment</a></li> - - <li><a href="../../CveController.html">CveController</a></li> - - <li><a href="../../CveHelper.html">CveHelper</a></li> - - <li><a href="../../CveReference.html">CveReference</a></li> - - <li><a href="../../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../../Glsa.html">Glsa</a></li> - - <li><a href="../../GlsaController.html">GlsaController</a></li> - - <li><a href="../../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../../IndexController.html">IndexController</a></li> - - <li><a href="../../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../../Package.html">Package</a></li> - - <li><a href="../../Reference.html">Reference</a></li> - - <li><a href="../../Revision.html">Revision</a></li> - - <li><a href="../../SearchController.html">SearchController</a></li> - - <li><a href="../../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../../String.html">String</a></li> - - <li><a href="../../Template.html">Template</a></li> - - <li><a href="../../ToolsController.html">ToolsController</a></li> - - <li><a href="../../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="class">Glsamaker::Portage::Description</h1> - - <div id="description" class="description"> - -<p><a href="../../Package.html">Package</a> description helper</p> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - <div id="public-class-method-details" class="method-section section"> - <h3 class="section-header">Public Class Methods</h3> - - - <div id="ebuild-method" class="method-detail "> - <a name="method-c-ebuild"></a> - - - <div class="method-heading"> - <span class="method-name">ebuild</span><span - class="method-args">(atom)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Tries to fetch the description for the package <tt>atom</tt> from an -ebuild’s entry (works if running on Gentoo)</p> - - - - <div class="method-source-code" id="ebuild-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/portage.rb, line 23</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">ebuild</span>(<span class="ruby-identifier">atom</span>) - <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Invalid package atom"</span>) <span class="ruby-keyword">unless</span> <span class="ruby-constant">Portage</span>.<span class="ruby-identifier">valid_atom?</span>(<span class="ruby-identifier">atom</span>) - <span class="ruby-keyword">nil</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- ebuild-source --> - - </div> - - - - - </div><!-- ebuild-method --> - - - <div id="eix-method" class="method-detail "> - <a name="method-c-eix"></a> - - - <div class="method-heading"> - <span class="method-name">eix</span><span - class="method-args">(atom)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - - - - - <div class="method-source-code" id="eix-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/portage.rb, line 28</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">eix</span>(<span class="ruby-identifier">atom</span>) - <span class="ruby-keyword">nil</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- eix-source --> - - </div> - - - - - </div><!-- eix-method --> - - - <div id="google-method" class="method-detail "> - <a name="method-c-google"></a> - - - <div class="method-heading"> - <span class="method-name">google</span><span - class="method-args">(atom)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Loads a description for <tt>atom</tt> from Google</p> - - - - <div class="method-source-code" id="google-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/portage.rb, line 47</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">google</span>(<span class="ruby-identifier">atom</span>) - <span class="ruby-keyword">nil</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- google-source --> - - </div> - - - - - </div><!-- google-method --> - - - <div id="pgo-method" class="method-detail "> - <a name="method-c-pgo"></a> - - - <div class="method-heading"> - <span class="method-name">pgo</span><span - class="method-args">(atom)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Loads a description for <tt>atom</tt> from packages.gentoo.org</p> - - - - <div class="method-source-code" id="pgo-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/portage.rb, line 33</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">pgo</span>(<span class="ruby-identifier">atom</span>) - <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Invalid package atom"</span>) <span class="ruby-keyword">unless</span> <span class="ruby-constant">Portage</span>.<span class="ruby-identifier">valid_atom?</span>(<span class="ruby-identifier">atom</span>) - - <span class="ruby-identifier">n</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span>(<span class="ruby-constant">Glsamaker</span><span class="ruby-operator">::</span><span class="ruby-constant">HTTP</span>.<span class="ruby-identifier">get</span>(<span class="ruby-node">"http://packages.gentoo.org/package/#{atom}"</span>)) - - <span class="ruby-identifier">node</span> = <span class="ruby-identifier">n</span>.<span class="ruby-identifier">css</span>(<span class="ruby-string">'p.description'</span>).<span class="ruby-identifier">first</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">first</span> - <span class="ruby-keyword">if</span> <span class="ruby-identifier">node</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">XML</span><span class="ruby-operator">::</span><span class="ruby-constant">Node</span><span class="ruby-operator">::</span><span class="ruby-constant">TEXT_NODE</span> - <span class="ruby-identifier">node</span>.<span class="ruby-identifier">to_s</span> - <span class="ruby-keyword">else</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"XML parse error"</span> - <span class="ruby-keyword">end</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- pgo-source --> - - </div> - - - - - </div><!-- pgo-method --> - - - </div><!-- public-class-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - diff --git a/doc/app/Glsamaker/XML.html b/doc/app/Glsamaker/XML.html deleted file mode 100644 index 66e4f6b..0000000 --- a/doc/app/Glsamaker/XML.html +++ /dev/null @@ -1,323 +0,0 @@ -<?xml version="1.0" encoding="utf-8"?> -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" - "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> -<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> -<head> - <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> - - <title>Module: Glsamaker::XML</title> - - <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" /> - - <script src="../js/jquery.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/quicksearch.js" type="text/javascript" charset="utf-8"></script> - <script src="../js/darkfish.js" type="text/javascript" charset="utf-8"></script> - -</head> -<body id="top" class="module"> - - <div id="metadata"> - <div id="home-metadata"> - <div id="home-section" class="section"> - <h3 class="section-header"> - <a href="../index.html">Home</a> - <a href="../index.html#classes">Classes</a> - <a href="../index.html#methods">Methods</a> - </h3> - </div> - </div> - - <div id="file-metadata"> - <div id="file-list-section" class="section"> - <h3 class="section-header">In Files</h3> - <div class="section-body"> - <ul> - - <li><a href="../lib/glsamaker/xml_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/glsamaker/xml.rb">lib/glsamaker/xml.rb</a></li> - - </ul> - </div> - </div> - - - </div> - - <div id="class-metadata"> - - - - - - - - <!-- Method Quickref --> - <div id="method-list-section" class="section"> - <h3 class="section-header">Methods</h3> - <ul class="link-list"> - - <li><a href="#method-i-indent">#indent</a></li> - - </ul> - </div> - - - - </div> - - <div id="project-metadata"> - - - <div id="fileindex-section" class="section project-section"> - <h3 class="section-header">Files</h3> - <ul> - - <li class="file"><a href="../doc/README_FOR_APP.html">README_FOR_APP</a></li> - - </ul> - </div> - - - <div id="classindex-section" class="section project-section"> - <h3 class="section-header">Class/Module Index - <span class="search-toggle"><img src="../images/find.png" - height="16" width="16" alt="[+]" - title="show/hide quicksearch" /></span></h3> - <form action="#" method="get" accept-charset="utf-8" class="initially-hidden"> - <fieldset> - <legend>Quicksearch</legend> - <input type="text" name="quicksearch" value="" - class="quicksearch-field" /> - </fieldset> - </form> - - <ul class="link-list"> - - <li><a href="../Glsamaker.html">Glsamaker</a></li> - - <li><a href="../Glsamaker/Bugs.html">Glsamaker::Bugs</a></li> - - <li><a href="../Glsamaker/Bugs/ArchesMixin.html">Glsamaker::Bugs::ArchesMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Bug.html">Glsamaker::Bugs::Bug</a></li> - - <li><a href="../Glsamaker/Bugs/BugReadyMixin.html">Glsamaker::Bugs::BugReadyMixin</a></li> - - <li><a href="../Glsamaker/Bugs/Status.html">Glsamaker::Bugs::Status</a></li> - - <li><a href="../Glsamaker/Bugs/StatusMixin.html">Glsamaker::Bugs::StatusMixin</a></li> - - <li><a href="../Glsamaker/Diff.html">Glsamaker::Diff</a></li> - - <li><a href="../Glsamaker/HTTP.html">Glsamaker::HTTP</a></li> - - <li><a href="../Glsamaker/Helper.html">Glsamaker::Helper</a></li> - - <li><a href="../Glsamaker/Mail.html">Glsamaker::Mail</a></li> - - <li><a href="../Glsamaker/Portage.html">Glsamaker::Portage</a></li> - - <li><a href="../Glsamaker/Portage/Description.html">Glsamaker::Portage::Description</a></li> - - <li><a href="../Glsamaker/XML.html">Glsamaker::XML</a></li> - - <li><a href="../Admin.html">Admin</a></li> - - <li><a href="../Admin/IndexController.html">Admin::IndexController</a></li> - - <li><a href="../Admin/IndexHelper.html">Admin::IndexHelper</a></li> - - <li><a href="../Admin/TemplatesController.html">Admin::TemplatesController</a></li> - - <li><a href="../Admin/TemplatesHelper.html">Admin::TemplatesHelper</a></li> - - <li><a href="../Admin/UsersController.html">Admin::UsersController</a></li> - - <li><a href="../Admin/UsersHelper.html">Admin::UsersHelper</a></li> - - <li><a href="../Bugzilla.html">Bugzilla</a></li> - - <li><a href="../Bugzilla/Bug.html">Bugzilla::Bug</a></li> - - <li><a href="../Bugzilla/Bugzilla.html">Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla.html">Bugzilla::Bugzilla::Bugzilla</a></li> - - <li><a href="../Bugzilla/Bugzilla/Bugzilla/Change.html">Bugzilla::Bugzilla::Bugzilla::Change</a></li> - - <li><a href="../Bugzilla/Comment.html">Bugzilla::Comment</a></li> - - <li><a href="../Bugzilla/History.html">Bugzilla::History</a></li> - - <li><a href="../Comment.html">Comment</a></li> - - <li><a href="../Comment/CommentValidator.html">Comment::CommentValidator</a></li> - - <li><a href="../ApplicationController.html">ApplicationController</a></li> - - <li><a href="../ApplicationHelper.html">ApplicationHelper</a></li> - - <li><a href="../Authentication.html">Authentication</a></li> - - <li><a href="../Authorization.html">Authorization</a></li> - - <li><a href="../Bug.html">Bug</a></li> - - <li><a href="../BugController.html">BugController</a></li> - - <li><a href="../BugHelper.html">BugHelper</a></li> - - <li><a href="../BugsController.html">BugsController</a></li> - - <li><a href="../BugsHelper.html">BugsHelper</a></li> - - <li><a href="../CommentsController.html">CommentsController</a></li> - - <li><a href="../CommentsHelper.html">CommentsHelper</a></li> - - <li><a href="../Cpe.html">Cpe</a></li> - - <li><a href="../Cve.html">Cve</a></li> - - <li><a href="../CveAssignment.html">CveAssignment</a></li> - - <li><a href="../CveChange.html">CveChange</a></li> - - <li><a href="../CveComment.html">CveComment</a></li> - - <li><a href="../CveController.html">CveController</a></li> - - <li><a href="../CveHelper.html">CveHelper</a></li> - - <li><a href="../CveReference.html">CveReference</a></li> - - <li><a href="../GLSAReleaseError.html">GLSAReleaseError</a></li> - - <li><a href="../Glsa.html">Glsa</a></li> - - <li><a href="../GlsaController.html">GlsaController</a></li> - - <li><a href="../GlsaHelper.html">GlsaHelper</a></li> - - <li><a href="../GlsaMailer.html">GlsaMailer</a></li> - - <li><a href="../IndexController.html">IndexController</a></li> - - <li><a href="../IndexHelper.html">IndexHelper</a></li> - - <li><a href="../Package.html">Package</a></li> - - <li><a href="../Reference.html">Reference</a></li> - - <li><a href="../Revision.html">Revision</a></li> - - <li><a href="../SearchController.html">SearchController</a></li> - - <li><a href="../SearchHelper.html">SearchHelper</a></li> - - <li><a href="../String.html">String</a></li> - - <li><a href="../Template.html">Template</a></li> - - <li><a href="../ToolsController.html">ToolsController</a></li> - - <li><a href="../ToolsHelper.html">ToolsHelper</a></li> - - <li><a href="../User.html">User</a></li> - - </ul> - <div id="no-class-search-results" style="display: none;">No matching classes.</div> - </div> - - - </div> - </div> - - <div id="documentation"> - <h1 class="module">Glsamaker::XML</h1> - - <div id="description" class="description"> - - </div><!-- description --> - - - - - <div id="5Buntitled-5D" class="documentation-section"> - - - - - - - - - <!-- Methods --> - - <div id="public-instance-method-details" class="method-section section"> - <h3 class="section-header">Public Instance Methods</h3> - - - <div id="indent-method" class="method-detail "> - <a name="method-i-indent"></a> - - - <div class="method-heading"> - <span class="method-name">indent</span><span - class="method-args">(xml, options = {:indent => 2})</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - - - - - <div class="method-source-code" id="indent-source"> -<pre> -<span class="ruby-comment"># File lib/glsamaker/xml.rb, line 14</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">indent</span>(<span class="ruby-identifier">xml</span>, <span class="ruby-identifier">options</span> = {<span class="ruby-value">:indent</span> =<span class="ruby-operator">></span> <span class="ruby-value">2</span>}) - <span class="ruby-identifier">command</span> = <span class="ruby-constant">GLSAMAKER_XMLINDENT</span> - <span class="ruby-identifier">raise</span> <span class="ruby-string">"xmlindent either does not exist or is not executable."</span> <span class="ruby-keyword">unless</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">executable?</span> <span class="ruby-identifier">command</span>.<span class="ruby-identifier">split</span>(<span class="ruby-string">' '</span>, <span class="ruby-value">2</span>)[<span class="ruby-value">0</span>] - - <span class="ruby-identifier">command</span> <span class="ruby-operator">+=</span> <span class="ruby-node">" -i#{Integer options[:indent]}"</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">has_key?</span> <span class="ruby-value">:indent</span> - <span class="ruby-identifier">command</span> <span class="ruby-operator">+=</span> <span class="ruby-node">" -l#{Integer options[:maxcols]}"</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">options</span>.<span class="ruby-identifier">has_key?</span> <span class="ruby-value">:maxcols</span> - - <span class="ruby-comment"># \r\n will make problems while converting</span> - <span class="ruby-identifier">xml</span>.<span class="ruby-identifier">gsub!</span>(<span class="ruby-string">"\r"</span>, <span class="ruby-string">""</span>) - - <span class="ruby-constant">IO</span>.<span class="ruby-identifier">popen</span>(<span class="ruby-identifier">command</span>, <span class="ruby-string">'r+'</span>) <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">io</span><span class="ruby-operator">|</span> - <span class="ruby-identifier">io</span>.<span class="ruby-identifier">write</span> <span class="ruby-identifier">xml</span> - <span class="ruby-identifier">io</span>.<span class="ruby-identifier">close_write</span> - <span class="ruby-identifier">io</span>.<span class="ruby-identifier">read</span> - <span class="ruby-keyword">end</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- indent-source --> - - </div> - - - - - </div><!-- indent-method --> - - - </div><!-- public-instance-method-details --> - - </div><!-- 5Buntitled-5D --> - - - </div><!-- documentation --> - - <div id="validator-badges"> - <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> - <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish - Rdoc Generator</a> 2</small>.</p> - </div> - -</body> -</html> - |