Sha256: 60c0aae3cd4bb3acb3943ca30f2abaa6c75db667298def903efa083f50584798

Contents?: true

Size: 1.72 KB

Versions: 6

Compression:

Stored size: 1.72 KB

Contents

{:uriI"file:///Users/eisuke-oishi/work/kuroko2_oss/app/assets/javascripts/kuroko2/definition_linker.js?type=application/javascript&pipeline=self&id=8a6c95be467bd4976c5d980619423bff3318eda3252fec88a169f2aa9455a64c:ET:load_pathI"@/Users/eisuke-oishi/work/kuroko2_oss/app/assets/javascripts;T:
filenameI"]/Users/eisuke-oishi/work/kuroko2_oss/app/assets/javascripts/kuroko2/definition_linker.js;T:	nameI"kuroko2/definition_linker;T:logical_pathI"&kuroko2/definition_linker.self.js;T:content_typeI"application/javascript;T:sourceI"jjQuery(function ($) {
  function setDeifinitionLink(script) {
    script = script.replace(/sub_process:\s+(\d+)\s*\n/, function(match, jobId) {
      return '<a href="/definitions/' + jobId + '">' + match + '</a>';
    });

    script = script.replace(/^wait:\s*(.+)\s*$/gm, function(match, option) {
      return 'wait: ' + option.replace(/(\d+)\/\w+/g, function(match, jobId){
	return '<a href="/definitions/' + jobId + '">' + match + '</a>';
      });
    });

    return script
  }

  $('pre.kuroko-script').each(function(){
    var script = $(this).html();
    $(this).html(setDeifinitionLink(script));
  });
});
;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"kfile-digest:///Users/eisuke-oishi/work/kuroko2_oss/app/assets/javascripts/kuroko2/definition_linker.js;TTF:
requiredo;;}F:stubbedo;;}F:
linkso;;}F:charsetI"
utf-8;F:digest"%U!ߴ0FD^w=:lengthij:dependencies_digest"%YS-;<ĕ)3!^":idI"E8a6c95be467bd4976c5d980619423bff3318eda3252fec88a169f2aa9455a64c;F:
mtimel+KX

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kuroko2-0.3.4 spec/dummy/tmp/cache/assets/sprockets/v3.0/PH/PhfLv2iKMEStmV14z7le3dKF-XT0UbMmL0AVyMbBK74.cache
kuroko2-0.3.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/PH/PhfLv2iKMEStmV14z7le3dKF-XT0UbMmL0AVyMbBK74.cache
kuroko2-0.3.2 spec/dummy/tmp/cache/assets/sprockets/v3.0/PH/PhfLv2iKMEStmV14z7le3dKF-XT0UbMmL0AVyMbBK74.cache
kuroko2-0.3.1 spec/dummy/tmp/cache/assets/sprockets/v3.0/PH/PhfLv2iKMEStmV14z7le3dKF-XT0UbMmL0AVyMbBK74.cache
kuroko2-0.3.0 spec/dummy/tmp/cache/assets/sprockets/v3.0/PH/PhfLv2iKMEStmV14z7le3dKF-XT0UbMmL0AVyMbBK74.cache
kuroko2-0.2.3 spec/dummy/tmp/cache/assets/sprockets/v3.0/PH/PhfLv2iKMEStmV14z7le3dKF-XT0UbMmL0AVyMbBK74.cache