From 6875e6992054a7a6381bfc19d915e7554a67d60f Mon Sep 17 00:00:00 2001 From: Awesome Code Date: Thu, 18 Jan 2018 12:21:35 +0000 Subject: [PATCH 1/6] trigger awesomecode.io notification From c6049305d67f4c77f8076a76613092805f54d9bc Mon Sep 17 00:00:00 2001 From: Awesome Code Date: Sat, 3 Mar 2018 13:51:57 +0000 Subject: [PATCH 2/6] trigger awesomecode.io notification From 3c70f4f217ed5a4c6f01a25c2e3890e97d84f6c8 Mon Sep 17 00:00:00 2001 From: Awesome Code Date: Sat, 3 Mar 2018 14:22:14 +0000 Subject: [PATCH 3/6] trigger awesomecode.io notification From 4c0930e1ca83e28178176146069f92b0e903224e Mon Sep 17 00:00:00 2001 From: Awesome Code Date: Sun, 4 Mar 2018 13:13:15 +0000 Subject: [PATCH 4/6] trigger awesomecode.io notification From da63f8e866f9541cad56c69da420afe7f6a56541 Mon Sep 17 00:00:00 2001 From: Awesome Code Date: Sun, 11 Mar 2018 12:35:51 +0000 Subject: [PATCH 5/6] trigger awesomecode.io notification From 7b7d83a7be661de2227d607f2d6d4c852bf516a3 Mon Sep 17 00:00:00 2001 From: Awesome Code Date: Sun, 11 Mar 2018 12:37:43 +0000 Subject: [PATCH 6/6] Auto corrected by following quotes --- app/assets/javascripts/announcements.js | 14 +++++++------- app/assets/javascripts/clipboard_buttons.js | 12 ++++++------ app/assets/javascripts/pages.js | 12 ++++++------ app/assets/javascripts/search.js | 2 +- lib/assets/javascripts/clipboard.js | 12 ++++++------ 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/app/assets/javascripts/announcements.js b/app/assets/javascripts/announcements.js index 641c380912a..1e1d6efa248 100644 --- a/app/assets/javascripts/announcements.js +++ b/app/assets/javascripts/announcements.js @@ -1,6 +1,6 @@ function hideAnnouncement(announcement_key) { - createCookie(announcement_key, "hidden", 365); - $("#announcement").slideUp(); + createCookie(announcement_key, 'hidden', 365); + $('#announcement').slideUp(); } // Utility scripts from http://www.quirksmode.org/js/cookies.html @@ -8,13 +8,13 @@ function createCookie(name, value, days) { if (days) { var date = new Date(); date.setTime(date.getTime() + (days * 24 * 60 * 60 * 1000)); - var expires = "; expires=" + date.toGMTString(); - } else var expires = ""; - document.cookie = name + "=" + value + expires + "; path=/"; + var expires = '; expires=' + date.toGMTString(); + } else var expires = ''; + document.cookie = name + '=' + value + expires + '; path=/'; } function readCookie(name) { - var nameEQ = name + "="; + var nameEQ = name + '='; var ca = document.cookie.split(';'); for (var i = 0; i < ca.length; i++) { var c = ca[i]; @@ -25,5 +25,5 @@ function readCookie(name) { } function eraseCookie(name) { - createCookie(name, "", -1); + createCookie(name, '', -1); } diff --git a/app/assets/javascripts/clipboard_buttons.js b/app/assets/javascripts/clipboard_buttons.js index 35e05b14c69..74d6bafeb01 100644 --- a/app/assets/javascripts/clipboard_buttons.js +++ b/app/assets/javascripts/clipboard_buttons.js @@ -5,9 +5,9 @@ $(function() { var copyButtons = $('.gem__code__icon'); function hideCopyShowCopiedTooltips(e) { - copyTooltip.removeClass("clipboard-is-hover"); + copyTooltip.removeClass('clipboard-is-hover'); copiedTooltip.insertAfter(e.trigger); - copiedTooltip.addClass("clipboard-is-active"); + copiedTooltip.addClass('clipboard-is-active'); }; clipboard.on('success', function(e) { @@ -17,19 +17,19 @@ $(function() { clipboard.on('error', function(e) { hideCopyShowCopiedTooltips(e); - copiedTooltip.text("Ctrl-C to Copy"); + copiedTooltip.text('Ctrl-C to Copy'); }); copyButtons.hover(function() { copyTooltip.insertAfter(this); - copyTooltip.addClass("clipboard-is-hover"); + copyTooltip.addClass('clipboard-is-hover'); }); copyButtons.mouseout(function() { - copyTooltip.removeClass("clipboard-is-hover"); + copyTooltip.removeClass('clipboard-is-hover'); }); copyButtons.mouseout(function() { - copiedTooltip.removeClass("clipboard-is-active"); + copiedTooltip.removeClass('clipboard-is-active'); }); }); diff --git a/app/assets/javascripts/pages.js b/app/assets/javascripts/pages.js index dc0df61c9ab..72c0e933a7f 100644 --- a/app/assets/javascripts/pages.js +++ b/app/assets/javascripts/pages.js @@ -39,7 +39,7 @@ $(document).ready(function() { k = 1024; sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; i = Math.floor(Math.log(bytes) / Math.log(k)); - return (bytes / Math.pow(k, i)).toPrecision(3) + " " + sizes[i]; + return (bytes / Math.pow(k, i)).toPrecision(3) + ' ' + sizes[i]; }; var renderDumpList = function(files) { @@ -47,14 +47,14 @@ $(document).ready(function() { content = []; jQuery.each(files, function(idx, item) { if ('STANDARD' === item.StorageClass) { - return content.push("
  • " + (item.LastModified.replace('.000Z', '')) + " (" + (bytesToSize(item.Size)) + ")
  • "); + return content.push('
  • ' + (item.LastModified.replace('.000Z', '')) + ' (' + (bytesToSize(item.Size)) + ')
  • '); } }); - return content.join("\n"); + return content.join('\n'); }; - data_title = "RubyGems.org Data Dumps | RubyGems.org | your community gem host"; - page_title = $(document).find("title").text(); + data_title = 'RubyGems.org Data Dumps | RubyGems.org | your community gem host'; + page_title = $(document).find('title').text(); if(page_title === data_title){ getDumpData('ul.rubygems-dump-listing-postgresql', 'postgresql'); getDumpData('ul.rubygems-dump-listing-redis', 'redis'); @@ -63,6 +63,6 @@ $(document).ready(function() { //stats page $('.stats__graph__gem__meter').each(function() { - bar_width = $(this).data("bar_width"); + bar_width = $(this).data('bar_width'); $(this).animate({ width: bar_width + '%' }, 700).removeClass('t-item--hidden'); }); diff --git a/app/assets/javascripts/search.js b/app/assets/javascripts/search.js index 60833246081..b5cc7198f40 100644 --- a/app/assets/javascripts/search.js +++ b/app/assets/javascripts/search.js @@ -1,4 +1,4 @@ -if($("#advanced-search").length){ +if($('#advanced-search').length){ var $main = $('#home_query'); var $name = $('input#name'); var $summary = $('input#summary'); diff --git a/lib/assets/javascripts/clipboard.js b/lib/assets/javascripts/clipboard.js index b97fcd2a9d3..cb730ee78c4 100644 --- a/lib/assets/javascripts/clipboard.js +++ b/lib/assets/javascripts/clipboard.js @@ -4,7 +4,7 @@ * * Licensed MIT © Zeno Rocha */ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.Clipboard = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o