looksee 1.0.3 → 1.1.0

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.
@@ -195,6 +195,11 @@ describe "Looksee.adapter" do
195
195
  C.send(:remove_method, :f)
196
196
  @adapter.internal_undefined_instance_methods(C).should == []
197
197
  end
198
+
199
+ it "should handle the MRI allocator being undefined (e.g. Struct)" do
200
+ struct_singleton_class = (class << Struct; self; end)
201
+ @adapter.internal_undefined_instance_methods(struct_singleton_class).should == []
202
+ end
198
203
  end
199
204
  end
200
205
 
@@ -431,7 +436,8 @@ describe "Looksee.adapter" do
431
436
  describe "#source_location" do
432
437
  def load_source(source)
433
438
  @tmp = "#{ROOT}/spec/tmp"
434
- @source_path = "#@tmp/c.rb"
439
+ # rbx 1.2.3 caches the file content by file name - ensure file names are different.
440
+ @source_path = "#@tmp/c#{__id__}.rb"
435
441
  FileUtils.mkdir_p @tmp
436
442
  open(@source_path, 'w') { |f| f.print source }
437
443
  load @source_path
@@ -7,7 +7,7 @@ require 'rbconfig'
7
7
  require 'set'
8
8
  require 'fileutils'
9
9
 
10
- ROOT = File.dirname(File.dirname(__FILE__))
10
+ ROOT = File.expand_path('..', File.dirname(__FILE__))
11
11
 
12
12
  Dir['spec/support/*.rb'].each do |path|
13
13
  require path
metadata CHANGED
@@ -1,49 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: looksee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
5
- prerelease:
4
+ version: 1.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - George Ogata
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2011-09-05 00:00:00.000000000Z
11
+ date: 2013-03-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: ritual
16
- requirement: &70191929244940 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - =
17
+ - - ~>
20
18
  - !ruby/object:Gem::Version
21
- version: 0.3.0
19
+ version: 0.4.1
22
20
  type: :development
23
21
  prerelease: false
24
- version_requirements: *70191929244940
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.4.1
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rspec
27
- requirement: &70191929243840 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - =
31
+ - - '='
31
32
  - !ruby/object:Gem::Version
32
33
  version: 2.5.0
33
34
  type: :development
34
35
  prerelease: false
35
- version_requirements: *70191929243840
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '='
39
+ - !ruby/object:Gem::Version
40
+ version: 2.5.0
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: wirble
38
- requirement: &70191929243100 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - '>='
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70191929243100
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  description:
48
56
  email:
49
57
  - george.ogata@gmail.com
@@ -56,19 +64,33 @@ extra_rdoc_files:
56
64
  - README.markdown
57
65
  files:
58
66
  - lib/looksee/adapter/base.rb
67
+ - lib/looksee/adapter/base.rbc
59
68
  - lib/looksee/adapter/rubinius.rb
69
+ - lib/looksee/adapter/rubinius.rbc
60
70
  - lib/looksee/adapter.rb
71
+ - lib/looksee/adapter.rbc
61
72
  - lib/looksee/clean.rb
73
+ - lib/looksee/clean.rbc
62
74
  - lib/looksee/columnizer.rb
75
+ - lib/looksee/columnizer.rbc
63
76
  - lib/looksee/core_ext.rb
77
+ - lib/looksee/core_ext.rbc
64
78
  - lib/looksee/editor.rb
79
+ - lib/looksee/editor.rbc
65
80
  - lib/looksee/help.rb
66
81
  - lib/looksee/inspector.rb
82
+ - lib/looksee/inspector.rbc
83
+ - lib/looksee/JRuby.jar
67
84
  - lib/looksee/lookup_path.rb
85
+ - lib/looksee/lookup_path.rbc
86
+ - lib/looksee/rbx.bundle
68
87
  - lib/looksee/shortcuts.rb
69
88
  - lib/looksee/version.rb
89
+ - lib/looksee/version.rbc
70
90
  - lib/looksee/wirble_compatibility.rb
91
+ - lib/looksee/wirble_compatibility.rbc
71
92
  - lib/looksee.rb
93
+ - lib/looksee.rbc
72
94
  - ext/mri/mri.c
73
95
  - ext/rbx/rbx.c
74
96
  - ext/mri/1.9.2/debug.h
@@ -82,11 +104,14 @@ files:
82
104
  - ext/mri/1.9.3/debug.h
83
105
  - ext/mri/1.9.3/id.h
84
106
  - ext/mri/1.9.3/internal.h
107
+ - ext/mri/1.9.3/internal_falcon.h
85
108
  - ext/mri/1.9.3/method.h
86
109
  - ext/mri/1.9.3/node.h
87
110
  - ext/mri/1.9.3/thread_pthread.h
88
111
  - ext/mri/1.9.3/vm_core.h
89
112
  - ext/mri/1.9.3/vm_opts.h
113
+ - ext/mri/2.0.0/internal.h
114
+ - ext/mri/2.0.0/method.h
90
115
  - ext/mri/env-1.8.h
91
116
  - ext/mri/eval_c-1.8.h
92
117
  - ext/mri/node-1.9.h
@@ -107,26 +132,26 @@ files:
107
132
  - spec/support/test_adapter.rb
108
133
  - spec/wirble_compatibility_spec.rb
109
134
  homepage: http://github.com/oggy/looksee
110
- licenses: []
135
+ licenses:
136
+ - MIT
137
+ metadata: {}
111
138
  post_install_message:
112
139
  rdoc_options: []
113
140
  require_paths:
114
141
  - lib
115
142
  required_ruby_version: !ruby/object:Gem::Requirement
116
- none: false
117
143
  requirements:
118
- - - ! '>='
144
+ - - '>='
119
145
  - !ruby/object:Gem::Version
120
146
  version: '0'
121
147
  required_rubygems_version: !ruby/object:Gem::Requirement
122
- none: false
123
148
  requirements:
124
- - - ! '>='
149
+ - - '>='
125
150
  - !ruby/object:Gem::Version
126
151
  version: '0'
127
152
  requirements: []
128
153
  rubyforge_project:
129
- rubygems_version: 1.8.6
154
+ rubygems_version: 2.0.3
130
155
  signing_key:
131
156
  specification_version: 3
132
157
  summary: Supercharged method introspection in IRB.