looksee 3.1.0-universal-java-1.8 → 4.0.0-universal-java-1.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG +13 -0
  3. data/README.markdown +61 -81
  4. data/ext/extconf.rb +3 -7
  5. data/ext/mri/2.3.0/internal.h +1404 -0
  6. data/ext/mri/2.3.0/method.h +213 -0
  7. data/ext/mri/mri.c +21 -264
  8. data/ext/rbx/rbx.c +0 -9
  9. data/lib/looksee/JRuby.jar +0 -0
  10. data/lib/looksee/adapter/base.rb +19 -54
  11. data/lib/looksee/adapter/rubinius.rb +3 -62
  12. data/lib/looksee/clean.rb +5 -1
  13. data/lib/looksee/editor.rb +1 -1
  14. data/lib/looksee/help.rb +3 -2
  15. data/lib/looksee/lookup_path.rb +7 -3
  16. data/lib/looksee/version.rb +1 -1
  17. data/spec/looksee/adapter_spec.rb +72 -365
  18. data/spec/looksee/editor_spec.rb +1 -1
  19. data/spec/looksee/inspector_spec.rb +21 -21
  20. data/spec/looksee/lookup_path_spec.rb +34 -21
  21. data/spec/spec_helper.rb +2 -0
  22. data/spec/support/temporary_classes.rb +10 -14
  23. data/spec/support/test_adapter.rb +2 -53
  24. metadata +8 -29
  25. data/ext/mri/1.9.2/debug.h +0 -36
  26. data/ext/mri/1.9.2/id.h +0 -170
  27. data/ext/mri/1.9.2/method.h +0 -103
  28. data/ext/mri/1.9.2/node.h +0 -483
  29. data/ext/mri/1.9.2/thread_pthread.h +0 -27
  30. data/ext/mri/1.9.2/vm_core.h +0 -707
  31. data/ext/mri/1.9.2/vm_opts.h +0 -51
  32. data/ext/mri/1.9.3/atomic.h +0 -56
  33. data/ext/mri/1.9.3/debug.h +0 -41
  34. data/ext/mri/1.9.3/id.h +0 -175
  35. data/ext/mri/1.9.3/internal.h +0 -227
  36. data/ext/mri/1.9.3/internal_falcon.h +0 -248
  37. data/ext/mri/1.9.3/method.h +0 -105
  38. data/ext/mri/1.9.3/node.h +0 -503
  39. data/ext/mri/1.9.3/thread_pthread.h +0 -51
  40. data/ext/mri/1.9.3/vm_core.h +0 -755
  41. data/ext/mri/1.9.3/vm_opts.h +0 -51
  42. data/ext/mri/2.0.0/internal.h +0 -378
  43. data/ext/mri/2.0.0/method.h +0 -138
  44. data/ext/mri/env-1.8.h +0 -27
  45. data/ext/mri/eval_c-1.8.h +0 -27
  46. data/ext/mri/node-1.9.h +0 -35
  47. data/lib/looksee/rbx.bundle +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7365cd1e3c06af7f160fa01552778583a880f9ac
4
- data.tar.gz: 15e7400186185b6f7261346b99f874e5e9fd1bde
3
+ metadata.gz: 3a608aa4651ece38fd707ac055e6861f8bdc45f5
4
+ data.tar.gz: fd400f708b6e0e5f1d38a78a52f2d134a91dbcf1
5
5
  SHA512:
6
- metadata.gz: f93aa5bde3883fbf764c2f1b0616c2cbbbc96e10add7930724260b9065e2ab77b6a9e1eb993f4681e6f5de1685dcad9fb4be20d56bdc689198ecc10d75f8da56
7
- data.tar.gz: 1046ba75a1e6304bc6afd37c8ff55e4bee6de74b85a664ddbcde495dc45bdf0e0be89cf16854b65afe9afe5f6a0b5273032101d8b12c83c0f4d9c1691bd34f83
6
+ metadata.gz: 9a910f9bedc7e4f43be8f6b61827e1cb79d5605f3960aaab2b1f92e0e22f8040c9a73568105bcbd112b542e9e7ca431614ed559d923ee827f878f50ac54b90b8
7
+ data.tar.gz: da7f5d19c6f8033a9861d7447ca208a558120df402932fae98e4a554085690afeab4986677a1cebdbd5997644fccd6de970187e99ff050e2fef1dad78066ecc6
data/CHANGELOG CHANGED
@@ -1,3 +1,16 @@
1
+ == 4.0.0 2016-08-09
2
+
3
+ * Incomplete ruby 2.3 compatibility. Undef'd methods cannot be rendered; a
4
+ warning will be emitted the first time this may affect something.
5
+ * Looksee no longer supports MRI < 2.1, Rubinius < 3, or JRuby < 9.
6
+ * "Origin classes" are no longer shown. If you don't know what these are, good!
7
+ * Internal overhaul. The extensions have been shrunk to minimize the use of
8
+ private interpreter APIs.
9
+
10
+ == 3.1.1 2016-08-02
11
+
12
+ * Prevent installation on ruby 2.3, as compilation fails. Sorry! [Mathieu Jobin]
13
+
1
14
  == 3.1.0 2015-02-06
