Started by user charlie.gracie@gmail.com
Checkout:workspace / /home/hudson/genie.omr/.hudson/jobs/sync_omr_website_from_github_to_eclipse/workspace - hudson.remoting.LocalChannel@29b0878e
Using strategy: Default
Git Exe: git
Last Built Revision: Revision fd73004a58473a3de440126139692a5cd2acbe19 (origin/master)
Checkout:git-repo / /home/hudson/genie.omr/.hudson/jobs/sync_omr_website_from_github_to_eclipse/workspace/git-repo - hudson.remoting.LocalChannel@29b0878e
Fetching changes from the remote Git repository
Fetching upstream changes from https://github.com/eclipse/omr.website.git
Commencing build of Revision 7ba8ebff13d70be1a4fae7103e662036c9ee59f0 (origin/master)
Checking out Revision 7ba8ebff13d70be1a4fae7103e662036c9ee59f0 (origin/master)
Cleaning workspace
[workspace] $ /bin/bash -l /tmp/hudson4353873496720065349.sh
Rev: 7ba8ebff13d70be1a4fae7103e662036c9ee59f0
Configuration file: /jobs/genie.omr/sync_omr_website_from_github_to_eclipse/workspace/git-repo/_config.yml
Source: /jobs/genie.omr/sync_omr_website_from_github_to_eclipse/workspace/git-repo
Destination: /jobs/genie.omr/sync_omr_website_from_github_to_eclipse/workspace/git-repo/_site
Incremental build: disabled. Enable with --incremental
Generating...
done in 1.611 seconds.
Auto-regeneration: disabled. Use --watch to enable.
HEAD is now at 717ffae Generated from commit: https://github.com/eclipse/omr.website/commit/fd73004a58473a3de440126139692a5cd2acbe19
diff --git a/feed.xml b/feed.xml
index ee321f6..8dcdf54 100644
--- a/feed.xml
+++ b/feed.xml
@@ -5,8 +5,8 @@
/omr/
- Wed, 18 Jan 2017 13:24:25 -0500
- Wed, 18 Jan 2017 13:24:25 -0500
+ Tue, 07 Feb 2017 15:16:14 -0500
+ Tue, 07 Feb 2017 15:16:14 -0500Jekyll v3.3.0
diff --git a/js/retina.js b/js/retina.js
index a926142..a9b5e87 100644
--- a/js/retina.js
+++ b/js/retina.js
@@ -1,3 +1,218 @@
-// retina.js, a high-resolution image swapper (http://retinajs.com), v0.0.2
+/*!
+ * Retina.js v2.0.0
+ *
+ * Copyright 2016 Axial, LLC
+ * Released under the MIT license
+ *
+ * Retina.js is an open source script that makes it easy to serve
+ * high-resolution images to devices with retina displays.
+ */
+'use strict';
-(function(){function t(e){this.path=e;var t=this.path.split("."),n=t.slice(0,t.length-1).join("."),r=t[t.length-1];this.at_2x_path=n+"@2x."+r}function n(e){this.el=e,this.path=new t(this.el.getAttribute("src"));var n=this;this.path.check_2x_variant(function(e){e&&n.swap()})}var e=typeof exports=="undefined"?window:exports;e.RetinaImagePath=t,t.confirmed_paths=[],t.prototype.is_external=function(){return!!this.path.match(/^https?\:/i)&&!this.path.match("//"+document.domain)},t.prototype.check_2x_variant=function(e){var n,r=this;if(this.is_external())return e(!1);if(this.at_2x_path in t.confirmed_paths)return e(!0);n=new XMLHttpRequest,n.open("HEAD",this.at_2x_path),n.onreadystatechange=function(){return n.readyState!=4?e(!1):n.status>=200&&n.status<=399?(t.confirmed_paths.push(r.at_2x_path),e(!0)):e(!1)},n.send()},e.RetinaImage=n,n.prototype.swap=function(e){function n(){t.el.complete?(t.el.setAttribute("width",t.el.offsetWidth),t.el.setAttribute("height",t.el.offsetHeight),t.el.setAttribute("src",e)):setTimeout(n,5)}typeof e=="undefined"&&(e=this.path.at_2x_path);var t=this;n()},e.devicePixelRatio>1&&(window.onload=function(){var e=document.getElementsByTagName("img"),t=[],r,i;for(r=0;r 1) {
+ var newSrc = src.replace(srcReplace, '@' + cap + 'x$1');
+ setSourceIfAvailable(image, newSrc);
+ }
+}
+
+/**
+ * Performs an image url swap on a given image with a provided url.
+ *
+ * @param {Element} image An image in the DOM.
+ * @param {String} src The original image source attribute.
+ * @param {String} hdsrc The path for a 2x image.
+ *
+ * @return {undefined}
+ */
+function manualSwapImage(image, src, hdsrc) {
+ if (environment > 1) {
+ setSourceIfAvailable(image, hdsrc);
+ }
+}
+
+/**
+ * Collects all images matching our selector, and converts our
+ * NodeList into an Array so that Array methods will be available to it.
+ *
+ * @return {Array} Contains all elements matching our selector.
+ */
+function getImages() {
+ return typeof document !== 'undefined' ? Array.prototype.slice.call(document.querySelectorAll(selector)) : [];
+}
+
+/**
+ * Converts a string like "url(hello.png)" into "hello.png".
+ *
+ * @param {Element} img An HTML element with a background image.
+ *
+ * @return {String}
+ */
+function cleanBgImg(img) {
+ return img.style.backgroundImage.replace(inlineReplace, '$2');
+}
+
+/**
+ * Gets all participating images and dynamically swaps out each one for its
+ * retina equivalent taking into account the environment capabilities and
+ * the densities for which the user has provided images.
+ *
+ * @return {undefined}
+ */
+function retina() {
+ getImages().forEach(function (img) {
+ var isImg = img.nodeName.toLowerCase() === 'img';
+ var src = isImg ? img.getAttribute('src') : cleanBgImg(img);
+ var rjs = img.getAttribute('data-rjs');
+ var rjsIsNumber = !isNaN(parseInt(rjs, 10));
+
+ /*
+ * If the user provided a number, dynamically swap out the image.
+ * If the user provided a url, do it manually.
+ */
+ if (rjsIsNumber) {
+ dynamicSwapImage(img, src, rjs);
+ } else {
+ manualSwapImage(img, src, rjs);
+ }
+ });
+}
+
+/*
+ * If this environment has `window`, activate the plugin.
+ */
+if (hasWindow) {
+ window.addEventListener('load', retina);
+ window.retinajs = retina;
+}
+
+exports.default = retina;
\ No newline at end of file
[master 8412b4f] Generated from commit: https://github.com/eclipse/omr.website/commit/7ba8ebff13d70be1a4fae7103e662036c9ee59f0
2 files changed, 220 insertions(+), 5 deletions(-)
rewrite js/retina.js (99%)
On branch master
Your branch is ahead of 'origin/master' by 1 commit.
(use "git push" to publish your local commits)
nothing to commit, working directory clean
To /gitroot/www.eclipse.org/omr.git/
717ffae..8412b4f master -> master
Finished: SUCCESS