Skip to content

Commit

Permalink
moved README to rdoc
Browse files Browse the repository at this point in the history
still learning git
  • Loading branch information
bookshelfdave committed Mar 2, 2009
1 parent 95a9fe1 commit db73b27
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 5 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
*~
*.swp

9 changes: 6 additions & 3 deletions README → README.rdoc
Expand Up @@ -17,7 +17,7 @@
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA


0) Whats the deal?
== Introduction

* The initial goal:

Expand All @@ -30,16 +30,19 @@
Visually create all sorts of things, ranging from sysadmin to simple web tools.


1) So how does it work?
== So how does it work?

The Ruby library isn't really designed to be used by a developer. Rather, a Java based GUI (or at least something platform independent) will allow the developer to visually build a program (or "network"). Clicking a Run button will generate Ruby code on the fly, which will then be run inside of JRuby.


2) How much of this works?
== How much of this works?
I wrote alot of the GUI for this right after I had surgery on my knee... So, I won't be releasing the GUI code for awhile until I figure out exactly how it works :-) Those painkillers were very nice!

So, at this point, I would just like to work on the Ruby library and make it rock solid before re-implementing the GUI.

== It almost sounds interesting!
Then send me an email and give me a hand! Only people with a sense of humor please :-)

Cheers -
Dave Parfitt
diparfitt at g mail daht calm
Expand Down
4 changes: 3 additions & 1 deletion mm/mm.rb
Expand Up @@ -25,6 +25,8 @@ module MM
# 1) instantiating the Op doesn't cause it to actually do anything
# 2) config + default values cannot be null. They need to return a default
# value of the correct type

# when i get beyond simple tests, this will probably have to be threaded
class Network
attr_accessor :ops
attr_accessor :pipesout
Expand Down Expand Up @@ -214,7 +216,7 @@ def initialize

# i would like to put these methods somewhere else...
def Op.listops
@@configs.keys.join(input ",")
@@configs.keys.join(input, ",")
end

def Op.getOpInputs(opname)
Expand Down
17 changes: 16 additions & 1 deletion test/unittests.rb
@@ -1,7 +1,6 @@
#
# MetaMatter
# Copyright (C) 2009 Dave Parfitt
# Create pipe out as
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
Expand Down Expand Up @@ -118,4 +117,20 @@ def test_pipeout
net.run
assert(net.pipesout[net.getopbytitle("pipeout1").opid].pop == "Foo")
end

def test_pipeout2
net = MM::Network.new do
foo = create :StartupEcho
output = create :PipeOut, "pipeout1"
foo.echoin.queue("1")
foo.echoin.queue("2")
foo.echoin.queue("3")
foo.echoout >> output.datain
end
net.run
assert(net.pipesout[net.getopbytitle("pipeout1").opid].shift == "Foo")
assert(net.pipesout[net.getopbytitle("pipeout1").opid].shift == "1")
assert(net.pipesout[net.getopbytitle("pipeout1").opid].shift == "2")
assert(net.pipesout[net.getopbytitle("pipeout1").opid].shift == "3")
end
end

0 comments on commit db73b27

Please sign in to comment.