Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
138 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,78 @@ | ||
|
||
not much for now. | ||
= Reshell | ||
|
||
|
||
== what's that ? | ||
|
||
some kind of shell facility for the browser, inspired by the fine http://goosh.org | ||
|
||
|
||
== how can I use it ? | ||
|
||
It's a javascript | ||
|
||
sudo gem install jsmin | ||
git clone git://github.com/jmettraux/reshell.git | ||
cd reshell | ||
rake minify | ||
|
||
Then you'll have a reshell-min.js file ready for your web app tree. | ||
|
||
A simple example : http://github.com/jmettraux/reshell/tree/master/public/reshell.html | ||
|
||
It boils down to : | ||
|
||
<script src="/js/reshell.js"></script> | ||
|
||
<div id="reshell_stdout"></div> | ||
<form onsubmit="reshell.eval(); return false;"> | ||
$ <input id="reshell_stdin" type="text" /> | ||
</form> | ||
|
||
<script> | ||
var reshell = new Reshell('reshell'); | ||
reshell.def("alert", function(params) { alert("Aaaaalert !"); }; | ||
reshell.focus(); | ||
</script> | ||
|
||
|
||
== base commands | ||
|
||
clear clears the shell | ||
env displays the current bindings in the shell environment | ||
|
||
|
||
== mailing list | ||
|
||
On the rufus-ruby list[http://groups.google.com/group/rufus-ruby] : | ||
|
||
http://groups.google.com/group/rufus-ruby | ||
|
||
|
||
== issue tracker | ||
|
||
http://rubyforge.org/tracker/?atid=18584&group_id=4812&func=browse | ||
|
||
|
||
== source | ||
|
||
http://github.com/jmettraux/reshell | ||
|
||
git clone git://github.com/jmettraux/reshell.git | ||
|
||
|
||
== author | ||
|
||
John Mettraux, jmettraux@gmail.com | ||
http://jmettraux.wordpress.com | ||
|
||
|
||
== the rest of Rufus | ||
|
||
http://rufus.rubyforge.org | ||
|
||
|
||
== license | ||
|
||
MIT | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
|
||
require 'rubygems' | ||
|
||
require 'rake' | ||
require 'rake/clean' | ||
#require 'rake/packagetask' | ||
#require 'rake/gempackagetask' | ||
#require 'rake/rdoctask' | ||
require 'rake/testtask' | ||
|
||
|
||
# | ||
# MINIFYING | ||
|
||
require 'rubygems' | ||
require 'jsmin' # sudo gem install jsmin | ||
|
||
SOURCE = 'reshell.js' | ||
|
||
|
||
# | ||
# task minify | ||
# | ||
task :minify do | ||
|
||
target = File.open "reshell-min.js", "w" | ||
|
||
File.open "public/js/#{SOURCE}", "r" do |sourcefile| | ||
target.puts(JSMin.minify(sourcefile)) | ||
end | ||
|
||
puts | ||
puts "..minified to reshell-min.js" | ||
puts | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters