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.
Files changed (32) hide show
  1. data/ext/internal/yarv-headers/addr2line.h +21 -0
  2. data/ext/internal/yarv-headers/atomic.h +56 -0
  3. data/ext/internal/yarv-headers/constant.h +34 -0
  4. data/ext/internal/yarv-headers/debug.h +41 -0
  5. data/ext/internal/yarv-headers/dln.h +50 -0
  6. data/ext/internal/yarv-headers/encdb.h +167 -0
  7. data/ext/internal/yarv-headers/eval_intern.h +234 -0
  8. data/ext/internal/yarv-headers/gc.h +98 -0
  9. data/ext/internal/yarv-headers/id.h +175 -0
  10. data/ext/internal/yarv-headers/internal.h +232 -0
  11. data/ext/internal/yarv-headers/iseq.h +125 -0
  12. data/ext/internal/yarv-headers/method.h +105 -0
  13. data/ext/internal/yarv-headers/node.h +503 -0
  14. data/ext/internal/yarv-headers/parse.h +186 -0
  15. data/ext/internal/yarv-headers/regenc.h +219 -0
  16. data/ext/internal/yarv-headers/regint.h +850 -0
  17. data/ext/internal/yarv-headers/regparse.h +362 -0
  18. data/ext/internal/yarv-headers/revision.h +1 -0
  19. data/ext/internal/yarv-headers/thread_pthread.h +51 -0
  20. data/ext/internal/yarv-headers/thread_win32.h +40 -0
  21. data/ext/internal/yarv-headers/timev.h +21 -0
  22. data/ext/internal/yarv-headers/transcode_data.h +117 -0
  23. data/ext/internal/yarv-headers/transdb.h +189 -0
  24. data/ext/internal/yarv-headers/version.h +52 -0
  25. data/ext/internal/yarv-headers/vm_core.h +756 -0
  26. data/ext/internal/yarv-headers/vm_exec.h +184 -0
  27. data/ext/internal/yarv-headers/vm_insnhelper.h +220 -0
  28. data/ext/internal/yarv-headers/vm_opts.h +51 -0
  29. data/test/test_module.rb +3 -1
  30. data/test/test_node.rb +1 -1
  31. metadata +30 -3
  32. 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.instance_eval do
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
@@ -60,7 +60,7 @@ class TC_Node < Test::Unit::TestCase
60
60
  fail "Unexpeced type #{n2.class}"
61
61
  end
62
62
  klass = Class.new;
63
- klass.instance_eval do
63
+ klass.class_eval do
64
64
  add_method(:foo, n2, Noex::PUBLIC)
65
65
  end
66
66
  obj = klass.new
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.3
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-11 00:00:00.000000000 Z
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
@@ -1,10 +0,0 @@
1
- require 'internal/node/as_code'
2
- require 'internal/object'
3
-
4
- class Object
5
- def as_code(indent=0)
6
- # TODO: this won't work for many objects
7
- "#{' '*indent}#{self.inspect}"
8
- end
9
- end
10
-