From 2bc9984ad00baf3a8dfe0941d3128b08b3b6c4b4 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Fri, 13 Jul 2012 20:11:47 +0200 Subject: [PATCH] ReadFile 'source' is now called 'in', fixes #32 --- examples/http/hello.coffee | 2 +- examples/http/hello.json | 2 +- examples/linecount/count.coffee | 2 +- examples/linecount/count.fbp | 2 +- examples/linecount/count.json | 4 ++-- test/ArrayPort.coffee | 4 ++-- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/examples/http/hello.coffee b/examples/http/hello.coffee index fd4490bbb..bcb77ca20 100644 --- a/examples/http/hello.coffee +++ b/examples/http/hello.coffee @@ -23,7 +23,7 @@ graph.addEdge "Greet User", "data", "Render", "options" graph.addEdge "Write Response", "out", "Send", "in" # Templating flow -graph.addInitial "#{__dirname}/hello.jade", "Read Template", "source" +graph.addInitial "#{__dirname}/hello.jade", "Read Template", "in" graph.addEdge "Read Template", "out", "Render", "template" graph.addEdge "Render", "out", "Write Response", "string" diff --git a/examples/http/hello.json b/examples/http/hello.json index 811eac842..df21f7e3b 100644 --- a/examples/http/hello.json +++ b/examples/http/hello.json @@ -120,7 +120,7 @@ "data": "/home/bergie/Projects/noflo/examples/http/hello.jade", "tgt": { "process": "Read Template", - "port": "source" + "port": "in" } } ] diff --git a/examples/linecount/count.coffee b/examples/linecount/count.coffee index 8e898c381..0aea18a66 100644 --- a/examples/linecount/count.coffee +++ b/examples/linecount/count.coffee @@ -21,6 +21,6 @@ graph.addEdge "Split by Lines", "out", "Count Lines", "in" graph.addEdge "Count Lines", "count", "Display", "in" # Kick the process of by sending filename to fileReader -graph.addInitial fileName, "Read File", "source" +graph.addInitial fileName, "Read File", "in" noflo.createNetwork graph diff --git a/examples/linecount/count.fbp b/examples/linecount/count.fbp index aa8b06ce6..485c6adc1 100644 --- a/examples/linecount/count.fbp +++ b/examples/linecount/count.fbp @@ -1,5 +1,5 @@ # Read a file -'package.json' -> SOURCE Read(ReadFile) +'package.json' -> IN Read(ReadFile) # Split the file contents by newlines Read() OUT -> IN Split(SplitStr) # Count the packets diff --git a/examples/linecount/count.json b/examples/linecount/count.json index 9594de31a..f88fe4a14 100644 --- a/examples/linecount/count.json +++ b/examples/linecount/count.json @@ -77,8 +77,8 @@ "data": "package.json", "tgt": { "process": "ReadFile", - "port": "source" + "port": "in" } } ] -} \ No newline at end of file +} diff --git a/test/ArrayPort.coffee b/test/ArrayPort.coffee index 101212754..28e1641e1 100644 --- a/test/ArrayPort.coffee +++ b/test/ArrayPort.coffee @@ -10,7 +10,7 @@ getBaseGraph = -> exports["test ArrayPort type"] = (test) -> network = getBaseGraph() - port = network.processes["Display"].component.inPorts["in"] + port = network.processes["Display"].component.inPorts["in"] test.equal port instanceof noflo.ArrayPort, true test.done() @@ -20,7 +20,7 @@ exports["test connecting to ArrayPorts"] = (test) -> network = getBaseGraph() test.equal network.connections.length, 2 - port = network.processes["Display"].component.inPorts["in"] + port = network.processes["Display"].component.inPorts["in"] test.equal port.sockets.length, 2 test.done()