rua 0.1.0-mswin32 → 0.1.1-mswin32
Sign up to get free protection for your applications and to get access to all the features.
- data/README.txt +38 -0
- data/lib/i386-mswin32/rua.so +0 -0
- metadata +4 -3
data/README.txt
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
= rua
|
2
|
+
|
3
|
+
Copyright (c) 2007 SUGAWARA Genki <sgwr_dts@yahoo.co.jp>
|
4
|
+
|
5
|
+
== Description
|
6
|
+
|
7
|
+
Rua is a library for using Lua under Ruby.
|
8
|
+
|
9
|
+
== Example
|
10
|
+
|
11
|
+
require 'rua'
|
12
|
+
|
13
|
+
rua = Rua.new
|
14
|
+
rua.openlibs(:all)
|
15
|
+
#rua.openlibs(:base, :package, :string)
|
16
|
+
#rua.secure = false
|
17
|
+
|
18
|
+
rua[:str] = 'xxx'
|
19
|
+
rua[:num] = 100
|
20
|
+
rua[:proc] = lambda do
|
21
|
+
puts 'Proc called.'
|
22
|
+
end
|
23
|
+
|
24
|
+
puts rua.eval(<<EOS)
|
25
|
+
print('hello Rua!')
|
26
|
+
print(str)
|
27
|
+
print(num)
|
28
|
+
proc()
|
29
|
+
|
30
|
+
f = function()
|
31
|
+
print('f() called.')
|
32
|
+
end
|
33
|
+
|
34
|
+
return true
|
35
|
+
EOS
|
36
|
+
|
37
|
+
f = rua[:f]
|
38
|
+
f.call
|
data/lib/i386-mswin32/rua.so
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
|
-
rubygems_version: 0.9.
|
2
|
+
rubygems_version: 0.9.2
|
3
3
|
specification_version: 1
|
4
4
|
name: rua
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2007-11-
|
6
|
+
version: 0.1.1
|
7
|
+
date: 2007-11-14 00:00:00 +09:00
|
8
8
|
summary: rua is a library for using Lua under Ruby.
|
9
9
|
require_paths:
|
10
10
|
- lib/i386-mswin32
|
@@ -29,6 +29,7 @@ post_install_message:
|
|
29
29
|
authors:
|
30
30
|
- winebarrel
|
31
31
|
files:
|
32
|
+
- README.txt
|
32
33
|
- lib/i386-mswin32/rua.so
|
33
34
|
test_files: []
|
34
35
|
|