summaryrefslogtreecommitdiff
path: root/dev-ruby/rdoc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-09-06 10:28:05 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-09-06 10:28:05 +0100
commitf1af93971b7490792d8541bc790e0d8c6d787059 (patch)
treea38046712bbc3a3844d77452d16c84e716caa3d4 /dev-ruby/rdoc
parentfc637fb28da700da71ec2064d65ca5a7a31b9c6c (diff)
gentoo resync : 06.08.2019
Diffstat (limited to 'dev-ruby/rdoc')
-rw-r--r--dev-ruby/rdoc/Manifest8
-rw-r--r--dev-ruby/rdoc/files/rdoc-5.1.0-jquery.patch492
-rw-r--r--dev-ruby/rdoc/rdoc-5.1.0-r1.ebuild98
-rw-r--r--dev-ruby/rdoc/rdoc-6.1.1.ebuild2
-rw-r--r--dev-ruby/rdoc/rdoc-6.1.2.ebuild94
-rw-r--r--dev-ruby/rdoc/rdoc-6.2.0.ebuild94
6 files changed, 786 insertions, 2 deletions
diff --git a/dev-ruby/rdoc/Manifest b/dev-ruby/rdoc/Manifest
index 389475a85406..77ef54ea6e53 100644
--- a/dev-ruby/rdoc/Manifest
+++ b/dev-ruby/rdoc/Manifest
@@ -1,5 +1,11 @@
+AUX rdoc-5.1.0-jquery.patch 16770 BLAKE2B 144d10bcfdf6917af0ebec7ff0df90afa4f1626c1b850acc20491c545aba0e5456d3589a6c92931d343409a86ac21f04a16ef679625d5dcde8ff8d1f169f42ca SHA512 13bd0845bae1777d8c38349db3b53fdb019b63ab6e12c0682d1bff144e70e86d629eac16d96cdfbd94402d7406835b56f64cfdfbc232917cb59ae84ab86ca7f2
DIST rdoc-5.1.0.tar.gz 702376 BLAKE2B 733d77a341ddad10f5b648b6bb492e0f79daa392e2ca371d38236e4c85a1c409699e35dd3f5bc8bc48551b399603bb0a747cb3c5f7f1fbf4765aabffaad575aa SHA512 cd2ed37e8502a3e9093c88c258ac5e39542a23c3dcaedb9b5eb48ce391a694e5b35fbcfd62f01ec6353ac9c40a4b7043b2ff11bbc403d2e03de9a84c52bcefe7
DIST rdoc-6.1.1.tar.gz 701297 BLAKE2B cd1494303d5bf4f81804e40a43252a589a6fa141316a573c1e321bf2dbd71330fabd547e09f5c84937cc45b3f79e2936d90813c29fc11b4a514a9cb498b9c98d SHA512 01e32d6e7ffcb5c0e138068867e6d995210d0123cb87c2754994be1a5e0aede0e05114746e6bd788fd0b4299e9a005dcfc863ef07000f1f9fcbf6ed11e44947b
+DIST rdoc-6.1.2.tar.gz 667607 BLAKE2B 4857bcf5f72d93fe4e9ea89acfda9ae82afd61a7ff501d2eea529330d2b8a63d7cc775490648fcff5000ee60417123244518f56a31593af8efccae8f925b21d9 SHA512 a54e36adf9f98117f0b5ae4490a0ab1ce12d9b1de5b7c61ffa326b36ef13885bb8f18147f3548f95a285b15470faba14965bc87088fa3ce584928d8ee396689f
+DIST rdoc-6.2.0.tar.gz 668152 BLAKE2B 9c92b27c427d6229778aba54ce7f12fe883fd3e40151f518f3d023d4f6dd10d4f1f6d05c8d6bcdce80d1ac81ab25cd99ccbe9479a4fcd950b895e14d4fdc4b83 SHA512 15352889833436c0a243e4f79c4ae8113fa3b8c222950baf1fcd272773a7a17198c2cd91a50c92e225c282a37ec743a38d8e9ca4dffe0b66c39d56412fe56ca2
+EBUILD rdoc-5.1.0-r1.ebuild 2754 BLAKE2B 52eb9c120c3b1b60edd7c6949c39a7cc3e9d3f75e029a76bc234b58da3f9ece6fd0f5ab5742f125b430cd21ec7eb1abbdd0fa9ef8f06c95d8d3eb390a3953141 SHA512 8bfbd2d7db12445c1129c66301b37257d065e9d07fcc80bc1947367164a4b74cb32eb92a15ddeda60c324c8c12a9aff733d3466401e0a8189f7eb0f21a9b3fbc
EBUILD rdoc-5.1.0.ebuild 2586 BLAKE2B 6e028069a3beace2f42f292c6fb5bf68cd7fbe1f71842897afae9cf5f971f7b15c10f8c4e6b0fe04aa825c879994edc5a815914ce2b8f196566dc1bdcf6e4709 SHA512 8a50a8f97be6775a3e3f304e7115d567c7f0829eb9fe5e47017286480a7fead26aef314d4173ff42f5380d17bfe21d313e89bedc884815d7774ec373c902cd13
-EBUILD rdoc-6.1.1.ebuild 2678 BLAKE2B 813dfa8576ec96a23341c9f1df5eb79dd232d783194e2a0a949fb17aa4b4a164ebb5827103f38b57a2db45fb3ccc8936ca9db5542b769157d6dad12c6c1dc3b1 SHA512 45645352aa4c5645688d4322fba605ed849686748e37ef0f39b56831a28b341954987d251d3f1d3b96adc7c45ae5d614d22f6cbac6e6fffe2ada25d88f1eaf32
+EBUILD rdoc-6.1.1.ebuild 2676 BLAKE2B d8557dd8dabccfa258ef10d7d4d448a3a2d41be45273abfb95cdb110835901cd658cd2c6e8f1359fbf65ec5a6a0209786c1623c915368a856c821152b9ac9eba SHA512 56925129ff307f3d777ed074b1a619a3cc70499cc28b78a7a95c1cfe4fc92e56dcc7c5844270fafc72f6bc2e20066181cd4e5d09098830a2a33f7ee9a4228c1c
+EBUILD rdoc-6.1.2.ebuild 2684 BLAKE2B e6622814059382dc34ee2b7fc1800cb397083aca39e0f89b62ab8348f7a45eb452f57c7b8d6bdad753c55ce4feb7896a24a0733ba3438054567010f0a21a81bc SHA512 92aaf5d1b59c642474794f61ce44b2ccabfab188d098aeb0e6db1dd809bc8321a5248432b9b3ab9fbfa3268d5c5d8af81b0c719cb171d27ca4395f50912867d2
+EBUILD rdoc-6.2.0.ebuild 2707 BLAKE2B 3b8b14b2450dc35f3b9f7aa405e2a20d6a9dcdcbfaab10cc20e87190e4baecb1cc167ec8e236fe58923caec551bb4abca68a145bd65e34cf59c6c191b7806d00 SHA512 b87adee48ec8170189cb69410d189f615e8d7fefda546fdab0fcea59082b4b907ca06a9eb0de01c7b9d199c9c4b3474bbbd2e717f408108738999ce8499c59af
MISC metadata.xml 335 BLAKE2B 835d498407155ac5295c70af8a671114c777e5f9371b3d47f9f92a6b102b8e1d58755df0737c34820630464772dc001163e83b5d319707a1c630f4cf2f9ef8de SHA512 3421081016cb99570f9ce9f775097669cd40a709efbbb3c76a20947717bc40d886195a5fda889407d1c436a387c126e07def1eeae01edff53c490ea9c630e992
diff --git a/dev-ruby/rdoc/files/rdoc-5.1.0-jquery.patch b/dev-ruby/rdoc/files/rdoc-5.1.0-jquery.patch
new file mode 100644
index 000000000000..46166e90e5c1
--- /dev/null
+++ b/dev-ruby/rdoc/files/rdoc-5.1.0-jquery.patch
@@ -0,0 +1,492 @@
+From 03c737f3579de998fb8f5142f2c44c96428528dd Mon Sep 17 00:00:00 2001
+From: usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>
+Date: Tue, 27 Aug 2019 12:55:42 +0000
+Subject: [PATCH] Update rdoc version from 5.0.0 to 5.0.1.
+
+git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@67781 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
+---
+ lib/rdoc.rb | 2 +-
+ .../generator/template/darkfish/_head.rhtml | 7 +-
+ .../generator/template/darkfish/css/rdoc.css | 23 +++-
+ .../template/darkfish/js/darkfish.js | 122 ++++--------------
+ .../generator/template/darkfish/js/search.js | 63 ++++-----
+ .../template/json_index/js/navigation.js | 44 +------
+ .../template/json_index/js/searcher.js | 12 +-
+ version.h | 10 +-
+ 8 files changed, 98 insertions(+), 185 deletions(-)
+
+diff --git a/lib/rdoc/generator/template/darkfish/_head.rhtml b/lib/rdoc/generator/template/darkfish/_head.rhtml
+index f308526823e2..8304310d4b34 100644
+--- a/lib/rdoc/generator/template/darkfish/_head.rhtml
++++ b/lib/rdoc/generator/template/darkfish/_head.rhtml
+@@ -7,8 +7,11 @@
+ var index_rel_prefix = "<%= rel_prefix %>/";
+ </script>
+
+-<script src="<%= asset_rel_prefix %>/js/jquery.js"></script>
+-<script src="<%= asset_rel_prefix %>/js/darkfish.js"></script>
++<script src="<%= asset_rel_prefix %>/js/navigation.js" defer></script>
++<script src="<%= asset_rel_prefix %>/js/search.js" defer></script>
++<script src="<%= asset_rel_prefix %>/js/search_index.js" defer></script>
++<script src="<%= asset_rel_prefix %>/js/searcher.js" defer></script>
++<script src="<%= asset_rel_prefix %>/js/darkfish.js" defer></script>
+
+ <link href="<%= asset_rel_prefix %>/css/fonts.css" rel="stylesheet">
+ <link href="<%= asset_rel_prefix %>/css/rdoc.css" rel="stylesheet">
+diff --git a/lib/rdoc/generator/template/darkfish/css/rdoc.css b/lib/rdoc/generator/template/darkfish/css/rdoc.css
+index 2f4dca7e0844..1bdb6e6223c1 100644
+--- a/lib/rdoc/generator/template/darkfish/css/rdoc.css
++++ b/lib/rdoc/generator/template/darkfish/css/rdoc.css
+@@ -9,6 +9,8 @@
+ /* vim: ft=css et sw=2 ts=2 sts=2 */
+ /* Base Green is: #6C8C22 */
+
++.hide { display: none !important; }
++
+ * { padding: 0; margin: 0; }
+
+ body {
+@@ -48,6 +50,16 @@ h6:hover span {
+ display: inline;
+ }
+
++h1:target,
++h2:target,
++h3:target,
++h4:target,
++h5:target,
++h6:target {
++ margin-left: -10px;
++ border-left: 10px solid #f1edba;
++}
++
+ :link,
+ :visited {
+ color: #6C8C22;
+@@ -441,7 +453,16 @@ main header h3 {
+ /* @group Method Details */
+
+ main .method-source-code {
+- display: none;
++ max-height: 0;
++ overflow: hidden;
++ transition-duration: 200ms;
++ transition-delay: 0ms;
++ transition-property: all;
++ transition-timing-function: ease-in-out;
++}
++
++main .method-source-code.active-menu {
++ max-height: 100vh;
+ }
+
+ main .method-description .method-calls-super {
+diff --git a/lib/rdoc/generator/template/darkfish/js/darkfish.js b/lib/rdoc/generator/template/darkfish/js/darkfish.js
+index 38f877ed4028..089813fcdef4 100644
+--- a/lib/rdoc/generator/template/darkfish/js/darkfish.js
++++ b/lib/rdoc/generator/template/darkfish/js/darkfish.js
+@@ -8,6 +8,7 @@
+ */
+
+ /* Provide console simulation for firebug-less environments */
++/*
+ if (!("console" in window) || !("firebug" in console)) {
+ var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
+ "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
+@@ -16,41 +17,35 @@ if (!("console" in window) || !("firebug" in console)) {
+ for (var i = 0; i < names.length; ++i)
+ window.console[names[i]] = function() {};
+ };
+-
+-
+-/**
+- * Unwrap the first element that matches the given @expr@ from the targets and return them.
+- */
+-$.fn.unwrap = function( expr ) {
+- return this.each( function() {
+- $(this).parents( expr ).eq( 0 ).after( this ).remove();
+- });
+-};
++*/
+
+
+ function showSource( e ) {
+ var target = e.target;
+- var codeSections = $(target).
+- parents('.method-detail').
+- find('.method-source-code');
+-
+- $(target).
+- parents('.method-detail').
+- find('.method-source-code').
+- slideToggle();
++ while (!target.classList.contains('method-detail')) {
++ target = target.parentNode;
++ }
++ if (typeof target !== "undefined" && target !== null) {
++ target = target.querySelector('.method-source-code');
++ }
++ if (typeof target !== "undefined" && target !== null) {
++ target.classList.toggle('active-menu')
++ }
+ };
+
+ function hookSourceViews() {
+- $('.method-heading').click( showSource );
++ document.querySelectorAll('.method-heading').forEach(function (codeObject) {
++ codeObject.addEventListener('click', showSource);
++ });
+ };
+
+ function hookSearch() {
+- var input = $('#search-field').eq(0);
+- var result = $('#search-results').eq(0);
+- $(result).show();
++ var input = document.querySelector('#search-field');
++ var result = document.querySelector('#search-results');
++ result.classList.remove("initially-hidden");
+
+- var search_section = $('#search-section').get(0);
+- $(search_section).show();
++ var search_section = document.querySelector('#search-section');
++ search_section.classList.remove("initially-hidden");
+
+ var search = new Search(search_data, input, result);
+
+@@ -77,85 +72,14 @@ function hookSearch() {
+ }
+
+ search.select = function(result) {
+- var result_element = result.get(0);
+- window.location.href = result_element.firstChild.firstChild.href;
++ console.log(result);
++ window.location.href = result.firstChild.firstChild.href;
+ }
+
+ search.scrollIntoView = search.scrollInWindow;
+ };
+
+-function highlightTarget( anchor ) {
+- console.debug( "Highlighting target '%s'.", anchor );
+-
+- $("a[name]").each( function() {
+- if ( $(this).attr("name") == anchor ) {
+- if ( !$(this).parent().parent().hasClass('target-section') ) {
+- console.debug( "Wrapping the target-section" );
+- $('div.method-detail').unwrap( 'div.target-section' );
+- $(this).parent().wrap( '<div class="target-section"></div>' );
+- } else {
+- console.debug( "Already wrapped." );
+- }
+- }
+- });
+-};
+-
+-function highlightLocationTarget() {
+- console.debug( "Location hash: %s", window.location.hash );
+- if ( ! window.location.hash || window.location.hash.length == 0 ) return;
+-
+- var anchor = window.location.hash.substring(1);
+- console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
+-
+- highlightTarget( anchor );
+-};
+-
+-function highlightClickTarget( event ) {
+- console.debug( "Highlighting click target for event %o", event.target );
+- try {
+- var anchor = $(event.target).attr( 'href' ).substring(1);
+- console.debug( "Found target anchor: %s", anchor );
+- highlightTarget( anchor );
+- } catch ( err ) {
+- console.error( "Exception while highlighting: %o", err );
+- };
+-};
+-
+-function loadAsync(path, success, prefix) {
+- $.ajax({
+- url: prefix + path,
+- dataType: 'script',
+- success: success,
+- cache: true
+- });
+-};
+-
+-$(document).ready( function() {
++document.addEventListener('DOMContentLoaded', function() {
+ hookSourceViews();
+- highlightLocationTarget();
+- $('ul.link-list a').bind( "click", highlightClickTarget );
+-
+- var search_scripts_loaded = {
+- navigation_loaded: false,
+- search_loaded: false,
+- search_index_loaded: false,
+- searcher_loaded: false,
+- }
+-
+- var search_success_function = function(variable) {
+- return (function (data, status, xhr) {
+- search_scripts_loaded[variable] = true;
+-
+- if (search_scripts_loaded['navigation_loaded'] == true &&
+- search_scripts_loaded['search_loaded'] == true &&
+- search_scripts_loaded['search_index_loaded'] == true &&
+- search_scripts_loaded['searcher_loaded'] == true)
+- hookSearch();
+- });
+- }
+-
+- loadAsync('js/navigation.js', search_success_function('navigation_loaded'), rdoc_rel_prefix);
+- loadAsync('js/search.js', search_success_function('search_loaded'), rdoc_rel_prefix);
+- loadAsync('js/search_index.js', search_success_function('search_index_loaded'), index_rel_prefix);
+- loadAsync('js/searcher.js', search_success_function('searcher_loaded'), rdoc_rel_prefix);
++ hookSearch();
+ });
+diff --git a/lib/rdoc/generator/template/darkfish/js/search.js b/lib/rdoc/generator/template/darkfish/js/search.js
+index 60ac295e6cec..b558ca5b4f68 100644
+--- a/lib/rdoc/generator/template/darkfish/js/search.js
++++ b/lib/rdoc/generator/template/darkfish/js/search.js
+@@ -1,29 +1,29 @@
+ Search = function(data, input, result) {
+ this.data = data;
+- this.$input = $(input);
+- this.$result = $(result);
++ this.input = input;
++ this.result = result;
+
+- this.$current = null;
+- this.$view = this.$result.parent();
++ this.current = null;
++ this.view = this.result.parentNode;
+ this.searcher = new Searcher(data.index);
+ this.init();
+ }
+
+-Search.prototype = $.extend({}, Navigation, new function() {
++Search.prototype = Object.assign({}, Navigation, new function() {
+ var suid = 1;
+
+ this.init = function() {
+ var _this = this;
+ var observer = function(e) {
+- switch(e.originalEvent.keyCode) {
++ switch(e.keyCode) {
+ case 38: // Event.KEY_UP
+ case 40: // Event.KEY_DOWN
+ return;
+ }
+- _this.search(_this.$input[0].value);
++ _this.search(_this.input.value);
+ };
+- this.$input.keyup(observer);
+- this.$input.click(observer); // mac's clear field
++ this.input.addEventListener('keyup', observer);
++ this.input.addEventListener('click', observer); // mac's clear field
+
+ this.searcher.ready(function(results, isLast) {
+ _this.addResults(results, isLast);
+@@ -34,7 +34,7 @@ Search.prototype = $.extend({}, Navigation, new function() {
+ }
+
+ this.search = function(value, selectFirstMatch) {
+- value = jQuery.trim(value).toLowerCase();
++ value = value.trim().toLowerCase();
+ if (value) {
+ this.setNavigationActive(true);
+ } else {
+@@ -43,23 +43,23 @@ Search.prototype = $.extend({}, Navigation, new function() {
+
+ if (value == '') {
+ this.lastQuery = value;
+- this.$result.empty();
+- this.$result.attr('aria-expanded', 'false');
++ this.result.innerHTML = '';
++ this.result.setAttribute('aria-expanded', 'false');
+ this.setNavigationActive(false);
+ } else if (value != this.lastQuery) {
+ this.lastQuery = value;
+- this.$result.attr('aria-busy', 'true');
+- this.$result.attr('aria-expanded', 'true');
++ this.result.setAttribute('aria-busy', 'true');
++ this.result.setAttribute('aria-expanded', 'true');
+ this.firstRun = true;
+ this.searcher.find(value);
+ }
+ }
+
+ this.addResults = function(results, isLast) {
+- var target = this.$result.get(0);
++ var target = this.result;
+ if (this.firstRun && (results.length > 0 || isLast)) {
+- this.$current = null;
+- this.$result.empty();
++ this.current = null;
++ this.result.innerHTML = '';
+ }
+
+ for (var i=0, l = results.length; i < l; i++) {
+@@ -70,25 +70,26 @@ Search.prototype = $.extend({}, Navigation, new function() {
+
+ if (this.firstRun && results.length > 0) {
+ this.firstRun = false;
+- this.$current = $(target.firstChild);
+- this.$current.addClass('search-selected');
++ this.current = target.firstChild;
++ this.current.classList.add('search-selected');
+ }
+- if (jQuery.browser.msie) this.$element[0].className += '';
++ //TODO: ECMAScript
++ //if (jQuery.browser.msie) this.$element[0].className += '';
+
+- if (isLast) this.$result.attr('aria-busy', 'false');
++ if (isLast) this.result.setAttribute('aria-busy', 'false');
+ }
+
+ this.move = function(isDown) {
+- if (!this.$current) return;
+- var $next = this.$current[isDown ? 'next' : 'prev']();
+- if ($next.length) {
+- this.$current.removeClass('search-selected');
+- $next.addClass('search-selected');
+- this.$input.attr('aria-activedescendant', $next.attr('id'));
+- this.scrollIntoView($next[0], this.$view[0]);
+- this.$current = $next;
+- this.$input.val($next[0].firstChild.firstChild.text);
+- this.$input.select();
++ if (!this.current) return;
++ var next = isDown ? this.current.nextElementSibling : this.current.previousElementSibling;
++ if (next) {
++ this.current.classList.remove('search-selected');
++ next.classList.add('search-selected');
++ this.input.setAttribute('aria-activedescendant', next.getAttribute('id'));
++ this.scrollIntoView(next, this.view);
++ this.current = next;
++ this.input.value = next.firstChild.firstChild.text;
++ this.input.select();
+ }
+ return true;
+ }
+diff --git a/lib/rdoc/generator/template/json_index/js/navigation.js b/lib/rdoc/generator/template/json_index/js/navigation.js
+index e41268123ea9..4866fff81922 100644
+--- a/lib/rdoc/generator/template/json_index/js/navigation.js
++++ b/lib/rdoc/generator/template/json_index/js/navigation.js
+@@ -10,10 +10,8 @@ Navigation = new function() {
+ this.initNavigation = function() {
+ var _this = this;
+
+- $(document).keydown(function(e) {
++ document.addEventListener('keydown', function(e) {
+ _this.onkeydown(e);
+- }).keyup(function(e) {
+- _this.onkeyup(e);
+ });
+
+ this.navigationActive = true;
+@@ -21,20 +19,6 @@ Navigation = new function() {
+
+ this.setNavigationActive = function(state) {
+ this.navigationActive = state;
+- this.clearMoveTimeout();
+- }
+-
+- this.onkeyup = function(e) {
+- if (!this.navigationActive) return;
+-
+- switch(e.keyCode) {
+- case 37: //Event.KEY_LEFT:
+- case 38: //Event.KEY_UP:
+- case 39: //Event.KEY_RIGHT:
+- case 40: //Event.KEY_DOWN:
+- this.clearMoveTimeout();
+- break;
+- }
+ }
+
+ this.onkeydown = function(e) {
+@@ -46,7 +30,6 @@ Navigation = new function() {
+ case 38: //Event.KEY_UP:
+ if (e.keyCode == 38 || e.ctrlKey) {
+ if (this.moveUp()) e.preventDefault();
+- this.startMoveTimeout(false);
+ }
+ break;
+ case 39: //Event.KEY_RIGHT:
+@@ -55,34 +38,15 @@ Navigation = new function() {
+ case 40: //Event.KEY_DOWN:
+ if (e.keyCode == 40 || e.ctrlKey) {
+ if (this.moveDown()) e.preventDefault();
+- this.startMoveTimeout(true);
+ }
+ break;
+ case 13: //Event.KEY_RETURN:
+- if (this.$current)
++ if (this.current)
+ e.preventDefault();
+- this.select(this.$current);
++ this.select(this.current);
+ break;
+ }
+- if (e.ctrlKey && e.shiftKey) this.select(this.$current);
+- }
+-
+- this.clearMoveTimeout = function() {
+- clearTimeout(this.moveTimeout);
+- this.moveTimeout = null;
+- }
+-
+- this.startMoveTimeout = function(isDown) {
+- if (!$.browser.mozilla && !$.browser.opera) return;
+- if (this.moveTimeout) this.clearMoveTimeout();
+- var _this = this;
+-
+- var go = function() {
+- if (!_this.moveTimeout) return;
+- _this[isDown ? 'moveDown' : 'moveUp']();
+- _this.moveTimout = setTimeout(go, 100);
+- }
+- this.moveTimeout = setTimeout(go, 200);
++ if (e.ctrlKey && e.shiftKey) this.select(this.current);
+ }
+
+ this.moveRight = function() {
+diff --git a/lib/rdoc/generator/template/json_index/js/searcher.js b/lib/rdoc/generator/template/json_index/js/searcher.js
+index b3b1c58a0f38..e200a168b0f7 100644
+--- a/lib/rdoc/generator/template/json_index/js/searcher.js
++++ b/lib/rdoc/generator/template/json_index/js/searcher.js
+@@ -51,20 +51,20 @@ Searcher.prototype = new function() {
+
+ /* ----- Utilities ------ */
+ function splitQuery(query) {
+- return jQuery.grep(query.split(/(\s+|::?|\(\)?)/), function(string) {
++ return query.split(/(\s+|::?|\(\)?)/).filter(function(string) {
+ return string.match(/\S/);
+ });
+ }
+
+ function buildRegexps(queries) {
+- return jQuery.map(queries, function(query) {
++ return queries.map(function(query) {
+ return new RegExp(query.replace(/(.)/g, '([$1])([^$1]*?)'), 'i');
+ });
+ }
+
+ function buildHilighters(queries) {
+- return jQuery.map(queries, function(query) {
+- return jQuery.map(query.split(''), function(l, i) {
++ return queries.map(function(query) {
++ return query.split('').map(function(l, i) {
+ return '\u0001$' + (i*2+1) + '\u0002$' + (i*2+2);
+ }).join('');
+ });
+@@ -221,9 +221,9 @@ Searcher.prototype = new function() {
+ }
+
+ function triggerResults(results, isLast) {
+- jQuery.each(this.handlers, function(i, fn) {
++ this.handlers.forEach(function(fn) {
+ fn.call(this, results, isLast)
+- })
++ });
+ }
+ }
diff --git a/dev-ruby/rdoc/rdoc-5.1.0-r1.ebuild b/dev-ruby/rdoc/rdoc-5.1.0-r1.ebuild
new file mode 100644
index 000000000000..0f9a3297d061
--- /dev/null
+++ b/dev-ruby/rdoc/rdoc-5.1.0-r1.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+USE_RUBY="ruby24"
+
+RUBY_FAKEGEM_TASK_DOC=""
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc RI.rdoc TODO.rdoc"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_BINDIR="exe"
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="An extended version of the RDoc library from Ruby 1.8"
+HOMEPAGE="https://github.com/rdoc/rdoc/"
+SRC_URI="https://github.com/rdoc/rdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Ruby MIT"
+KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE=""
+
+RDEPEND+=">=app-eselect/eselect-ruby-20161226"
+
+RUBY_PATCHES=( "${FILESDIR}/${P}-jquery.patch" )
+
+ruby_add_bdepend "
+ dev-ruby/kpeg
+ dev-ruby/racc
+ test? (
+ dev-ruby/bundler
+ >=dev-ruby/minitest-5.8:5
+ )"
+
+ruby_add_rdepend "dev-ruby/json:2"
+
+all_ruby_prepare() {
+ # Other packages also have use for a nonexistent directory, bug 321059
+ sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' test/test_rdoc*.rb || die
+
+ # Avoid unneeded dependency on bundler, bug 603696
+ sed -i -e '/bundler/ s:^:#:' \
+ -e 's/Bundler::GemHelper.gemspec.full_name/"rdoc"/' Rakefile || die
+
+ # Remove test that is depending on the locale, which we can't garantuee.
+ sed -i -e '/def test_encode_with/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die
+
+ # Remove test depending on FEATURES=userpriv, bug 361959
+ sed -i -e '/def test_check_files/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die
+
+ # Remove tests for code that is not included and not listed in Manifest.txt
+ rm -f test/test_rdoc_i18n_{locale,text}.rb \
+ test/test_rdoc_generator_pot* || die
+
+ # Removal is not included in the upstream patch
+ rm -f lib/rdoc/generator/template/darkfish/js/jquery.js || die
+}
+
+all_ruby_compile() {
+ all_fakegem_compile
+
+ if use doc ; then
+ ruby -Ilib -S exe/rdoc || die
+ fi
+}
+
+each_ruby_compile() {
+ ${RUBY} -S rake generate || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:. -e 'gem "json", "~>2.0"; Dir["test/test_*.rb"].each{|f| require f}' || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ for bin in rdoc ri; do
+ ruby_fakegem_binwrapper $bin /usr/bin/$bin-2
+
+ for version in $(ruby_get_use_implementations); do
+ version=`echo ${version} | cut -c 5-`
+ if use ruby_targets_ruby${version}; then
+ ruby_fakegem_binwrapper $bin /usr/bin/${bin}${version}
+ sed -i -e "1s/env ruby/ruby${version}/" \
+ "${ED}/usr/bin/${bin}${version}" || die
+ fi
+ done
+ done
+}
+
+pkg_postinst() {
+ if [[ ! -n $(readlink "${ROOT}"usr/bin/rdoc) ]] ; then
+ eselect ruby set $(eselect --brief --colour=no ruby show | head -n1)
+ fi
+}
diff --git a/dev-ruby/rdoc/rdoc-6.1.1.ebuild b/dev-ruby/rdoc/rdoc-6.1.1.ebuild
index 9a4423aef0a8..199b9c46cd97 100644
--- a/dev-ruby/rdoc/rdoc-6.1.1.ebuild
+++ b/dev-ruby/rdoc/rdoc-6.1.1.ebuild
@@ -18,7 +18,7 @@ HOMEPAGE="https://github.com/ruby/rdoc/"
SRC_URI="https://github.com/ruby/rdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Ruby MIT"
-KEYWORDS="~alpha amd64 ~arm ~arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+KEYWORDS="~alpha amd64 ~arm arm64 hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
SLOT="0"
IUSE=""
diff --git a/dev-ruby/rdoc/rdoc-6.1.2.ebuild b/dev-ruby/rdoc/rdoc-6.1.2.ebuild
new file mode 100644
index 000000000000..0579834a3511
--- /dev/null
+++ b/dev-ruby/rdoc/rdoc-6.1.2.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_DOC=""
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc RI.rdoc TODO.rdoc"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_BINDIR="exe"
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="An extended version of the RDoc library from Ruby 1.8"
+HOMEPAGE="https://github.com/ruby/rdoc/"
+SRC_URI="https://github.com/ruby/rdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Ruby MIT"
+KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE="doc"
+
+RDEPEND+=">=app-eselect/eselect-ruby-20181225"
+
+ruby_add_bdepend "
+ >=dev-ruby/kpeg-1.1.0-r1
+ >dev-ruby/racc-1.4.10
+ dev-ruby/rake
+ test? (
+ dev-ruby/bundler
+ >=dev-ruby/minitest-5.8:5
+ )"
+
+all_ruby_prepare() {
+ # Other packages also have use for a nonexistent directory, bug 321059
+ sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' test/test_rdoc*.rb || die
+
+ # Avoid unneeded dependency on bundler, bug 603696
+ sed -i -e '/bundler/ s:^:#:' \
+ -e 's/Bundler::GemHelper.gemspec.full_name/"rdoc"/' \
+ -e '/rubocop\/rake/ s:^:#:' \
+ -e '/RuboCop/,/end/ s:^:#:' Rakefile || die
+
+ # Remove test that is depending on the locale, which we can't garantuee.
+ sed -i -e '/def test_encode_with/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die
+
+ # Remove test depending on FEATURES=userpriv, bug 361959
+ sed -i -e '/def test_check_files/,/^ end/ s:^:#:' test/test_rdoc_options.rb || die
+
+ # Remove tests for code that is not included and not listed in Manifest.txt
+ rm -f test/test_rdoc_i18n_{locale,text}.rb \
+ test/test_rdoc_generator_pot* || die
+}
+
+all_ruby_compile() {
+ all_fakegem_compile
+
+ if use doc ; then
+ ruby -Ilib -S exe/rdoc || die
+ fi
+}
+
+each_ruby_compile() {
+ ${RUBY} -S rake generate || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ for bin in rdoc ri; do
+ ruby_fakegem_binwrapper $bin /usr/bin/$bin-2
+
+ for version in $(ruby_get_use_implementations); do
+ version=`echo ${version} | cut -c 5-`
+ if use ruby_targets_ruby${version}; then
+ ruby_fakegem_binwrapper $bin /usr/bin/${bin}${version}
+ sed -i -e "1s/env ruby/ruby${version}/" \
+ "${ED}/usr/bin/${bin}${version}" || die
+ fi
+ done
+ done
+}
+
+pkg_postinst() {
+ if [[ ! -n $(readlink "${ROOT}"/usr/bin/rdoc) ]] ; then
+ eselect ruby set $(eselect --brief --colour=no ruby show | head -n1)
+ fi
+}
diff --git a/dev-ruby/rdoc/rdoc-6.2.0.ebuild b/dev-ruby/rdoc/rdoc-6.2.0.ebuild
new file mode 100644
index 000000000000..a3decb6aa3f9
--- /dev/null
+++ b/dev-ruby/rdoc/rdoc-6.2.0.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+USE_RUBY="ruby24 ruby25 ruby26"
+
+RUBY_FAKEGEM_RECIPE_DOC=""
+RUBY_FAKEGEM_DOCDIR="doc"
+RUBY_FAKEGEM_EXTRADOC="History.rdoc README.rdoc RI.rdoc TODO.rdoc"
+
+RUBY_FAKEGEM_BINWRAP=""
+RUBY_FAKEGEM_BINDIR="exe"
+
+inherit ruby-fakegem eutils
+
+DESCRIPTION="An extended version of the RDoc library from Ruby 1.8"
+HOMEPAGE="https://github.com/ruby/rdoc/"
+SRC_URI="https://github.com/ruby/rdoc/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="Ruby MIT"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+SLOT="0"
+IUSE="doc"
+
+RDEPEND+=">=app-eselect/eselect-ruby-20181225"
+
+ruby_add_bdepend "
+ >=dev-ruby/kpeg-1.1.0-r1
+ >dev-ruby/racc-1.4.10
+ dev-ruby/rake
+ test? (
+ dev-ruby/bundler
+ >=dev-ruby/minitest-5.8:5
+ )"
+
+all_ruby_prepare() {
+ # Other packages also have use for a nonexistent directory, bug 321059
+ sed -i -e 's#/nonexistent#/nonexistent_rdoc_tests#g' test/rdoc/test_rdoc*.rb || die
+
+ # Avoid unneeded dependency on bundler, bug 603696
+ sed -i -e '/bundler/ s:^:#:' \
+ -e 's/Bundler::GemHelper.gemspec.full_name/"rdoc"/' \
+ -e '/rubocop\/rake/ s:^:#:' \
+ -e '/RuboCop/,/end/ s:^:#:' Rakefile || die
+
+ # Remove test that is depending on the locale, which we can't garantuee.
+ sed -i -e '/def test_encode_with/,/^ end/ s:^:#:' test/rdoc/test_rdoc_options.rb || die
+
+ # Remove test depending on FEATURES=userpriv, bug 361959
+ sed -i -e '/def test_check_files/,/^ end/ s:^:#:' test/rdoc/test_rdoc_options.rb || die
+
+ # Remove tests for code that is not included and not listed in Manifest.txt
+ rm -f test/test_rdoc_i18n_{locale,text}.rb \
+ test/rdoc/test_rdoc_generator_pot* || die
+}
+
+all_ruby_compile() {
+ all_fakegem_compile
+
+ if use doc ; then
+ ruby -Ilib -S exe/rdoc || die
+ fi
+}
+
+each_ruby_compile() {
+ ${RUBY} -S rake generate || die
+}
+
+each_ruby_test() {
+ ${RUBY} -Ilib:test:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
+}
+
+all_ruby_install() {
+ all_fakegem_install
+
+ for bin in rdoc ri; do
+ ruby_fakegem_binwrapper $bin /usr/bin/$bin-2
+
+ for version in $(ruby_get_use_implementations); do
+ version=`echo ${version} | cut -c 5-`
+ if use ruby_targets_ruby${version}; then
+ ruby_fakegem_binwrapper $bin /usr/bin/${bin}${version}
+ sed -i -e "1s/env ruby/ruby${version}/" \
+ "${ED}/usr/bin/${bin}${version}" || die
+ fi
+ done
+ done
+}
+
+pkg_postinst() {
+ if [[ ! -n $(readlink "${ROOT}"/usr/bin/rdoc) ]] ; then
+ eselect ruby set $(eselect --brief --colour=no ruby show | head -n1)
+ fi
+}