Permalink
Browse files

Order of prerequisites was backwards. Minor fix. Bumping to 0.2.1

  • Loading branch information...
KrisJordan committed Jan 7, 2011
1 parent 5d86d78 commit 4ca75d5005bfc74864efc7b86f14dc9172d384a8
Showing with 2 additions and 5 deletions.
  1. +1 −2 docs/rules.html
  2. +0 −1 lib/rules.js
  3. +1 −1 package.json
  4. +0 −1 src/rules.coffee
View
@@ -1,4 +1,4 @@
-<!DOCTYPE html> <html> <head> <title>rules.coffee</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <div id="jump_to"> Jump To &hellip; <div id="jump_wrapper"> <div id="jump_page"> <a class="source" href="icing.html"> icing.coffee </a> <a class="source" href="rules.html"> rules.coffee </a> </div> </div> </div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> rules.coffee </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">&#182;</a> </div> <p><strong>rules</strong> models task pipelines using directed acyclic graph (<strong>dag.coffee</strong>) primitives.
+<!DOCTYPE html> <html> <head> <title>rules.coffee</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <link rel="stylesheet" media="all" href="docco.css" /> </head> <body> <div id="container"> <div id="background"></div> <table cellpadding="0" cellspacing="0"> <thead> <tr> <th class="docs"> <h1> rules.coffee </h1> </th> <th class="code"> </th> </tr> </thead> <tbody> <tr id="section-1"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-1">&#182;</a> </div> <p><strong>rules</strong> models task pipelines using directed acyclic graph (<strong>dag.coffee</strong>) primitives.
Following in the heritage of <em>make</em>, rules have a target, prerequisites, and a recipe.
Unlike <em>make</em> target is a symbolic name and prerequisites can refer to other rules or to
files on disk.</p>
@@ -102,7 +102,6 @@
<span class="nv">constructor: </span><span class="nf">(@target, @prereqs, @recipe) -&gt;</span>
<span class="k">if</span> <span class="nx">_</span><span class="p">(</span><span class="nx">@recipe</span><span class="p">).</span><span class="nx">isFunction</span><span class="p">()</span>
<span class="vi">@recipe = </span><span class="k">new</span> <span class="nx">Recipe</span> <span class="nx">@recipe</span>
- <span class="vi">@prereqs = </span><span class="nx">@prereqs</span><span class="p">.</span><span class="nx">reverse</span><span class="p">()</span> <span class="c1"># Because we push they&#39;ll get reversed again</span>
<span class="k">class</span> <span class="nx">Recipe</span>
<span class="nv">constructor: </span><span class="p">(</span><span class="vi">@recipe = </span><span class="p">(</span><span class="o">-&gt;</span><span class="p">),</span> <span class="vi">@outputs = </span><span class="p">(</span><span class="o">-&gt;</span><span class="p">[]))</span> <span class="o">-&gt;</span></pre></div> </td> </tr> <tr id="section-8"> <td class="docs"> <div class="pilwrap"> <a class="pilcrow" href="#section-8">&#182;</a> </div> <h3>Additional Graph Nodes</h3> </td> <td class="code"> <div class="highlight"><pre><span class="k">class</span> <span class="nx">RecipeNode</span> <span class="k">extends</span> <span class="nx">Node</span>
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -2,7 +2,7 @@
"name": "icing",
"description": "Dependency management for cake command.",
"keywords": ["cake","dependency","build","watch"],
- "version": "0.2.0",
+ "version": "0.2.1",
"repository": "git://github.com/KrisJordan/icing.git",
"author": "Kris Jordan",
"directories": {
View
@@ -116,7 +116,6 @@ class Rule
constructor: (@target, @prereqs, @recipe) ->
if _(@recipe).isFunction()
@recipe = new Recipe @recipe
- @prereqs = @prereqs.reverse() # Because we push they'll get reversed again
class Recipe
constructor: (@recipe = (->), @outputs = (->[])) ->

0 comments on commit 4ca75d5

Please sign in to comment.