Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit 9d149ee6e08affea26883332c628a02dc1b544c0 @jmettraux committed Sep 10, 2009
Showing with 85 additions and 0 deletions.
  1. +3 −0 README.rdoc
  2. +43 −0 lib/ruote/sin/app.rb
  3. +32 −0 lib/ruote/sin/resources/processes.rb
  4. +7 −0 start.rb
  5. BIN www/public/images/ruote.png
@@ -0,0 +1,3 @@
+
+= ruote-sin
+
@@ -0,0 +1,43 @@
+#--
+# Copyright (c) 2005-2009, John Mettraux, jmettraux@gmail.com
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+#
+# Made in Japan.
+#++
+
+require 'sinatra'
+
+
+module Ruote
+module Sin
+
+ class App < Sinatra::Base
+
+ sin_dir = File.expand_path(File.join(File.dirname(__FILE__), *%w[ .. ] * 3))
+
+ set(:root, File.join(sin_dir, 'www'))
+
+ res_dir = File.join(sin_dir, *%w[ lib ruote sin resources ])
+
+ Dir[File.join(res_dir, '*.rb')].each { |path| load(path) }
+ end
+end
+end
+
@@ -0,0 +1,32 @@
+#--
+# Copyright (c) 2005-2009, John Mettraux, jmettraux@gmail.com
+#
+# Permission is hereby granted, free of charge, to any person obtaining a copy
+# of this software and associated documentation files (the "Software"), to deal
+# in the Software without restriction, including without limitation the rights
+# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+# copies of the Software, and to permit persons to whom the Software is
+# furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+# THE SOFTWARE.
+#
+# Made in Japan.
+#++
+
+class Ruote::Sin::App
+
+ get '/processes' do
+
+ 'processes'
+ end
+end
+
@@ -0,0 +1,7 @@
+
+$:.unshift('lib')
+
+require 'ruote/sin/app'
+
+Ruote::Sin::App.run!
+
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d149ee

Please sign in to comment.