2
15
 
3
16
  * Fix performance issue caused by fix for pry. You'll need to use
data/README.markdown CHANGED
@@ -17,86 +17,75 @@ Now each object has a method `ls`, which shows you all its methods.
17
17
 
18
18
  irb> [].ls
19
19
  => BasicObject
20
- ! __send__ instance_exec singleton_method_undefined
21
- != equal? method_missing
22
- == initialize singleton_method_added
23
- __id__ instance_eval singleton_method_removed
20
+ ! __id__ initialize method_missing singleton_method_undefined
21
+ != __send__ instance_eval singleton_method_added
22
+ == equal? instance_exec singleton_method_removed
24
23
  Kernel
25
- !~ frozen? puts
26
- <=> gem raise
27
- === gem_original_require rand
28
- =~ gets readline
29
- Array global_variables readlines
30
- Complex hash remove_instance_variable
31
- Float initialize_clone require
32
- Integer initialize_copy require_relative
33
- Rational initialize_dup respond_to?
34
- String inspect respond_to_missing?
35
- __callee__ instance_of? select
36
- __method__ instance_variable_defined? send
37
- ` instance_variable_get set_trace_func
38
- abort instance_variable_set singleton_class
39
- at_exit instance_variables singleton_methods
40
- autoload is_a? sleep
41
- autoload? iterator? spawn
42
- binding kind_of? sprintf
43
- block_given? lambda srand
44
- caller load syscall
45
- catch local_variables system
46
- class loop taint
47
- clone method tainted?
48
- define_singleton_method methods tap
49
- display nil? test
50
- dup object_id throw
51
- enum_for open to_enum
52
- eql? p to_s
53
- eval print trace_var
54
- exec printf trap
55
- exit private_methods trust
56
- exit! proc untaint
57
- extend protected_methods untrace_var
58
- fail public_method untrust
59
- fork public_methods untrusted?
60
- format public_send warn
61
- freeze putc
24
+ !~ enum_for kind_of? respond_to_missing?
25
+ <=> eql? lambda select
26
+ === eval load send
27
+ =~ exec local_variables set_trace_func
28
+ Array exit loop singleton_class
29
+ Complex exit! method singleton_method
30
+ Float extend methods singleton_methods
31
+ Hash fail nil? sleep
32
+ Integer fork object_id spawn
33
+ Rational format open sprintf
34
+ String freeze p srand
35
+ __callee__ frozen? print syscall
36
+ __dir__ gem printf system
37
+ __method__ gem_original_require private_methods taint
38
+ ` gets proc tainted?
39
+ abort global_variables protected_methods tap
40
+ at_exit hash public_method test
41
+ autoload initialize_clone public_methods throw
42
+ autoload? initialize_copy public_send to_enum
43
+ binding initialize_dup putc to_s
44
+ block_given? inspect puts trace_var
45
+ caller instance_of? raise trap
46
+ caller_locations instance_variable_defined? rand trust
47
+ catch instance_variable_get readline untaint
48
+ class instance_variable_set readlines untrace_var
49
+ clone instance_variables remove_instance_variable untrust
50
+ define_singleton_method is_a? require untrusted?
51
+ display iterator? require_relative warn
52
+ dup itself respond_to?
62
53
  Looksee::ObjectMixin
63
54
  ls
64
55
  Object
65
- default_src_encoding irb_binding
56
+ DelegateClass default_src_encoding irb_binding
66
57
  Enumerable
67
- all? each_cons flat_map min_by slice_before
68
- any? each_entry grep minmax sort
69
- chunk each_slice group_by minmax_by sort_by
70
- collect each_with_index include? none? take
71
- collect_concat each_with_object inject one? take_while
72
- count entries map partition to_a
73
- cycle find max reduce to_set
74
- detect find_all max_by reject zip
75
- drop find_index member? reverse_each
76
- drop_while first min select
58
+ all? detect entries group_by min reject take
59
+ any? drop find include? min_by reverse_each take_while
60
+ chunk drop_while find_all inject minmax select to_a
61
+ chunk_while each_cons find_index lazy minmax_by slice_after to_h
62
+ collect each_entry first map none? slice_before to_set
63
+ collect_concat each_slice flat_map max one? slice_when zip
64
+ count each_with_index grep max_by partition sort
65
+ cycle each_with_object grep_v member? reduce sort_by
77
66
  Array
