looksee 4.0.0 → 4.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 94926312f6e243fc27dad9367ed553896e64a7ec
4
- data.tar.gz: 3671e93f8e5bdc1b9dd57b3330820f6aa384831c
2
+ SHA256:
3
+ metadata.gz: bf2fff51e501cb06f0d6fc0e68a25730116041fdd4a2fdbc47e5baeaf4161b21
4
+ data.tar.gz: 6cfc33e00c0f9cf31fe6a6cce5aea387b7c78fecb002e4696e701bf97be08225
5
5
  SHA512:
6
- metadata.gz: 73171209bd7c657d39109b4f97f5b7f4791b19ad6ba4453be38b3e729131119692772e64718597ec0843f77264d337cf317ac65dac049714963404753c07d742
7
- data.tar.gz: 267162f6045559ab2ed5ed3f141518444578c3967bcf6106daf5593e23139e0f8bcd558327666524a6ae0d71956131047c7c4cee974d0772e654c03d97296525
6
+ metadata.gz: 799d190d5ac1616606ec953f546d972e915716edf56b9d2a5cff06531d4e392f1d6cf48de55104155dd4dc48a23623e78e473853df5c19c6d365461e76a6b9b1
7
+ data.tar.gz: 2048feba20e79f417818d57b397f4c893525b005376f46fb592ac58b2cffb6774ecfb98d6532ccd5dabdb4512cb80b9f54098ded06baa71ecb0780d0fb51c6c4
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ == 4.1.0 2019-03-25
2
+
3
+ * Support for MRI 2.6.
4
+
1
5
  == 4.0.0 2016-08-09
2
6
 
3
7
  * Incomplete ruby 2.3 compatibility. Undef'd methods cannot be rendered; a
data/README.markdown CHANGED
@@ -132,7 +132,7 @@ By default, this uses `vi`; customize it like this:
132
132
  If you have a library that for some reason can't handle an `ls` method existing
133
133
  on `Object`, you may rename it like this:
134
134
 
135
- Looksee.rename ls: :_ls
135
+ Looksee.rename :_ls
136
136
 
137
137
  ## Quick Reference
138
138
 
@@ -142,6 +142,22 @@ We've got one:
142
142
 
143
143
  Enjoy!
144
144
 
145
+ ## Troubleshooting
146
+
147
+ ### ANSI Escapes
148
+
149
+ If your pager is not configured, you may see ugly output like this:
150
+
151
+ ESC[1;37mArrayESC[0m
152
+ ESC[1;32m&ESC[0m ESC[1;32mcompact!ESC[0m ESC[1;32minclude?ESC[0m
153
+ ESC[1;32mrassocESC[0m ESC[1;32mto_aESC[0m
154
+
155
+ The most common pager is `less`, which you can configure by setting an
156
+ environment variable like this in your shell configuration (usually
157
+ `~/.bashrc`):
158
+
159
+ export LESS=-R
160
+
145
161
  ## Contributing
146
162
 
147
163
  * [Bug reports](https://github.com/oggy/looksee/issues)
@@ -9,13 +9,13 @@
9
9
 
10
10
  **********************************************************************/
11
11
 
12
- #ifndef RUBY_INTERNAL_H
13
- #define RUBY_INTERNAL_H 1
14
-
15
12
  #include "ruby.h"
16
13
  #include "ruby/encoding.h"
17
14
  #include "ruby/io.h"
18
15
 
16
+ #ifndef RUBY_INTERNAL_H
17
+ #define RUBY_INTERNAL_H 1
18
+
19
19
  #if defined(__cplusplus)
20
20
  extern "C" {
21
21
  #if 0
data/ext/mri/mri.c CHANGED
@@ -32,7 +32,7 @@ VALUE Looksee_internal_undefined_instance_methods(VALUE self, VALUE klass) {
32
32
  #if RUBY_VERSION >= 230
33
33
  static int warned = 0;
34
34
  if (!warned) {
35
- rb_warn("Looksee cannot display undef'd methods on MRI 2.3");
35
+ rb_warn("Looksee cannot display undef-ed methods on MRI 2.3 or later");
36
36
  warned = 1;
37
37
  }
38
38
  return rb_ary_new();
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  module Looksee
2
- VERSION = [4, 0, 0]
2
+ VERSION = [4, 1, 0]
3
3
 
4
4
  class << VERSION
5
5
  include Comparable
@@ -68,7 +68,11 @@ describe "Looksee.adapter" do
68
68
  end
69
69
 
70
70
  it "should work for immediate objects" do
71
- filtered_lookup_modules(1).first.should == 'Fixnum'
71
+ if RUBY_VERSION >= "2.4.0"
72
+ filtered_lookup_modules(1).first.should == 'Integer'
73
+ else
74
+ filtered_lookup_modules(1).first.should == 'Fixnum'
75
+ end
72
76
  end
73
77
  end
74
78
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: looksee
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.0
4
+ version: 4.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - George Ogata
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-09 00:00:00.000000000 Z
11
+ date: 2019-03-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -46,6 +46,7 @@ files:
46
46
  - lib/looksee/help.rb
47
47
  - lib/looksee/inspector.rb
48
48
  - lib/looksee/lookup_path.rb
49
+ - lib/looksee/mri.bundle
49
50
  - lib/looksee/version.rb
50
51
  - spec/looksee/adapter_spec.rb
51
52
  - spec/looksee/clean_spec.rb
@@ -77,20 +78,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
78
  - !ruby/object:Gem::Version
78
79
  version: '0'
79
80
  requirements: []
80
- rubyforge_project:
81
- rubygems_version: 2.5.1
81
+ rubygems_version: 3.0.3
82
82
  signing_key:
83
83
  specification_version: 3
84
84
  summary: Supercharged method introspection in IRB.
85
85
  test_files:
86
- - spec/looksee/adapter_spec.rb
86
+ - spec/spec_helper.rb
87
87
  - spec/looksee/clean_spec.rb
88
- - spec/looksee/columnizer_spec.rb
88
+ - spec/looksee/inspector_spec.rb
89
89
  - spec/looksee/core_ext_spec.rb
90
+ - spec/looksee/columnizer_spec.rb
91
+ - spec/looksee/adapter_spec.rb
90
92
  - spec/looksee/editor_spec.rb
91
- - spec/looksee/inspector_spec.rb
92
93
  - spec/looksee/lookup_path_spec.rb
93
- - spec/spec_helper.rb
94
94
  - spec/support/core_ext.rb
95
95
  - spec/support/temporary_classes.rb
96
96
  - spec/support/test_adapter.rb