Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Auto corrected by following quotes #30

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions app/assets/javascripts/announcements.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
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
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];
Expand All @@ -25,5 +25,5 @@ function readCookie(name) {
}

function eraseCookie(name) {
createCookie(name, "", -1);
createCookie(name, '', -1);
}
12 changes: 6 additions & 6 deletions app/assets/javascripts/clipboard_buttons.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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');
});
});
12 changes: 6 additions & 6 deletions app/assets/javascripts/pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,22 +39,22 @@ $(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) {
var content;
content = [];
jQuery.each(files, function(idx, item) {
if ('STANDARD' === item.StorageClass) {
return content.push("<li><a href='https://s3-us-west-2.amazonaws.com/rubygems-dumps/" + item.Key + "'>" + (item.LastModified.replace('.000Z', '')) + " (" + (bytesToSize(item.Size)) + ")</a></li>");
return content.push('<li><a href=\'https://s3-us-west-2.amazonaws.com/rubygems-dumps/' + item.Key + '\'>' + (item.LastModified.replace('.000Z', '')) + ' (' + (bytesToSize(item.Size)) + ')</a></li>');
}
});
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');
Expand All @@ -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');
});
2 changes: 1 addition & 1 deletion app/assets/javascripts/search.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
if($("#advanced-search").length){
if($('#advanced-search').length){
var $main = $('#home_query');
var $name = $('input#name');
var $summary = $('input#summary');
Expand Down
12 changes: 6 additions & 6 deletions lib/assets/javascripts/clipboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
(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<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var matches = require('matches-selector')

module.exports = function (element, selector, checkYoSelf) {
Expand All @@ -16,7 +16,7 @@ module.exports = function (element, selector, checkYoSelf) {
}
}

},{"matches-selector":2}],2:[function(require,module,exports){
},{'matches-selector':2}],2:[function(require,module,exports){

/**
* Element prototype.
Expand Down Expand Up @@ -102,7 +102,7 @@ function listener(element, selector, type, callback) {

module.exports = delegate;

},{"closest":1}],4:[function(require,module,exports){
},{'closest':1}],4:[function(require,module,exports){
/**
* Check if argument is a HTML element.
*
Expand Down Expand Up @@ -250,7 +250,7 @@ function listenSelector(selector, type, callback) {

module.exports = listen;

},{"./is":4,"delegate":3}],6:[function(require,module,exports){
},{'./is':4,'delegate':3}],6:[function(require,module,exports){
function select(element) {
var selectedText;

Expand Down Expand Up @@ -582,7 +582,7 @@ var ClipboardAction = (function () {
exports['default'] = ClipboardAction;
module.exports = exports['default'];

},{"select":6}],9:[function(require,module,exports){
},{'select':6}],9:[function(require,module,exports){
'use strict';

exports.__esModule = true;
Expand Down Expand Up @@ -741,5 +741,5 @@ function getAttributeValue(suffix, element) {
exports['default'] = Clipboard;
module.exports = exports['default'];

},{"./clipboard-action":8,"good-listener":5,"tiny-emitter":7}]},{},[9])(9)
},{'./clipboard-action':8,'good-listener':5,'tiny-emitter':7}]},{},[9])(9)
});