looksee 1.0.2-universal-java-1.6 → 1.0.3-universal-java-1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -0
- data/ext/extconf.rb +5 -1
- data/ext/mri/1.9.3/atomic.h +56 -0
- data/ext/mri/1.9.3/debug.h +41 -0
- data/ext/mri/1.9.3/id.h +175 -0
- data/ext/mri/1.9.3/internal.h +227 -0
- data/ext/mri/1.9.3/method.h +105 -0
- data/ext/mri/1.9.3/node.h +503 -0
- data/ext/mri/1.9.3/thread_pthread.h +51 -0
- data/ext/mri/1.9.3/vm_core.h +755 -0
- data/ext/mri/1.9.3/vm_opts.h +51 -0
- data/ext/mri/mri.c +6 -1
- data/lib/looksee/JRuby.jar +0 -0
- data/lib/looksee/adapter.rb +1 -3
- data/lib/looksee/clean.rb +2 -1
- data/lib/looksee/version.rb +1 -1
- data/spec/core_ext_spec.rb +1 -1
- data/spec/inspector_spec.rb +4 -4
- data/spec/spec_helper.rb +0 -2
- data/spec/wirble_compatibility_spec.rb +3 -1
- metadata +13 -16
- data/lib/looksee/rbx.bundle +0 -0
@@ -0,0 +1,51 @@
|
|
1
|
+
/*-*-c-*-*/
|
2
|
+
/**********************************************************************
|
3
|
+
|
4
|
+
vm_opts.h - VM optimize option
|
5
|
+
|
6
|
+
$Author: akr $
|
7
|
+
|
8
|
+
Copyright (C) 2004-2007 Koichi Sasada
|
9
|
+
|
10
|
+
**********************************************************************/
|
11
|
+
|
12
|
+
|
13
|
+
#ifndef RUBY_VM_OPTS_H
|
14
|
+
#define RUBY_VM_OPTS_H
|
15
|
+
|
16
|
+
/* Compile options.
|
17
|
+
* You can change these options at runtime by VM::CompileOption.
|
18
|
+
* Following definitions are default values.
|
19
|
+
*/
|
20
|
+
|
21
|
+
#define OPT_TRACE_INSTRUCTION 1
|
22
|
+
#define OPT_TAILCALL_OPTIMIZATION 0
|
23
|
+
#define OPT_PEEPHOLE_OPTIMIZATION 1
|
24
|
+
#define OPT_SPECIALISED_INSTRUCTION 1
|
25
|
+
#define OPT_INLINE_CONST_CACHE 1
|
26
|
+
|
27
|
+
|
28
|
+
/* Build Options.
|
29
|
+
* You can't change these options at runtime.
|
30
|
+
*/
|
31
|
+
|
32
|
+
/* C compiler depend */
|
33
|
+
#define OPT_DIRECT_THREADED_CODE 1
|
34
|
+
#define OPT_TOKEN_THREADED_CODE 0
|
35
|
+
#define OPT_CALL_THREADED_CODE 0
|
36
|
+
|
37
|
+
/* VM running option */
|
38
|
+
#define OPT_CHECKED_RUN 1
|
39
|
+
#define OPT_INLINE_METHOD_CACHE 1
|
40
|
+
#define OPT_BLOCKINLINING 0
|
41
|
+
|
42
|
+
/* architecture independent, affects generated code */
|
43
|
+
#define OPT_OPERANDS_UNIFICATION 0
|
44
|
+
#define OPT_INSTRUCTIONS_UNIFICATION 0
|
45
|
+
#define OPT_UNIFY_ALL_COMBINATION 0
|
46
|
+
#define OPT_STACK_CACHING 0
|
47
|
+
|
48
|
+
/* misc */
|
49
|
+
#define SUPPORT_JOKE 0
|
50
|
+
|
51
|
+
#endif /* RUBY_VM_OPTS_H */
|
data/ext/mri/mri.c
CHANGED
@@ -1,6 +1,11 @@
|
|
1
1
|
#include "ruby.h"
|
2
2
|
|
3
|
-
#if RUBY_VERSION >=
|
3
|
+
#if RUBY_VERSION >= 193
|
4
|
+
# include "internal.h"
|
5
|
+
# include "vm_core.h"
|
6
|
+
# include "method.h"
|
7
|
+
# include "ruby/st.h"
|
8
|
+
#elif RUBY_VERSION >= 192
|
4
9
|
# include "vm_core.h"
|
5
10
|
# include "method.h"
|
6
11
|
# include "ruby/st.h"
|
data/lib/looksee/JRuby.jar
CHANGED
Binary file
|
data/lib/looksee/adapter.rb
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
require 'rbconfig'
|
2
|
-
|
3
1
|
module Looksee
|
4
2
|
module Adapter
|
5
3
|
autoload :Base, 'looksee/adapter/base'
|
6
|
-
autoload :MRI, "looksee/mri.#{Config::CONFIG['DLEXT']}"
|
4
|
+
autoload :MRI, "looksee/mri.#{Looksee::Config::CONFIG['DLEXT']}"
|
7
5
|
autoload :JRuby, 'looksee/JRuby.jar'
|
8
6
|
autoload :Rubinius, "looksee/adapter/rubinius"
|
9
7
|
end
|
data/lib/looksee/clean.rb
CHANGED
data/lib/looksee/version.rb
CHANGED
data/spec/core_ext_spec.rb
CHANGED
@@ -4,7 +4,7 @@ describe Looksee::ObjectMixin do
|
|
4
4
|
describe "#ls" do
|
5
5
|
before do
|
6
6
|
@object = Object.new
|
7
|
-
Looksee.
|
7
|
+
Looksee.stub(:default_specifiers).and_return([:public, :overridden])
|
8
8
|
end
|
9
9
|
|
10
10
|
it "should return an Inspector for the object's lookup path" do
|
data/spec/inspector_spec.rb
CHANGED
@@ -5,8 +5,8 @@ describe Looksee::Inspector do
|
|
5
5
|
|
6
6
|
describe "#inspect" do
|
7
7
|
before do
|
8
|
-
Looksee.
|
9
|
-
Looksee.
|
8
|
+
Looksee.stub(:default_lookup_path_options).and_return({})
|
9
|
+
Looksee.stub(:styles).and_return(Hash.new{'%s'})
|
10
10
|
|
11
11
|
@object = Object.new
|
12
12
|
temporary_module :M
|
@@ -52,7 +52,7 @@ describe Looksee::Inspector do
|
|
52
52
|
end
|
53
53
|
|
54
54
|
it "should columnize output to the configured default otherwise" do
|
55
|
-
Looksee.
|
55
|
+
Looksee.stub(:default_width).and_return(20)
|
56
56
|
inspector = Looksee::Inspector.new(@lookup_path, :visibilities => [:public])
|
57
57
|
inspector.inspect.should == <<-EOS.demargin.chomp
|
58
58
|
|M
|
@@ -159,7 +159,7 @@ describe Looksee::Inspector do
|
|
159
159
|
:undefined => "~%s~",
|
160
160
|
:overridden => "(%s)",
|
161
161
|
}
|
162
|
-
Looksee.
|
162
|
+
Looksee.stub(:styles).and_return(styles)
|
163
163
|
end
|
164
164
|
|
165
165
|
it "should delimit each word with the configured delimiters" do
|
data/spec/spec_helper.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
ENV['LOOKSEE_METHODS'] = nil
|
2
2
|
|
3
3
|
require 'rspec'
|
4
|
-
require 'mocha'
|
5
4
|
require 'looksee'
|
6
5
|
|
7
6
|
require 'rbconfig'
|
@@ -17,7 +16,6 @@ end
|
|
17
16
|
NATIVE_ADAPTER = Looksee.adapter
|
18
17
|
|
19
18
|
RSpec.configure do |config|
|
20
|
-
config.mock_with :mocha
|
21
19
|
config.before { Looksee.adapter = TestAdapter.new }
|
22
20
|
end
|
23
21
|
|
@@ -12,7 +12,7 @@ describe Looksee::WirbleCompatibility do
|
|
12
12
|
|c.ls
|
13
13
|
EOS
|
14
14
|
code = code.chomp.gsub(/\n/, ';') # only print value of last line
|
15
|
-
irb = File.join Config::CONFIG['bindir'], 'irb'
|
15
|
+
irb = File.join Looksee::Config::CONFIG['bindir'], 'irb'
|
16
16
|
lib_dir = File.expand_path('lib')
|
17
17
|
# irb hangs when using readline without a tty
|
18
18
|
output = IO.popen("bundle exec #{irb} -f --noreadline --noprompt --noverbose -I#{lib_dir} 2>&1", 'r+') do |io|
|
@@ -21,6 +21,8 @@ describe Looksee::WirbleCompatibility do
|
|
21
21
|
io.close_write
|
22
22
|
io.read
|
23
23
|
end
|
24
|
+
# Ruby 1.9.3 prints gc parameters if configured
|
25
|
+
nil while output.gsub!(/^(?:malloc_limit|heap_min_slots|free_min)=.*\n/, '')
|
24
26
|
# Ruby 1.9.2 prints an extra newline on exit.
|
25
27
|
output.chomp! if RUBY_VERSION >= '1.9.2'
|
26
28
|
output
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: looksee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.3
|
6
6
|
platform: universal-java-1.6
|
7
7
|
authors:
|
8
8
|
- George Ogata
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-09-05 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
requirements:
|
22
22
|
- - "="
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 0.
|
24
|
+
version: 0.3.0
|
25
25
|
type: :development
|
26
26
|
version_requirements: *id001
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -36,7 +36,7 @@ dependencies:
|
|
36
36
|
type: :development
|
37
37
|
version_requirements: *id002
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
name:
|
39
|
+
name: wirble
|
40
40
|
prerelease: false
|
41
41
|
requirement: &id003 !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
@@ -46,17 +46,6 @@ dependencies:
|
|
46
46
|
version: "0"
|
47
47
|
type: :development
|
48
48
|
version_requirements: *id003
|
49
|
-
- !ruby/object:Gem::Dependency
|
50
|
-
name: wirble
|
51
|
-
prerelease: false
|
52
|
-
requirement: &id004 !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
|
-
requirements:
|
55
|
-
- - ">="
|
56
|
-
- !ruby/object:Gem::Version
|
57
|
-
version: "0"
|
58
|
-
type: :development
|
59
|
-
version_requirements: *id004
|
60
49
|
description:
|
61
50
|
email:
|
62
51
|
- george.ogata@gmail.com
|
@@ -79,7 +68,6 @@ files:
|
|
79
68
|
- lib/looksee/inspector.rb
|
80
69
|
- lib/looksee/JRuby.jar
|
81
70
|
- lib/looksee/lookup_path.rb
|
82
|
-
- lib/looksee/rbx.bundle
|
83
71
|
- lib/looksee/shortcuts.rb
|
84
72
|
- lib/looksee/version.rb
|
85
73
|
- lib/looksee/wirble_compatibility.rb
|
@@ -97,6 +85,15 @@ files:
|
|
97
85
|
- ext/mri/1.9.2/thread_pthread.h
|
98
86
|
- ext/mri/1.9.2/vm_core.h
|
99
87
|
- ext/mri/1.9.2/vm_opts.h
|
88
|
+
- ext/mri/1.9.3/atomic.h
|
89
|
+
- ext/mri/1.9.3/debug.h
|
90
|
+
- ext/mri/1.9.3/id.h
|
91
|
+
- ext/mri/1.9.3/internal.h
|
92
|
+
- ext/mri/1.9.3/method.h
|
93
|
+
- ext/mri/1.9.3/node.h
|
94
|
+
- ext/mri/1.9.3/thread_pthread.h
|
95
|
+
- ext/mri/1.9.3/vm_core.h
|
96
|
+
- ext/mri/1.9.3/vm_opts.h
|
100
97
|
- ext/extconf.rb
|
101
98
|
- CHANGELOG
|
102
99
|
- LICENSE
|
data/lib/looksee/rbx.bundle
DELETED
Binary file
|