Skip to content
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.

Commit

Permalink
eval() working
Browse files Browse the repository at this point in the history
  • Loading branch information
jmettraux committed Mar 11, 2009
0 parents commit 734d0d8
Show file tree
Hide file tree
Showing 13 changed files with 758 additions and 0 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@

= rufus-lua CHANGELOG.txt


== rufus-lua - 0.1.0 not yet released

- todo : implemented #delete_keys_with_prefix (naive impl for tables)

18 changes: 18 additions & 0 deletions CREDITS.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@

= CREDITS.txt rufus-lua gem


== authors

John Mettraux http://jmettraux.wordpress.com

== inspiration

http://rubyluabridge.rubyforge.org/

== finally

many thanks to the authors of ruby-ffi

http://kenai.com/projects/ruby-ffi

21 changes: 21 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@

Copyright (c) 2009, John Mettraux, [email protected]

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.

68 changes: 68 additions & 0 deletions README.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@

= rufus-lua

Lua embedded in Ruby, via ruby FFI


== other Ruby and Lua bridges / connectors


http://rubyluabridge.rubyforge.org/
http://raa.ruby-lang.org/project/ruby-lua


== nada

surf


== dependencies

the ruby gem 'ffi'


== mailing list

On the rufus-ruby list :

http://groups.google.com/group/rufus-ruby


== issue tracker

http://rubyforge.org/tracker/?atid=18584&group_id=4812&func=browse


== irc

irc.freenode.net #ruote


== source

http://github.com/jmettraux/rufus-lua

git clone git://github.com/jmettraux/rufus-lua.git


== credits

many thanks to the authors of Ruby FFI

http://kenai.com/projects/ruby-ffi


== authors

John Mettraux, [email protected], http://jmettraux.wordpress.com


== the rest of Rufus

http://rufus.rubyforge.org


== license

MIT

102 changes: 102 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@

require 'rubygems'

require 'fileutils'
require 'rake'
require 'rake/clean'
require 'rake/packagetask'
require 'rake/gempackagetask'
require 'rake/testtask'

#require 'rake/rdoctask'
require 'hanna/rdoctask'

load 'rufus-lua.gemspec'

#
# tasks

CLEAN.include('pkg', 'tmp', 'html')

task :default => [ :clean, :repackage ]


#
# SPECING

task :spec do
load File.dirname(__FILE__) + '/spec/spec.rb'
end


#
# TESTING
#Rake::TestTask.new(:test) do |t|
# t.libs << 'lib'
# t.libs << 'test'
# t.test_files = FileList['test/test.rb']
# t.verbose = true
#end
task :test => :spec

#
# PACKAGING

Rake::GemPackageTask.new($gemspec) do |pkg|
#pkg.need_tar = true
end

Rake::PackageTask.new('rufus-lua', '0.1.0') do |pkg|

pkg.need_zip = true
pkg.package_files = FileList[
'Rakefile',
'*.txt',
'lib/**/*',
'spec/**/*',
'test/**/*'
].to_a
#pkg.package_files.delete("MISC.txt")
class << pkg
def package_name
"#{@name}-#{@version}-src"
end
end
end


#
# DOCUMENTATION

Rake::RDocTask.new do |rd|

rd.main = 'README.txt'
rd.rdoc_dir = 'html/rufus-lua'
rd.rdoc_files.include(
'README.txt',
'CHANGELOG.txt',
'LICENSE.txt',
'CREDITS.txt',
'lib/**/*.rb')
#rd.rdoc_files.exclude('lib/tokyotyrant.rb')
rd.title = 'rufus-lua rdoc'
rd.options << '-N' # line numbers
rd.options << '-S' # inline source
end

task :rrdoc => [ :rdoc ] do
FileUtils.cp('doc/rdoc-style.css', 'html/rufus-lua/')
end


#
# WEBSITE

task :upload_website => [ :clean, :rrdoc ] do

account = '[email protected]'
webdir = '/var/www/gforge-projects/rufus'

sh "rsync -azv -e ssh html/rufus-lua #{account}:#{webdir}/"
end

Loading

0 comments on commit 734d0d8

Please sign in to comment.