byebug 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/ext/byebug/breakpoint.c +2 -2
- data/ext/byebug/byebug.c +5 -5
- data/ext/byebug/context.c +2 -2
- data/lib/byebug/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6541893328ba036ff5ed811670bfc940b9fa1222
|
4
|
+
data.tar.gz: 1f61523cfd0e13a95a2a051a7b259ac1635c36c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bff6dbb90362f18ef5ccc5bc5e64d5d60d420932dfd9ac71a1fcdaa5f263c91a9bbe987044410d9f49c1c82e9e7ce43c9f3ce67d45263f135d58fe15323644df
|
7
|
+
data.tar.gz: bdffa66981b5155c2327719fd25bb1ab0c154e4006be076577128670c5765f711b2b7b18178e2f69fb54cb9c2934c5aeb670ebeed43c6cbaedcb59bdaa166a9a
|
data/CHANGELOG.md
CHANGED
data/ext/byebug/breakpoint.c
CHANGED
@@ -444,7 +444,7 @@ find_breakpoint_by_pos(VALUE breakpoints, VALUE source, VALUE pos,
|
|
444
444
|
|
445
445
|
file = RSTRING_PTR(source);
|
446
446
|
line = FIX2INT(pos);
|
447
|
-
for (i = 0; i <
|
447
|
+
for (i = 0; i < RARRAY_LENINT(breakpoints); i++)
|
448
448
|
{
|
449
449
|
breakpoint_object = rb_ary_entry(breakpoints, i);
|
450
450
|
if (check_breakpoint_by_pos(breakpoint_object, file, line) &&
|
@@ -464,7 +464,7 @@ find_breakpoint_by_method(VALUE breakpoints, VALUE klass, ID mid, VALUE binding,
|
|
464
464
|
VALUE breakpoint_object;
|
465
465
|
int i;
|
466
466
|
|
467
|
-
for (i = 0; i <
|
467
|
+
for (i = 0; i < RARRAY_LENINT(breakpoints); i++)
|
468
468
|
{
|
469
469
|
breakpoint_object = rb_ary_entry(breakpoints, i);
|
470
470
|
if (check_breakpoint_by_method(breakpoint_object, klass, mid, self) &&
|
data/ext/byebug/byebug.c
CHANGED
@@ -355,7 +355,7 @@ raise_event(VALUE trace_point, void *data)
|
|
355
355
|
}
|
356
356
|
|
357
357
|
ancestors = rb_mod_ancestors(expn_class);
|
358
|
-
for (i = 0; i <
|
358
|
+
for (i = 0; i < RARRAY_LENINT(ancestors); i++)
|
359
359
|
{
|
360
360
|
VALUE mod_name;
|
361
361
|
VALUE hit_count;
|
@@ -413,7 +413,7 @@ register_tracepoints(VALUE self)
|
|
413
413
|
tracepoints = traces;
|
414
414
|
}
|
415
415
|
|
416
|
-
for (i = 0; i <
|
416
|
+
for (i = 0; i < RARRAY_LENINT(traces); i++)
|
417
417
|
rb_tracepoint_enable(rb_ary_entry(traces, i));
|
418
418
|
}
|
419
419
|
|
@@ -422,7 +422,7 @@ clear_tracepoints(VALUE self)
|
|
422
422
|
{
|
423
423
|
int i;
|
424
424
|
|
425
|
-
for (i =
|
425
|
+
for (i = RARRAY_LENINT(tracepoints)-1; i >= 0; i--)
|
426
426
|
rb_tracepoint_disable(rb_ary_entry(tracepoints, i));
|
427
427
|
}
|
428
428
|
|
@@ -450,7 +450,7 @@ bb_contexts(VALUE self)
|
|
450
450
|
new_list = rb_ary_new();
|
451
451
|
list = rb_funcall(rb_cThread, rb_intern("list"), 0);
|
452
452
|
|
453
|
-
for (i = 0; i <
|
453
|
+
for (i = 0; i < RARRAY_LENINT(list); i++)
|
454
454
|
{
|
455
455
|
VALUE thread = rb_ary_entry(list, i);
|
456
456
|
thread_context_lookup(thread, &context);
|
@@ -460,7 +460,7 @@ bb_contexts(VALUE self)
|
|
460
460
|
threads_clear(threads);
|
461
461
|
Data_Get_Struct(threads, threads_table_t, t_tbl);
|
462
462
|
|
463
|
-
for (i = 0; i <
|
463
|
+
for (i = 0; i < RARRAY_LENINT(new_list); i++)
|
464
464
|
{
|
465
465
|
context = rb_ary_entry(new_list, i);
|
466
466
|
Data_Get_Struct(context, debug_context_t, dc);
|
data/ext/byebug/context.c
CHANGED
@@ -98,7 +98,7 @@ dc_frame_get(const debug_context_t *context, int frame_index,
|
|
98
98
|
if (NIL_P(dc_backtrace(context)))
|
99
99
|
rb_raise(rb_eRuntimeError, "Backtrace information is not available");
|
100
100
|
|
101
|
-
if (frame_index >=
|
101
|
+
if (frame_index >= RARRAY_LENINT(dc_backtrace(context)))
|
102
102
|
rb_raise(rb_eRuntimeError, "That frame doesn't exist!");
|
103
103
|
|
104
104
|
frame = rb_ary_entry(dc_backtrace(context), frame_index);
|
@@ -136,7 +136,7 @@ load_backtrace(const rb_debug_inspector_t *inspector)
|
|
136
136
|
VALUE locs = rb_debug_inspector_backtrace_locations(inspector);
|
137
137
|
int i;
|
138
138
|
|
139
|
-
for (i=0; i<
|
139
|
+
for (i=0; i<RARRAY_LENINT(locs); i++)
|
140
140
|
{
|
141
141
|
VALUE frame = rb_ary_new();
|
142
142
|
rb_ary_push(frame, rb_ary_entry(locs, i));
|
data/lib/byebug/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: byebug
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rodriguez
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-09-
|
13
|
+
date: 2013-09-25 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: columnize
|