Sha256: 4cd08f7a71f0c602b0fbc7e4248f4ed6474ec55d1b1bcef0824e698c30c48767

Contents?: true

Size: 751 Bytes

Versions: 3

Compression:

Stored size: 751 Bytes

Contents

Zepto ($) ->
  ManualClone.init()

  Build.all (builds) ->
    $.each builds, (i,d) ->
      Build.List.add d.build
    $("#loading").remove()

  Bait.subscribe
    global:
      new_build: (data) ->
        Build.List.add data.build
    build:
      output: (id, text) ->
        pre = Build.find(id).find('pre')
        pre.append ansi2html(text)
      status: (id, text) ->
        header = Build.find(id).find(".header")
        header.find(".status").html text
        header.attr "class", "header #{text}"
      remove: (id) ->
        Build.find(id).remove()
      simplecov: (id, supported) ->
        link = Build.find(id).find('.simplecov')
        link.attr 'href', Build.SimpleCov.url(id)
        link.text Build.SimpleCov.text(supported)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bait-0.5.6 app/js/main.coffee
bait-0.5.5 app/js/main.coffee
bait-0.5.4 app/js/main.coffee