ruby-internal 0.8.3 → 0.8.4
Sign up to get free protection for your applications and to get access to all the features.
- data/ext/internal/yarv-headers/addr2line.h +21 -0
- data/ext/internal/yarv-headers/atomic.h +56 -0
- data/ext/internal/yarv-headers/constant.h +34 -0
- data/ext/internal/yarv-headers/debug.h +41 -0
- data/ext/internal/yarv-headers/dln.h +50 -0
- data/ext/internal/yarv-headers/encdb.h +167 -0
- data/ext/internal/yarv-headers/eval_intern.h +234 -0
- data/ext/internal/yarv-headers/gc.h +98 -0
- data/ext/internal/yarv-headers/id.h +175 -0
- data/ext/internal/yarv-headers/internal.h +232 -0
- data/ext/internal/yarv-headers/iseq.h +125 -0
- data/ext/internal/yarv-headers/method.h +105 -0
- data/ext/internal/yarv-headers/node.h +503 -0
- data/ext/internal/yarv-headers/parse.h +186 -0
- data/ext/internal/yarv-headers/regenc.h +219 -0
- data/ext/internal/yarv-headers/regint.h +850 -0
- data/ext/internal/yarv-headers/regparse.h +362 -0
- data/ext/internal/yarv-headers/revision.h +1 -0
- data/ext/internal/yarv-headers/thread_pthread.h +51 -0
- data/ext/internal/yarv-headers/thread_win32.h +40 -0
- data/ext/internal/yarv-headers/timev.h +21 -0
- data/ext/internal/yarv-headers/transcode_data.h +117 -0
- data/ext/internal/yarv-headers/transdb.h +189 -0
- data/ext/internal/yarv-headers/version.h +52 -0
- data/ext/internal/yarv-headers/vm_core.h +756 -0
- data/ext/internal/yarv-headers/vm_exec.h +184 -0
- data/ext/internal/yarv-headers/vm_insnhelper.h +220 -0
- data/ext/internal/yarv-headers/vm_opts.h +51 -0
- data/test/test_module.rb +3 -1
- data/test/test_node.rb +1 -1
- metadata +30 -3
- data/lib/internal/object/as_code.rb +0 -10
data/test/test_module.rb
CHANGED
@@ -35,9 +35,11 @@ class TC_Module < Test::Unit::TestCase
|
|
35
35
|
m = method(:foo)
|
36
36
|
n = m.body
|
37
37
|
klass = Class.new
|
38
|
-
klass.
|
38
|
+
klass.class_eval do
|
39
39
|
add_method(:foo, n, Noex::PUBLIC)
|
40
40
|
end
|
41
|
+
p klass.methods.sort
|
42
|
+
p klass.instance_methods.sort
|
41
43
|
obj = klass.new
|
42
44
|
assert_equal 42, obj.foo
|
43
45
|
end
|
data/test/test_node.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-internal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-05-
|
12
|
+
date: 2012-05-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rubypp
|
@@ -55,7 +55,6 @@ files:
|
|
55
55
|
- lib/internal/vm/constants.rb
|
56
56
|
- lib/internal/object.rb
|
57
57
|
- lib/internal/vm.rb
|
58
|
-
- lib/internal/object/as_code.rb
|
59
58
|
- lib/internal/thread.rb
|
60
59
|
- lib/internal/classtree.rb
|
61
60
|
- lib/internal/noex.rb
|
@@ -107,6 +106,34 @@ files:
|
|
107
106
|
- ext/internal/node/ruby_internal_node.h
|
108
107
|
- ext/internal/node/builtins.h
|
109
108
|
- ext/internal/node/nodeinfo.h
|
109
|
+
- ext/internal/yarv-headers/eval_intern.h
|
110
|
+
- ext/internal/yarv-headers/constant.h
|
111
|
+
- ext/internal/yarv-headers/debug.h
|
112
|
+
- ext/internal/yarv-headers/thread_pthread.h
|
113
|
+
- ext/internal/yarv-headers/vm_insnhelper.h
|
114
|
+
- ext/internal/yarv-headers/thread_win32.h
|
115
|
+
- ext/internal/yarv-headers/regparse.h
|
116
|
+
- ext/internal/yarv-headers/vm_exec.h
|
117
|
+
- ext/internal/yarv-headers/regint.h
|
118
|
+
- ext/internal/yarv-headers/gc.h
|
119
|
+
- ext/internal/yarv-headers/transcode_data.h
|
120
|
+
- ext/internal/yarv-headers/id.h
|
121
|
+
- ext/internal/yarv-headers/iseq.h
|
122
|
+
- ext/internal/yarv-headers/addr2line.h
|
123
|
+
- ext/internal/yarv-headers/method.h
|
124
|
+
- ext/internal/yarv-headers/dln.h
|
125
|
+
- ext/internal/yarv-headers/version.h
|
126
|
+
- ext/internal/yarv-headers/vm_core.h
|
127
|
+
- ext/internal/yarv-headers/node.h
|
128
|
+
- ext/internal/yarv-headers/transdb.h
|
129
|
+
- ext/internal/yarv-headers/regenc.h
|
130
|
+
- ext/internal/yarv-headers/atomic.h
|
131
|
+
- ext/internal/yarv-headers/parse.h
|
132
|
+
- ext/internal/yarv-headers/timev.h
|
133
|
+
- ext/internal/yarv-headers/encdb.h
|
134
|
+
- ext/internal/yarv-headers/revision.h
|
135
|
+
- ext/internal/yarv-headers/vm_opts.h
|
136
|
+
- ext/internal/yarv-headers/internal.h
|
110
137
|
- ext/internal/vm/control_frame/control_frame.h
|
111
138
|
- ext/internal/vm/iseq/internal_iseq.h
|
112
139
|
- ext/internal/vm/instruction/insns_info.h
|