did_you_mean 0.9.2 → 0.9.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +24 -0
  3. data/ext/did_you_mean/extconf.rb +0 -23
  4. data/ext/did_you_mean/method_missing.c +8 -97
  5. data/ext/did_you_mean/org/yukinishijima/ReceiverCapturer.java +1 -2
  6. data/lib/did_you_mean/finders/similar_method_finder.rb +2 -1
  7. data/lib/did_you_mean/version.rb +1 -1
  8. data/test/no_method_error_extension_test.rb +1 -1
  9. metadata +2 -105
  10. data/ext/did_you_mean/ruby_headers/193/debug.h +0 -41
  11. data/ext/did_you_mean/ruby_headers/193/id.h +0 -171
  12. data/ext/did_you_mean/ruby_headers/193/internal.h +0 -242
  13. data/ext/did_you_mean/ruby_headers/193/method.h +0 -105
  14. data/ext/did_you_mean/ruby_headers/193/node.h +0 -504
  15. data/ext/did_you_mean/ruby_headers/193/ruby_atomic.h +0 -122
  16. data/ext/did_you_mean/ruby_headers/193/thread_pthread.h +0 -51
  17. data/ext/did_you_mean/ruby_headers/193/thread_win32.h +0 -40
  18. data/ext/did_you_mean/ruby_headers/193/vm_core.h +0 -763
  19. data/ext/did_you_mean/ruby_headers/193/vm_opts.h +0 -51
  20. data/ext/did_you_mean/ruby_headers/200/id.h +0 -171
  21. data/ext/did_you_mean/ruby_headers/200/internal.h +0 -392
  22. data/ext/did_you_mean/ruby_headers/200/method.h +0 -138
  23. data/ext/did_you_mean/ruby_headers/200/node.h +0 -539
  24. data/ext/did_you_mean/ruby_headers/200/ruby_atomic.h +0 -165
  25. data/ext/did_you_mean/ruby_headers/200/thread_pthread.h +0 -56
  26. data/ext/did_you_mean/ruby_headers/200/thread_win32.h +0 -45
  27. data/ext/did_you_mean/ruby_headers/200/vm_core.h +0 -1013
  28. data/ext/did_you_mean/ruby_headers/200/vm_debug.h +0 -41
  29. data/ext/did_you_mean/ruby_headers/200/vm_opts.h +0 -56
  30. data/ext/did_you_mean/ruby_headers/210/id.h +0 -173
  31. data/ext/did_you_mean/ruby_headers/210/internal.h +0 -889
  32. data/ext/did_you_mean/ruby_headers/210/method.h +0 -142
  33. data/ext/did_you_mean/ruby_headers/210/node.h +0 -543
  34. data/ext/did_you_mean/ruby_headers/210/ruby_atomic.h +0 -165
  35. data/ext/did_you_mean/ruby_headers/210/thread_native.h +0 -23
  36. data/ext/did_you_mean/ruby_headers/210/thread_pthread.h +0 -56
  37. data/ext/did_you_mean/ruby_headers/210/thread_win32.h +0 -45
  38. data/ext/did_you_mean/ruby_headers/210/vm_core.h +0 -1043
  39. data/ext/did_you_mean/ruby_headers/210/vm_debug.h +0 -37
  40. data/ext/did_you_mean/ruby_headers/210/vm_opts.h +0 -56
  41. data/ext/did_you_mean/ruby_headers/211/id.h +0 -173
  42. data/ext/did_you_mean/ruby_headers/211/internal.h +0 -889
  43. data/ext/did_you_mean/ruby_headers/211/method.h +0 -142
  44. data/ext/did_you_mean/ruby_headers/211/node.h +0 -543
  45. data/ext/did_you_mean/ruby_headers/211/ruby_atomic.h +0 -170
  46. data/ext/did_you_mean/ruby_headers/211/thread_native.h +0 -23
  47. data/ext/did_you_mean/ruby_headers/211/thread_pthread.h +0 -56
  48. data/ext/did_you_mean/ruby_headers/211/thread_win32.h +0 -45
  49. data/ext/did_you_mean/ruby_headers/211/vm_core.h +0 -1043
  50. data/ext/did_you_mean/ruby_headers/211/vm_debug.h +0 -37
  51. data/ext/did_you_mean/ruby_headers/211/vm_opts.h +0 -56
  52. data/ext/did_you_mean/ruby_headers/212/id.h +0 -173
  53. data/ext/did_you_mean/ruby_headers/212/internal.h +0 -889
  54. data/ext/did_you_mean/ruby_headers/212/method.h +0 -142
  55. data/ext/did_you_mean/ruby_headers/212/node.h +0 -543
  56. data/ext/did_you_mean/ruby_headers/212/ruby_atomic.h +0 -170
  57. data/ext/did_you_mean/ruby_headers/212/thread_native.h +0 -23
  58. data/ext/did_you_mean/ruby_headers/212/thread_pthread.h +0 -56
  59. data/ext/did_you_mean/ruby_headers/212/thread_win32.h +0 -45
  60. data/ext/did_you_mean/ruby_headers/212/vm_core.h +0 -1043
  61. data/ext/did_you_mean/ruby_headers/212/vm_debug.h +0 -37
  62. data/ext/did_you_mean/ruby_headers/212/vm_opts.h +0 -56
  63. data/ext/did_you_mean/ruby_headers/213/id.h +0 -173
  64. data/ext/did_you_mean/ruby_headers/213/internal.h +0 -892
  65. data/ext/did_you_mean/ruby_headers/213/method.h +0 -142
  66. data/ext/did_you_mean/ruby_headers/213/node.h +0 -543
  67. data/ext/did_you_mean/ruby_headers/213/ruby_atomic.h +0 -170
  68. data/ext/did_you_mean/ruby_headers/213/thread_native.h +0 -23
  69. data/ext/did_you_mean/ruby_headers/213/thread_pthread.h +0 -56
  70. data/ext/did_you_mean/ruby_headers/213/thread_win32.h +0 -45
  71. data/ext/did_you_mean/ruby_headers/213/vm_core.h +0 -1052
  72. data/ext/did_you_mean/ruby_headers/213/vm_debug.h +0 -37
  73. data/ext/did_you_mean/ruby_headers/213/vm_opts.h +0 -56
  74. data/ext/did_you_mean/ruby_headers/214/id.h +0 -173
  75. data/ext/did_you_mean/ruby_headers/214/internal.h +0 -892
  76. data/ext/did_you_mean/ruby_headers/214/method.h +0 -142
  77. data/ext/did_you_mean/ruby_headers/214/node.h +0 -543
  78. data/ext/did_you_mean/ruby_headers/214/ruby_atomic.h +0 -170
  79. data/ext/did_you_mean/ruby_headers/214/thread_native.h +0 -23
  80. data/ext/did_you_mean/ruby_headers/214/thread_pthread.h +0 -56
  81. data/ext/did_you_mean/ruby_headers/214/thread_win32.h +0 -45
  82. data/ext/did_you_mean/ruby_headers/214/vm_core.h +0 -1055
  83. data/ext/did_you_mean/ruby_headers/214/vm_debug.h +0 -37
  84. data/ext/did_you_mean/ruby_headers/214/vm_opts.h +0 -56
  85. data/ext/did_you_mean/ruby_headers/215/id.h +0 -173
  86. data/ext/did_you_mean/ruby_headers/215/internal.h +0 -892
  87. data/ext/did_you_mean/ruby_headers/215/method.h +0 -142
  88. data/ext/did_you_mean/ruby_headers/215/node.h +0 -543
  89. data/ext/did_you_mean/ruby_headers/215/ruby_atomic.h +0 -170
  90. data/ext/did_you_mean/ruby_headers/215/thread_native.h +0 -23
  91. data/ext/did_you_mean/ruby_headers/215/thread_pthread.h +0 -56
  92. data/ext/did_you_mean/ruby_headers/215/thread_win32.h +0 -45
  93. data/ext/did_you_mean/ruby_headers/215/vm_core.h +0 -1055
  94. data/ext/did_you_mean/ruby_headers/215/vm_debug.h +0 -37
  95. data/ext/did_you_mean/ruby_headers/215/vm_opts.h +0 -56
  96. data/ext/did_you_mean/ruby_headers/220/ccan/check_type/check_type.h +0 -63
  97. data/ext/did_you_mean/ruby_headers/220/ccan/container_of/container_of.h +0 -106
  98. data/ext/did_you_mean/ruby_headers/220/ccan/list/list.h +0 -602
  99. data/ext/did_you_mean/ruby_headers/220/ccan/str/str.h +0 -16
  100. data/ext/did_you_mean/ruby_headers/220/id.h +0 -173
  101. data/ext/did_you_mean/ruby_headers/220/internal.h +0 -1106
  102. data/ext/did_you_mean/ruby_headers/220/method.h +0 -141
  103. data/ext/did_you_mean/ruby_headers/220/node.h +0 -544
  104. data/ext/did_you_mean/ruby_headers/220/ruby_atomic.h +0 -170
  105. data/ext/did_you_mean/ruby_headers/220/symbol.h +0 -87
  106. data/ext/did_you_mean/ruby_headers/220/thread_native.h +0 -23
  107. data/ext/did_you_mean/ruby_headers/220/thread_pthread.h +0 -54
  108. data/ext/did_you_mean/ruby_headers/220/thread_win32.h +0 -36
  109. data/ext/did_you_mean/ruby_headers/220/vm_core.h +0 -1160
  110. data/ext/did_you_mean/ruby_headers/220/vm_debug.h +0 -37
  111. data/ext/did_you_mean/ruby_headers/220/vm_opts.h +0 -56
  112. data/ext/did_you_mean/vm_method.c +0 -28
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e1033d354e037bc0692601ada07f60c9498c33b3
4
- data.tar.gz: 8085bc0924570971f292f56adeae61e81d12c1b4
3
+ metadata.gz: 17d1aa077937ae14999fe9cf7f30ad339b9d7ff0
4
+ data.tar.gz: f93090d72fbafed6291f073926a32c36930adcfb
5
5
  SHA512:
