Sha256: d5b85b2a4e532690e65dc497820e7fb6954b5fcbd4e61c8bb251d829f4b42ee6

Contents?: true

Size: 799 Bytes

Versions: 18

Compression:

Stored size: 799 Bytes

Contents

# ===========================================================================
# Project:   Abbot - SproutCore Build Tools
# Copyright: ©2009 Apple Inc.
#            portions copyright @2006-2009 Sprout Systems, Inc.
#            and contributors
# ===========================================================================

require "sproutcore/builders/base"

module SC

  # Builds an HTML files.  This will setup an HtmlContext and then invokes
  # the render engines for each source before finally rendering the layout.
  class Builder::TestIndex < Builder::Base

    def build(dst_path)
      require 'json'
      items = entry[:source_entries].map do |e|
        { "filename" => e[:filename].ext(''), "url" => e[:url] }
      end
      writelines dst_path, [items.to_json]
    end

  end

end

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
sproutcore-1.4.4-java lib/sproutcore/builders/test_index.rb
sproutcore-1.4.4 lib/sproutcore/builders/test_index.rb
sproutcore-1.4.3.1 lib/sproutcore/builders/test_index.rb
sproutcore-1.4.3-java lib/sproutcore/builders/test_index.rb
sproutcore-1.4.3 lib/sproutcore/builders/test_index.rb
sproutcore-1.4.2-java lib/sproutcore/builders/test_index.rb
sproutcore-1.4.2 lib/sproutcore/builders/test_index.rb
sproutcore-1.4.1-java lib/sproutcore/builders/test_index.rb
sproutcore-1.4.1 lib/sproutcore/builders/test_index.rb
sproutcore-1.4.0-java lib/sproutcore/builders/test_index.rb
sproutcore-1.4.0 lib/sproutcore/builders/test_index.rb
sproutcore-1.4.0.rc.5 lib/sproutcore/builders/test_index.rb
sproutcore-1.4.0.rc.4 lib/sproutcore/builders/test_index.rb
sproutcore-1.4.0.rc.3 lib/sproutcore/builders/test_index.rb
sproutcore-1.4.0.rc.2 lib/sproutcore/builders/test_index.rb
sproutcore-1.4.0.rc lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1049.pre.2 lib/sproutcore/builders/test_index.rb
sproutcore-1.0.1049.pre.1 lib/sproutcore/builders/test_index.rb