diff options
author | Max Magorsch <arzano@gentoo.org> | 2020-04-18 02:38:35 +0200 |
---|---|---|
committer | Max Magorsch <arzano@gentoo.org> | 2020-04-18 02:50:54 +0200 |
commit | 35a41e63ebd5f6cf9d17419c150eb53a005d2e87 (patch) | |
tree | e0bcc21bbb1e7e200857cfbd52acb82b008a3a6d /doc/app/Bugzilla/History.html | |
parent | Display version and last update in the footer (diff) | |
download | glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.tar.gz glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.tar.bz2 glsamaker-35a41e63ebd5f6cf9d17419c150eb53a005d2e87.zip |
Add the initial version of the rewritten glsamaker
The glsamaker has been completly rewritten in go. It is
using postgres instead of mysql now. The look and feel is
based on tyrian.
Signed-off-by: Max Magorsch <arzano@gentoo.org>
Diffstat (limited to 'doc/app/Bugzilla/History.html')
-rw-r--r-- | doc/app/Bugzilla/History.html | 470 |
1 files changed, 0 insertions, 470 deletions
diff --git a/doc/app/Bugzilla/History.html b/doc/app/Bugzilla/History.html deleted file mode 100644 index b4b5d04..0000000 --- a/doc/app/Bugzilla/History.html +++ /dev/null @@ -1,470 +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: Bugzilla::History</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/bugzilla/history_rb.html?TB_iframe=true&height=550&width=785" - class="thickbox" title="lib/bugzilla/history.rb">lib/bugzilla/history.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-by_field">#by_field</a></li> - - <li><a href="#method-i-by_user">#by_user</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">Bugzilla::History</h1> - - <div id="description" class="description"> - - </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="changes-attribute-method" class="method-detail"> - <a name="changes"></a> - - <div class="method-heading attribute-method-heading"> - <span class="method-name">changes</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">(bug)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Creates a new <a href="History.html">History</a> for the <a -href="Bug.html">Bug</a> object <tt>bug</tt>.</p> - - - - <div class="method-source-code" id="new-source"> -<pre> -<span class="ruby-comment"># File lib/bugzilla/history.rb, line 7</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">bug</span>) - <span class="ruby-keyword">unless</span> <span class="ruby-identifier">bug</span>.<span class="ruby-identifier">respond_to?</span> <span class="ruby-value">:bug_id</span> - <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Need a bug (or something that at least looks like a bug)"</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-keyword">begin</span> - <span class="ruby-identifier">html</span> = <span class="ruby-constant">Nokogiri</span><span class="ruby-operator">::</span><span class="ruby-constant">HTML</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">"https://bugs.gentoo.org/show_activity.cgi?id=#{bug.bug_id}"</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-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-node">"Couldn't load the bug history: #{e.message}"</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-ivar">@changes</span> = [] - <span class="ruby-identifier">change_cache</span> = <span class="ruby-keyword">nil</span> - - <span class="ruby-identifier">html</span>.<span class="ruby-identifier">xpath</span>(<span class="ruby-string">"/html/body/table/tr"</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">change</span><span class="ruby-operator">|</span> - <span class="ruby-comment"># ignore header line</span> - <span class="ruby-keyword">next</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">change</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">name</span> <span class="ruby-operator">==</span> <span class="ruby-string">"th"</span> - - <span class="ruby-comment"># First line in a multi-change set</span> - <span class="ruby-keyword">unless</span> (<span class="ruby-identifier">chcount</span> = <span class="ruby-identifier">change</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">first</span>[<span class="ruby-string">"rowspan"</span>]) <span class="ruby-operator">==</span> <span class="ruby-keyword">nil</span> - <span class="ruby-identifier">change_cache</span> = <span class="ruby-constant">Change</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">change</span>.<span class="ruby-identifier">children</span>.<span class="ruby-identifier">first</span>.<span class="ruby-identifier">content</span>.<span class="ruby-identifier">strip</span>, <span class="ruby-identifier">change</span>.<span class="ruby-identifier">children</span>[<span class="ruby-value">2</span>].<span class="ruby-identifier">content</span>.<span class="ruby-identifier">strip</span>) - - <span class="ruby-identifier">change_cache</span>.<span class="ruby-identifier">add_change</span>( - <span class="ruby-identifier">change</span>.<span class="ruby-identifier">children</span>[<span class="ruby-value">4</span>].<span class="ruby-identifier">content</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">to_sym</span>, - <span class="ruby-identifier">change</span>.<span class="ruby-identifier">children</span>[<span class="ruby-value">6</span>].<span class="ruby-identifier">content</span>.<span class="ruby-identifier">strip</span>, - <span class="ruby-identifier">change</span>.<span class="ruby-identifier">children</span>[<span class="ruby-value">8</span>].<span class="ruby-identifier">content</span>.<span class="ruby-identifier">strip</span> - ) - - <span class="ruby-ivar">@changes</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">change_cache</span> - <span class="ruby-keyword">else</span> - <span class="ruby-identifier">change_cache</span>.<span class="ruby-identifier">add_change</span>( - <span class="ruby-identifier">change</span>.<span class="ruby-identifier">children</span>[<span class="ruby-value">0</span>].<span class="ruby-identifier">content</span>.<span class="ruby-identifier">strip</span>.<span class="ruby-identifier">downcase</span>.<span class="ruby-identifier">to_sym</span>, - <span class="ruby-identifier">change</span>.<span class="ruby-identifier">children</span>[<span class="ruby-value">2</span>].<span class="ruby-identifier">content</span>.<span class="ruby-identifier">strip</span>, - <span class="ruby-identifier">change</span>.<span class="ruby-identifier">children</span>[<span class="ruby-value">4</span>].<span class="ruby-identifier">content</span>.<span class="ruby-identifier">strip</span> - ) - <span class="ruby-keyword">end</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="by_field-method" class="method-detail "> - <a name="method-i-by_field"></a> - - - <div class="method-heading"> - <span class="method-name">by_field</span><span - class="method-args">(field)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns an Array of Changes made to the field <tt>field</tt></p> - - - - <div class="method-source-code" id="by_field-source"> -<pre> -<span class="ruby-comment"># File lib/bugzilla/history.rb, line 47</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">by_field</span>(<span class="ruby-identifier">field</span>) - <span class="ruby-identifier">raise</span>(<span class="ruby-constant">ArgumentError</span>, <span class="ruby-string">"Symbol expected"</span>) <span class="ruby-keyword">unless</span> <span class="ruby-identifier">field</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Symbol</span> - - <span class="ruby-identifier">changes</span> = [] - - <span class="ruby-ivar">@changes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">change</span><span class="ruby-operator">|</span> - <span class="ruby-keyword">if</span> <span class="ruby-identifier">change</span>.<span class="ruby-identifier">changes</span>.<span class="ruby-identifier">has_key?</span>(<span class="ruby-identifier">field</span>) - <span class="ruby-identifier">changes</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">change</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-identifier">changes</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- by_field-source --> - - </div> - - - - - </div><!-- by_field-method --> - - - <div id="by_user-method" class="method-detail "> - <a name="method-i-by_user"></a> - - - <div class="method-heading"> - <span class="method-name">by_user</span><span - class="method-args">(user)</span> - <span class="method-click-advice">click to toggle source</span> - </div> - - - <div class="method-description"> - - <p>Returns an Array of Changes made by the user <tt>user</tt></p> - - - - <div class="method-source-code" id="by_user-source"> -<pre> -<span class="ruby-comment"># File lib/bugzilla/history.rb, line 62</span> -<span class="ruby-keyword">def</span> <span class="ruby-identifier">by_user</span>(<span class="ruby-identifier">user</span>) - <span class="ruby-identifier">changes</span> = [] - - <span class="ruby-ivar">@changes</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">change</span><span class="ruby-operator">|</span> - <span class="ruby-keyword">if</span> <span class="ruby-identifier">change</span>.<span class="ruby-identifier">user</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">user</span> - <span class="ruby-identifier">changes</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">change</span> - <span class="ruby-keyword">end</span> - <span class="ruby-keyword">end</span> - - <span class="ruby-identifier">changes</span> -<span class="ruby-keyword">end</span></pre> - </div><!-- by_user-source --> - - </div> - - - - - </div><!-- by_user-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> - |