78
- & count hash rassoc size
79
- * cycle include? reject slice
80
- + delete index reject! slice!
81
- - delete_at initialize repeated_combination sort
82
- << delete_if initialize_copy repeated_permutation sort!
83
- <=> drop insert replace sort_by!
84
- == drop_while inspect reverse take
85
- [] each join reverse! take_while
86
- []= each_index keep_if reverse_each to_a
87
- assoc empty? last rindex to_ary
88
- at eql? length rotate to_s
89
- clear fetch map rotate! transpose
90
- collect fill map! sample uniq
91
- collect! find_index pack select uniq!
92
- combination first permutation select! unshift
93
- compact flatten pop shift values_at
94
- compact! flatten! product shuffle zip
95
- concat frozen? push shuffle! |
67
+ & collect! eql? keep_if reverse sort!
68
+ * combination fetch last reverse! sort_by!
69
+ + compact fill length reverse_each take
70
+ - compact! find_index map rindex take_while
71
+ << concat first map! rotate to_a
72
+ <=> count flatten pack rotate! to_ary
73
+ == cycle flatten! permutation sample to_h
74
+ [] delete frozen? pop select to_s
75
+ []= delete_at hash product select! transpose
76
+ any? delete_if include? push shift uniq
77
+ assoc dig index rassoc shuffle uniq!
78
+ at drop initialize reject shuffle! unshift
79
+ bsearch drop_while initialize_copy reject! size values_at
80
+ bsearch_index each insert repeated_combination slice zip
81
+ clear each_index inspect repeated_permutation slice! |
82
+ collect empty? join replace sort
96
83
 
97
84
  Methods are colored according to whether they're public, protected,
98
85
  private, undefined (using Module#undef_method), or overridden.
99
86
 
87
+ (Undefined methods are not shown on MRI 2.3 due to interpreter limitations.)
88
+
100
89
  You can hide, say, private methods like this:
101
90
 
102
91
  irb> [].ls :noprivate
@@ -123,9 +112,8 @@ always do:
123
112
 
124
113
  Looksee[object]
125
114
 
126
- This method inspects the object via interpreter extensions, so it works for the
127
- most Byzantine object. It will also work for `BasicObject` instances that don't
128
- have an `ls` method. `Object#ls` is simply a wrapper around `Looksee.[]`.
115
+ This will also work for `BasicObject` instances that don't have an `ls` method.
116
+ `Object#ls` is simply a wrapper around `Looksee.[]`.
129
117
 
130
118
  ## To the source!
131
119
 
@@ -154,14 +142,6 @@ We've got one:
154
142
 
155
143
  Enjoy!
156
144
 
157
- ## Support
158
-
159
- Looksee supports:
160
-
161
- * MRI 1.9.3, 2.0, 2.1, 2.2
162
- * JRuby 1.7
163
- * Rubinius 2.4
164
-
165
145
  ## Contributing
166
146
 
167
147
  * [Bug reports](https://github.com/oggy/looksee/issues)
data/ext/extconf.rb CHANGED
@@ -4,16 +4,12 @@ extension = ruby_engine == 'ruby' ? 'mri' : ruby_engine
4
4
  require 'mkmf'
5
5
  $CPPFLAGS << " -DRUBY_VERSION=#{RUBY_VERSION.tr('.', '')}"
6
6
  if extension == 'mri'
7
- if RUBY_VERSION >= '2.2.0'
7
+ if RUBY_VERSION >= '2.3.0'
8
+ $CPPFLAGS << " -Imri/2.3.0"
9
+ elsif RUBY_VERSION >= '2.2.0'
8
10
  $CPPFLAGS << " -Imri/2.2.0"
9
11
  elsif RUBY_VERSION >= '2.1.0'
10
12
  $CPPFLAGS << " -Imri/2.1.0"
11
- elsif RUBY_VERSION >= '2.0.0'
12
- $CPPFLAGS << " -Imri/2.0.0"
13
- elsif RUBY_VERSION >= '1.9.3'
14
- $CPPFLAGS << " -Imri/1.9.3"
15
- elsif RUBY_VERSION >= '1.9.2'
16
- $CPPFLAGS << " -Imri/1.9.2"
17
13
  end
18
14
  end
19
15
  create_makefile "looksee/#{extension}", extension