Sha256: 5be523e6c86ab1b3db660927fabc5251772e085b672e52a94d69db2df26ba33d

Contents?: true

Size: 750 Bytes

Versions: 5

Compression:

Stored size: 750 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

5 entries across 5 versions & 1 rubygems

Version Path
bait-0.5.13 app/js/main.coffee
bait-0.5.12 app/js/main.coffee
bait-0.5.11 app/js/main.coffee
bait-0.5.10 app/js/main.coffee
bait-0.5.9 app/js/main.coffee