Sha256: 5d59ecae14b3b59fdaf90d1d203f55528619132af18399c101affc3845bef4e6

Contents?: true

Size: 1.81 KB

Versions: 7

Compression:

Stored size: 1.81 KB

Contents

{:uriI"file:///Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js?type=application/javascript&pipeline=self&id=0cff6d5013de99779ce4e64092ad3a0d03a088a6fc7d3f39117e24d404a597ec:ET:load_pathI";/Users/leandro/src/job_notifier/app/assets/javascripts;T:
filenameI"T/Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js;T:	nameI"job_notifier/notifier;T:logical_pathI""job_notifier/notifier.self.js;T:content_typeI"application/javascript;T:sourceI"var JobNotifier = JobNotifier || {};

(function(o){
    o.init = function() {
      var body = document.querySelector("body");
      o.jobIdentifier = body.dataset.identifier;

      setInterval(poll, 5000);
    };

    o.poll = function() {
      var oReq = new XMLHttpRequest();
      oReq.onload = reqListener;
      oReq.onerror = reqError;
      oReq.open('get', '/job_notifier/jobs.json?identifier=' + o.jobIdentifier, true);
      oReq.send();
    };

    o.reqListener = function() {
      var data = JSON.parse(this.responseText);
      console.log(data);
    };

    o.reqError = function(err) {
      console.error('error', err);
    };
})(JobNotifier);

console.log(JobNotifier);

document.addEventListener("DOMContentLoaded", JobNotifier.init);
;T:
metadata{:dependencieso:Set:
@hash{
I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"Zprocessors:type=application/javascript&file_type=application/javascript&pipeline=self;TTI"bfile-digest:///Users/leandro/src/job_notifier/app/assets/javascripts/job_notifier/notifier.js;TT:
requiredo;;{:stubbedo;;{:
linkso;;{:charsetI"
utf-8;F:digest"%5Z0lLm7KISf:lengthi:dependencies_digest"%߮;uEfXv599:yNvDX:idI"E0cff6d5013de99779ce4e64092ad3a0d03a088a6fc7d3f39117e24d404a597ec;F:
mtimel+	,W

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
job_notifier-1.4.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/8m_Z9a3gRX1jJm-yt7zU5k-Gapl9LHkAOa6zv1o5Xc8.cache
job_notifier-1.1.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/8m_Z9a3gRX1jJm-yt7zU5k-Gapl9LHkAOa6zv1o5Xc8.cache
job_notifier-1.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/8m_Z9a3gRX1jJm-yt7zU5k-Gapl9LHkAOa6zv1o5Xc8.cache
job_notifier-1.0.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/8m_Z9a3gRX1jJm-yt7zU5k-Gapl9LHkAOa6zv1o5Xc8.cache
job_notifier-0.2.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/8m_Z9a3gRX1jJm-yt7zU5k-Gapl9LHkAOa6zv1o5Xc8.cache
job_notifier-0.2.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/8m_Z9a3gRX1jJm-yt7zU5k-Gapl9LHkAOa6zv1o5Xc8.cache
job_notifier-0.1.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/8m_Z9a3gRX1jJm-yt7zU5k-Gapl9LHkAOa6zv1o5Xc8.cache