6
- metadata.gz: a17c629b1736f6974693334a786cce0bde8cf1fb95ad93863c645998030dc0d8a5cc569c476b1f683643c1cf32bf8ff27132d94efe684389d9903a7688fe06ab
7
- data.tar.gz: 7af66ef499e3d2e24bf65d3637d4218b0bc5dfb59e4f9bf77727d0a77fa8fc3ea1885d49dbf90e5c9bbdf3be6cd6ee1b918dab04a8777af722feb0b1f11cf871
6
+ metadata.gz: a73eb4adec3501a186751d7806190d763db5f96fc848ca990ef28a6c736309739090c40aff0914634d7f9448b99e77e45167a4e24cc338fd807ed98ec3a6bf54
7
+ data.tar.gz: f344c68e841947506a6ee465a7f8bc74f0ee7eaf4d749f438e5f57c38c50c5fa7191a995c4bc3afee02fd8680cfc86a5bdb93d7b98214e4ace701cf42a8c9805
data/CHANGELOG.md CHANGED
@@ -1,3 +1,27 @@
1
+ ## [v0.9.4](https://github.com/yuki24/did_you_mean/tree/v0.9.4)
2
+
3
+ _<sup>released on 2014-11-18 03:51:41 UTC</sup>_
4
+
5
+ #### Bug Fixes
6
+
7
+ - Fixed a bug where no suggestions will be made in JRuby
8
+
9
+ ## [v0.9.3](https://github.com/yuki24/did_you_mean/tree/v0.9.3)
10
+
11
+ _<sup>released on 2014-11-18 03:19:24 UTC</sup>_
12
+
13
+ #### Internal Changes
14
+
15
+ - Replaced the crazy C extension with a so much better one (thanks to [@nobu](https://github.com/nobu)!)
16
+
17
+ ## [v0.9.2](https://github.com/yuki24/did_you_mean/tree/v0.9.2)
18
+
19
+ _<sup>released on 2014-11-17 15:32:33 UTC</sup>_
20
+
21
+ #### Bug Fixes
22
+
23
+ - Fixed a bug where did\_you\_mean doesn't compile on Ruby 2.1.2/2.1.5 ( [#16](https://github.com/yuki24/did_you_mean/issues/16 "Gem building failed on Debian 6.0.10 x86\_64"))
24
+
1
25
  ## [v0.9.1](https://github.com/yuki24/did_you_mean/tree/v0.9.1)
2
26
 
3
27
  _<sup>released on 2014-11-16 18:54:24 UTC</sup>_
@@ -1,26 +1,3 @@
1
1
  require 'mkmf'
2
- require_relative '../../lib/did_you_mean/version'
3
-
4
- version =
5
- case RUBY_VERSION
6
- when /1.9.3/, /2.0.0/, /2.1.[0-5]/, /2.2.\d/
7
- RUBY_VERSION
8
- else
9
- message =
10
- "\033[91m" "Unsupported Ruby version!" "\033[39m" "\n" \
11
- "\n" \
12
- "\033[32m" \
13
- " Sorry, did_you_mean #{DidYouMean::VERSION} doesn't work with Ruby #{RUBY_VERSION}.\n" \
14
- " If you've upgraded Ruby recently, try upgrading did_you_mean gem:\n" \
15
- "\n" \
16
- "\033[0m" \
17
- " $ bundle update did_you_mean\n" \
18
- "\033[39m" \
19
-
20
- raise RuntimeError.new(message)
21
- end.tr(".", "")
22
-
23
- ruby_header_path = File.join(File.dirname(File.realpath(__FILE__)), "ruby_headers")
24
- $CFLAGS += " -I#{ruby_header_path}/#{version}"
25
2
 
26
3
  create_makefile 'did_you_mean/method_missing'
@@ -1,109 +1,20 @@
1
1
  #include <ruby.h>
2
- #include "internal.h"
3
- #include "vm_method.c"
4
2
 
5
- #ifndef UNREACHABLE
6
- # define UNREACHABLE /* unreachable */
7
- #endif
8
-
9
- static inline const rb_data_type_t *
10
- threadptr_data_type(void)
11
- {
12
- static const rb_data_type_t *thread_data_type;
13
- if (!thread_data_type) {
14
- VALUE current_thread = rb_thread_current();
15
- thread_data_type = RTYPEDDATA_TYPE(current_thread);
16
- }
17
- return thread_data_type;
18
- }
19
-
20
- #define ruby_thread_data_type *threadptr_data_type()
21
- #define ruby_threadptr_data_type *threadptr_data_type()
22
-
23
- #define ruby_current_thread ((rb_thread_t *)RTYPEDDATA_DATA(rb_thread_current()))
24
-
25
- NORETURN(static void raise_method_missing(rb_thread_t *th, int argc, const VALUE *argv,
26
- VALUE obj, int call_status));
27
-
28
- static VALUE
29
- rb_method_missing(int argc, const VALUE *argv, VALUE obj)
30
- {
31
- rb_thread_t *th;
32
- GetThreadPtr(rb_thread_current(), th);
33
- raise_method_missing(th, argc, argv, obj, th->method_missing_reason);
34
- UNREACHABLE;
35
- }
36
-
37
- #define NOEX_MISSING 0x80
3
+ static const rb_data_type_t *type;
38
4
 
39
5
  static VALUE
40
- make_no_method_exception(VALUE exc, const char *format, VALUE obj, int argc, const VALUE *argv)
41
- {
42
- int n = 0;
43
- VALUE mesg;
44
- VALUE args[3];
45
-
46
- if (!format) {
47
- format = "undefined method `%s' for %s";
48
- }
49
- mesg = rb_const_get(exc, rb_intern("message"));
50
- // if (rb_method_basic_definition_p(CLASS_OF(mesg), '!')) {
51
- // args[n++] = rb_name_err_mesg_new(mesg, rb_str_new2(format), obj, argv[0]);
52
- // }
53
- // else {
54
- args[n++] = rb_funcall(mesg, '!', 3, rb_str_new2(format), obj, argv[0]);
55
- // }
56
-
57
- args[n++] = argv[0];
58
- if (exc == rb_eNoMethodError) {
59
- args[n++] = rb_ary_new4(argc - 1, argv + 1);
60
- rb_ary_store(args[n - 1], 0, obj);
61
- }
62
- return rb_class_new_instance(n, args, exc);
63
- }
64
-
65
- static void
66
- raise_method_missing(rb_thread_t *th, int argc, const VALUE *argv, VALUE obj,
67
- int last_call_status)
6
+ name_err_receiver(VALUE self)
68
7
  {
69
- VALUE exc = rb_eNoMethodError;
70
- const char *format = 0;
71
-
72
- if (argc == 0 || !SYMBOL_P(argv[0])) {
73
- rb_raise(rb_eArgError, "no id given");
74
- }
75
-
76
- ruby_stack_check();
77
-
78
- if (last_call_status & NOEX_PRIVATE) {
79
- format = "private method `%s' called for %s";
80
- }
81
- else if (last_call_status & NOEX_PROTECTED) {
82
- format = "protected method `%s' called for %s";
83
- }
84
- else if (last_call_status & NOEX_VCALL) {
85
- format = "undefined local variable or method `%s' for %s";
86
- exc = rb_eNameError;
87
- }
88
- else if (last_call_status & NOEX_SUPER) {
89
- format = "super: no superclass method `%s' for %s";
90
- }
91
-
92
- {
93
- exc = make_no_method_exception(exc, format, obj, argc, argv);
94
- if (!(last_call_status & NOEX_MISSING)) {
95
- th->cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(th->cfp);
96
- }
97
- rb_exc_raise(exc);
98
- }
8
+ VALUE *ptr, mesg = rb_attr_get(self, rb_intern("mesg"));
9
+ TypedData_Get_Struct(mesg, VALUE, type, ptr);
10
+ return ptr[1];
99
11
  }
100
12
 
101
13
  void
102
14
  Init_method_missing()
103
15
  {
104
- VALUE defined_class;
105
- rb_method_entry_t *me;
16
+ VALUE err_mesg = rb_funcall(rb_cNameErrorMesg, '!', 3, Qnil, Qnil, Qnil);
17
+ type = RTYPEDDATA(err_mesg)->type;
106
18
 
107
- me = search_method(rb_cBasicObject, rb_intern("method_missing"), &defined_class);
108
- me->def->body.cfunc.func = rb_method_missing;
19
+ rb_define_method(rb_eNameError, "receiver", name_err_receiver, 0);
109
20
  }
@@ -51,8 +51,7 @@ public class ReceiverCapturer extends JavaMethodNBlock {
51
51
  private void appendReceiverToException(RaiseException exception, IRubyObject self) {
52
52
  if (exception.getException() instanceof RubyNoMethodError) {
53
53
  RubyNoMethodError noMethodError = (RubyNoMethodError) exception.getException();
54
- RubyArray array = (RubyArray) noMethodError.args();
55
- array.append(self);
54
+ noMethodError.setInstanceVariable("@receiver", self);
56
55
  }
57
56
  }
58
57
  }
@@ -4,7 +4,7 @@ module DidYouMean
4
4
  attr_reader :method_name, :receiver
5
5
 
6
6
  def initialize(exception)
7
- @method_name, @receiver = exception.name, exception.args.first
7
+ @method_name, @receiver = exception.name, exception.receiver
8
8
  end
9
9
 
10
10
  def words
@@ -35,6 +35,7 @@ module DidYouMean
35
35
  when 'jruby'
36
36
  require 'did_you_mean/receiver_capturer'
37
37
  org.yukinishijima.ReceiverCapturer.setup(JRuby.runtime)
38
+ NoMethodError.send(:attr, :receiver)
38
39
  else
39
40
  finders.delete("NoMethodError")
40
41
  end
@@ -1,3 +1,3 @@
1
1
  module DidYouMean
2
- VERSION = "0.9.2"
2
+ VERSION = "0.9.4"
3
3
  end
@@ -9,6 +9,6 @@ class NoMethodErrorExtensionTest < Minitest::Test
9
9
  end
10
10
 
11
11
  def test_receiver
12
- assert_same @receiver, @error.args.first
12
+ assert_same @receiver, @error.receiver
13
13
  end
14
14
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: did_you_mean
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.2
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yuki Nishijima
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-17 00:00:00.000000000 Z
11
+ date: 2014-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: interception
@@ -104,109 +104,6 @@ files:
104
104
  - ext/did_you_mean/extconf.rb
105
105
  - ext/did_you_mean/method_missing.c
106
106
  - ext/did_you_mean/org/yukinishijima/ReceiverCapturer.java
107
- - ext/did_you_mean/ruby_headers/193/debug.h
108
- - ext/did_you_mean/ruby_headers/193/id.h
109
- - ext/did_you_mean/ruby_headers/193/internal.h
110
- - ext/did_you_mean/ruby_headers/193/method.h
111
- - ext/did_you_mean/ruby_headers/193/node.h
112
- - ext/did_you_mean/ruby_headers/193/ruby_atomic.h
113
- - ext/did_you_mean/ruby_headers/193/thread_pthread.h
114
- - ext/did_you_mean/ruby_headers/193/thread_win32.h
115
- - ext/did_you_mean/ruby_headers/193/vm_core.h
116
- - ext/did_you_mean/ruby_headers/193/vm_opts.h
117
- - ext/did_you_mean/ruby_headers/200/id.h
118
- - ext/did_you_mean/ruby_headers/200/internal.h
119
- - ext/did_you_mean/ruby_headers/200/method.h
120
- - ext/did_you_mean/ruby_headers/200/node.h
121
- - ext/did_you_mean/ruby_headers/200/ruby_atomic.h
122
- - ext/did_you_mean/ruby_headers/200/thread_pthread.h
123
- - ext/did_you_mean/ruby_headers/200/thread_win32.h
124
- - ext/did_you_mean/ruby_headers/200/vm_core.h
125
- - ext/did_you_mean/ruby_headers/200/vm_debug.h
126
- - ext/did_you_mean/ruby_headers/200/vm_opts.h
127
- - ext/did_you_mean/ruby_headers/210/id.h
128
- - ext/did_you_mean/ruby_headers/210/internal.h
129
- - ext/did_you_mean/ruby_headers/210/method.h
130
- - ext/did_you_mean/ruby_headers/210/node.h
131
- - ext/did_you_mean/ruby_headers/210/ruby_atomic.h
132
- - ext/did_you_mean/ruby_headers/210/thread_native.h
133
- - ext/did_you_mean/ruby_headers/210/thread_pthread.h
134
- - ext/did_you_mean/ruby_headers/210/thread_win32.h
135
- - ext/did_you_mean/ruby_headers/210/vm_core.h
136
- - ext/did_you_mean/ruby_headers/210/vm_debug.h
137
- - ext/did_you_mean/ruby_headers/210/vm_opts.h
138
- - ext/did_you_mean/ruby_headers/211/id.h
139
- - ext/did_you_mean/ruby_headers/211/internal.h
140
- - ext/did_you_mean/ruby_headers/211/method.h
141
- - ext/did_you_mean/ruby_headers/211/node.h
142
- - ext/did_you_mean/ruby_headers/211/ruby_atomic.h
143
- - ext/did_you_mean/ruby_headers/211/thread_native.h
144
- - ext/did_you_mean/ruby_headers/211/thread_pthread.h
145
- - ext/did_you_mean/ruby_headers/211/thread_win32.h
146
- - ext/did_you_mean/ruby_headers/211/vm_core.h
147
- - ext/did_you_mean/ruby_headers/211/vm_debug.h
148
- - ext/did_you_mean/ruby_headers/211/vm_opts.h
149
- - ext/did_you_mean/ruby_headers/212/id.h
150
- - ext/did_you_mean/ruby_headers/212/internal.h
151
- - ext/did_you_mean/ruby_headers/212/method.h
152
- - ext/did_you_mean/ruby_headers/212/node.h
153
- - ext/did_you_mean/ruby_headers/212/ruby_atomic.h
154
- - ext/did_you_mean/ruby_headers/212/thread_native.h
155
- - ext/did_you_mean/ruby_headers/212/thread_pthread.h
156
- - ext/did_you_mean/ruby_headers/212/thread_win32.h
157
- - ext/did_you_mean/ruby_headers/212/vm_core.h
158
- - ext/did_you_mean/ruby_headers/212/vm_debug.h
159
- - ext/did_you_mean/ruby_headers/212/vm_opts.h
160
- - ext/did_you_mean/ruby_headers/213/id.h
161
- - ext/did_you_mean/ruby_headers/213/internal.h
162
- - ext/did_you_mean/ruby_headers/213/method.h
163
- - ext/did_you_mean/ruby_headers/213/node.h
164
- - ext/did_you_mean/ruby_headers/213/ruby_atomic.h
165
- - ext/did_you_mean/ruby_headers/213/thread_native.h
166
- - ext/did_you_mean/ruby_headers/213/thread_pthread.h
167
- - ext/did_you_mean/ruby_headers/213/thread_win32.h
168
- - ext/did_you_mean/ruby_headers/213/vm_core.h
169
- - ext/did_you_mean/ruby_headers/213/vm_debug.h
170
- - ext/did_you_mean/ruby_headers/213/vm_opts.h
171
- - ext/did_you_mean/ruby_headers/214/id.h
172
- - ext/did_you_mean/ruby_headers/214/internal.h
173
- - ext/did_you_mean/ruby_headers/214/method.h
174
- - ext/did_you_mean/ruby_headers/214/node.h
175
- - ext/did_you_mean/ruby_headers/214/ruby_atomic.h
176
- - ext/did_you_mean/ruby_headers/214/thread_native.h
177
- - ext/did_you_mean/ruby_headers/214/thread_pthread.h
178
- - ext/did_you_mean/ruby_headers/214/thread_win32.h
179
- - ext/did_you_mean/ruby_headers/214/vm_core.h
180
- - ext/did_you_mean/ruby_headers/214/vm_debug.h
181
- - ext/did_you_mean/ruby_headers/214/vm_opts.h
182
- - ext/did_you_mean/ruby_headers/215/id.h
183
- - ext/did_you_mean/ruby_headers/215/internal.h
184
- - ext/did_you_mean/ruby_headers/215/method.h
185
- - ext/did_you_mean/ruby_headers/215/node.h
186
- - ext/did_you_mean/ruby_headers/215/ruby_atomic.h
187
- - ext/did_you_mean/ruby_headers/215/thread_native.h
188
- - ext/did_you_mean/ruby_headers/215/thread_pthread.h
189
- - ext/did_you_mean/ruby_headers/215/thread_win32.h
190
- - ext/did_you_mean/ruby_headers/215/vm_core.h
191
- - ext/did_you_mean/ruby_headers/215/vm_debug.h
192
- - ext/did_you_mean/ruby_headers/215/vm_opts.h
193
- - ext/did_you_mean/ruby_headers/220/ccan/check_type/check_type.h
194
- - ext/did_you_mean/ruby_headers/220/ccan/container_of/container_of.h
195
- - ext/did_you_mean/ruby_headers/220/ccan/list/list.h
196
- - ext/did_you_mean/ruby_headers/220/ccan/str/str.h
197
- - ext/did_you_mean/ruby_headers/220/id.h
198
- - ext/did_you_mean/ruby_headers/220/internal.h
199
- - ext/did_you_mean/ruby_headers/220/method.h
200
- - ext/did_you_mean/ruby_headers/220/node.h
201
- - ext/did_you_mean/ruby_headers/220/ruby_atomic.h
202
- - ext/did_you_mean/ruby_headers/220/symbol.h
203
- - ext/did_you_mean/ruby_headers/220/thread_native.h
204
- - ext/did_you_mean/ruby_headers/220/thread_pthread.h
205
- - ext/did_you_mean/ruby_headers/220/thread_win32.h
206
- - ext/did_you_mean/ruby_headers/220/vm_core.h
207
- - ext/did_you_mean/ruby_headers/220/vm_debug.h
208
- - ext/did_you_mean/ruby_headers/220/vm_opts.h
209
- - ext/did_you_mean/vm_method.c
210
107
  - gemfiles/activerecord_30.gemfile
211
108
  - gemfiles/activerecord_31.gemfile
212
109
  - gemfiles/activerecord_32.gemfile
@@ -1,41 +0,0 @@
1
- /**********************************************************************
2
-
3
- debug.h - YARV Debug function interface
4
-
5
- $Author$
6
- created at: 04/08/25 02:33:49 JST
7
-
8
- Copyright (C) 2004-2007 Koichi Sasada
9
-
10
- **********************************************************************/
11
-
12
- #ifndef RUBY_DEBUG_H
13
- #define RUBY_DEBUG_H
14
-
15
- #include "ruby/ruby.h"
16
- #include "node.h"
17
-
18
- #if defined __GNUC__ && __GNUC__ >= 4
19
- #pragma GCC visibility push(default)
20
- #endif
21
-
22
- #define dpv(h,v) ruby_debug_print_value(-1, 0, (h), (v))
23
- #define dp(v) ruby_debug_print_value(-1, 0, "", (v))
24
- #define dpi(i) ruby_debug_print_id(-1, 0, "", (i))
25
- #define dpn(n) ruby_debug_print_node(-1, 0, "", (n))
26
-
27
- #define bp() ruby_debug_breakpoint()
28
-
29
- VALUE ruby_debug_print_value(int level, int debug_level, const char *header, VALUE v);
30
- ID ruby_debug_print_id(int level, int debug_level, const char *header, ID id);
31
- NODE *ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node);
32
- int ruby_debug_print_indent(int level, int debug_level, int indent_level);
33
- void ruby_debug_breakpoint(void);
34
- void ruby_debug_gc_check_func(void);
35
- void ruby_set_debug_option(const char *str);
36
-
37
- #if defined __GNUC__ && __GNUC__ >= 4
38
- #pragma GCC visibility pop
39
- #endif
40
-
41
- #endif /* RUBY_DEBUG_H */
@@ -1,171 +0,0 @@
1
- /* DO NOT EDIT THIS FILE DIRECTLY */
2
- /**********************************************************************
3
-
4
- id.h -
5
-
6
- $Author$
7
- created at: Sun Oct 19 21:12:51 2008
8
-
9
- Copyright (C) 2007 Koichi Sasada
10
-
11
- **********************************************************************/
12
-
13
- #ifndef RUBY_ID_H
14
- #define RUBY_ID_H
15
-
16
- enum ruby_id_types {
17
- RUBY_ID_LOCAL = 0x00,
18
- RUBY_ID_INSTANCE = 0x01,
19
- RUBY_ID_GLOBAL = 0x03,
20
- RUBY_ID_ATTRSET = 0x04,
21
- RUBY_ID_CONST = 0x05,
22
- RUBY_ID_CLASS = 0x06,
23
- RUBY_ID_JUNK = 0x07,
24
- RUBY_ID_INTERNAL = RUBY_ID_JUNK,
25
- RUBY_ID_SCOPE_SHIFT = 3,
26
- RUBY_ID_SCOPE_MASK = ~(~0U<<RUBY_ID_SCOPE_SHIFT)
27
- };
28
-
29
- #define ID_SCOPE_SHIFT RUBY_ID_SCOPE_SHIFT
30
- #define ID_SCOPE_MASK RUBY_ID_SCOPE_MASK
31
- #define ID_LOCAL RUBY_ID_LOCAL
32
- #define ID_INSTANCE RUBY_ID_INSTANCE
33
- #define ID_GLOBAL RUBY_ID_GLOBAL
34
- #define ID_ATTRSET RUBY_ID_ATTRSET
35
- #define ID_CONST RUBY_ID_CONST
36
- #define ID_CLASS RUBY_ID_CLASS
37
- #define ID_JUNK RUBY_ID_JUNK
38
- #define ID_INTERNAL RUBY_ID_INTERNAL
39
-
40
- #define ID2ATTRSET(id) (((id)&~ID_SCOPE_MASK)|ID_ATTRSET)
41
-
42
- #define symIFUNC ID2SYM(idIFUNC)
43
- #define symCFUNC ID2SYM(idCFUNC)
44
-
45
- #define RUBY_TOKEN_DOT2 128
46
- #define RUBY_TOKEN_DOT3 129
47
- #define RUBY_TOKEN_UPLUS 130
48
- #define RUBY_TOKEN_UMINUS 131
49
- #define RUBY_TOKEN_POW 132
50
- #define RUBY_TOKEN_DSTAR 133
51
- #define RUBY_TOKEN_CMP 134
52
- #define RUBY_TOKEN_LSHFT 135
53
- #define RUBY_TOKEN_RSHFT 136
54
- #define RUBY_TOKEN_LEQ 137
55
- #define RUBY_TOKEN_GEQ 138
56
- #define RUBY_TOKEN_EQ 139
57
- #define RUBY_TOKEN_EQQ 140
58
- #define RUBY_TOKEN_NEQ 141
59
- #define RUBY_TOKEN_MATCH 142
60
- #define RUBY_TOKEN_NMATCH 143
61
- #define RUBY_TOKEN_AREF 144
62
- #define RUBY_TOKEN_ASET 145
63
- #define RUBY_TOKEN_COLON2 146
64
- #define RUBY_TOKEN_COLON3 147
65
- #define RUBY_TOKEN(t) RUBY_TOKEN_##t
66
-
67
- enum ruby_method_ids {
68
- idDot2 = RUBY_TOKEN(DOT2),
69
- idDot3 = RUBY_TOKEN(DOT3),
70
- idUPlus = RUBY_TOKEN(UPLUS),
71
- idUMinus = RUBY_TOKEN(UMINUS),
72
- idPow = RUBY_TOKEN(POW),
73
- idCmp = RUBY_TOKEN(CMP),
74
- idPLUS = '+',
75
- idMINUS = '-',
76
- idMULT = '*',
77
- idDIV = '/',
78
- idMOD = '%',
79
- idLT = '<',
80
- idLTLT = RUBY_TOKEN(LSHFT),
81
- idLE = RUBY_TOKEN(LEQ),
82
- idGT = '>',
83
- idGE = RUBY_TOKEN(GEQ),
84
- idEq = RUBY_TOKEN(EQ),
85
- idEqq = RUBY_TOKEN(EQQ),
86
- idNeq = RUBY_TOKEN(NEQ),
87
- idNot = '!',
88
- idBackquote = '`',
89
- idEqTilde = RUBY_TOKEN(MATCH),
90
- idNeqTilde = RUBY_TOKEN(NMATCH),
91
- idAREF = RUBY_TOKEN(AREF),
92
- idASET = RUBY_TOKEN(ASET),
93
- tPRESERVED_ID_BEGIN = 147,
94
- idNULL,
95
- idEmptyP,
96
- idEqlP,
97
- idRespond_to,
98
- idRespond_to_missing,
99
- idIFUNC,
100
- idCFUNC,
101
- id_core_set_method_alias,
102
- id_core_set_variable_alias,
103
- id_core_undef_method,
104
- id_core_define_method,
105
- id_core_define_singleton_method,
106
- id_core_set_postexe,
107
- id_core_hash_from_ary,
108
- id_core_hash_merge_ary,
109
- id_core_hash_merge_ptr,
110
- id_core_hash_merge_kwd,
111
- tPRESERVED_ID_END,
112
- tFreeze,
113
- tInspect,
114
- tIntern,
115
- tObject_id,
116
- tConst_missing,
117
- tMethodMissing,
118
- tMethod_added,
119
- tSingleton_method_added,
120
- tMethod_removed,
121
- tSingleton_method_removed,
122
- tMethod_undefined,
123
- tSingleton_method_undefined,
124
- tLength,
125
- tSize,
126
- tGets,
127
- tSucc,
128
- tEach,
129
- tProc,
130
- tLambda,
131
- tSend,
132
- t__send__,
133
- t__attached__,
134
- tInitialize,
135
- tInitialize_copy,
136
- tInitialize_clone,
137
- tInitialize_dup,
138
- tUScore,
139
- #define TOKEN2LOCALID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
140
- TOKEN2LOCALID(Freeze),
141
- TOKEN2LOCALID(Inspect),
142
- TOKEN2LOCALID(Intern),
143
- TOKEN2LOCALID(Object_id),
144
- TOKEN2LOCALID(Const_missing),
145
- TOKEN2LOCALID(MethodMissing),
146
- TOKEN2LOCALID(Method_added),
147
- TOKEN2LOCALID(Singleton_method_added),
148
- TOKEN2LOCALID(Method_removed),
149
- TOKEN2LOCALID(Singleton_method_removed),
150
- TOKEN2LOCALID(Method_undefined),
151
- TOKEN2LOCALID(Singleton_method_undefined),
152
- TOKEN2LOCALID(Length),
153
- TOKEN2LOCALID(Size),
154
- TOKEN2LOCALID(Gets),
155
- TOKEN2LOCALID(Succ),
156
- TOKEN2LOCALID(Each),
157
- TOKEN2LOCALID(Proc),
158
- TOKEN2LOCALID(Lambda),
159
- TOKEN2LOCALID(Send),
160
- TOKEN2LOCALID(__send__),
161
- TOKEN2LOCALID(__attached__),
162
- TOKEN2LOCALID(Initialize),
163
- TOKEN2LOCALID(Initialize_copy),
164
- TOKEN2LOCALID(Initialize_clone),
165
- TOKEN2LOCALID(Initialize_dup),
166
- TOKEN2LOCALID(UScore),
167
- tLAST_OP_ID = tPRESERVED_ID_END-1,
168
- idLAST_OP_ID = tLAST_OP_ID >> ID_SCOPE_SHIFT
169
- };
170
-
171
- #endif /* RUBY_ID_H */