debase 0.2.7 → 0.2.8

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af76c0e3d54fd797116e1b2f71d0e4b904846d2eed97c17df586a162ec9de110
4
- data.tar.gz: 1e355349293790de799118aae3876b02c1152aaabc7ffbe00579a0aef7228d8c
3
+ metadata.gz: 93e33f5100d3d8b028473b4029e0a00d5afea0d50bc6f1632acdfadb3e026d17
4
+ data.tar.gz: 2965496b5e18dccb35d0690fa79580240bbe4aea481bafaad326c9842d227547
5
5
  SHA512:
6
- metadata.gz: 6ebbeef9ebc594b30c8724272ca90f3b7f54ff607c18ebb1711ebc783c3251d1ce41dd30ab542d3ec10c746847314978d6f1f32522d304e568fea9d7d45c4f2e
7
- data.tar.gz: 02106b81d1b6f070546c8f5c05c0f3b384ec9e97528f32f421b7e19394607f60da98a2a5fd2f73b3c0284dd6a3577e1fc45b60a9cfcd0d81849b322126fc1248
6
+ metadata.gz: 0f57cac25d5896572046875bc687f641842a2eaede65bc8a6e0089c22b32f3634f860cd2f9c090061654d1ecc43b9891b38f25d834371b0729966a1c7c0938fb
7
+ data.tar.gz: b6ae4a026a7ace177bdb8d2c7a089589557fc3c3ca4a1f6aba3f0242435dc7cc4be275922b98f0c991bae9b8c85cbd94de3a6643f0e25097816e642c5181b8bf
@@ -316,7 +316,7 @@ call_at_line(debug_context_t *context, char *file, int line, VALUE context_objec
316
316
  int count_stack_size() {
317
317
  rb_thread_t *thread = ruby_current_thread;
318
318
  rb_control_frame_t *last_cfp = TH_CFP(thread);
319
- const rb_control_frame_t *start_cfp = RUBY_VM_END_CONTROL_FRAME(TH_INFO(thread));
319
+ const rb_control_frame_t *start_cfp = (rb_control_frame_t *)RUBY_VM_END_CONTROL_FRAME(TH_INFO(thread));
320
320
  const rb_control_frame_t *cfp;
321
321
 
322
322
  ptrdiff_t size, i;
@@ -715,12 +715,14 @@ Debase_enable_file_filtering(VALUE self, VALUE value)
715
715
  }
716
716
  }
717
717
  #else
718
- static void
718
+ static VALUE
719
719
  Debase_set_trace_flag_to_iseq(VALUE self, VALUE rb_iseq) {
720
+ return Qnil;
720
721
  }
721
722
 
722
- static void
723
+ static VALUE
723
724
  Debase_unset_trace_flags(VALUE self, VALUE rb_iseq) {
725
+ return Qnil;
724
726
  }
725
727
  #endif
726
728
 
data/ext/extconf.rb CHANGED
@@ -39,14 +39,31 @@ hdrs = proc {
39
39
  # $CFLAGS='-fPIC -fno-strict-aliasing -g3 -ggdb -O2 -fPIC'
40
40
  config_file = File.join(File.dirname(__FILE__), 'config_options.rb')
41
41
  load config_file if File.exist?(config_file)
42
+ cflags = [$CFLAGS]
43
+ cflags.push(*%w[
44
+ -Werror=implicit-function-declaration
45
+ -Werror=discarded-qualifiers
46
+ -Werror=incompatible-pointer-types
47
+ ])
48
+
49
+ if RbConfig::MAKEFILE_CONFIG['CC'].include?('clang')
50
+ cflags.push(*%w[
51
+ -Werror=incompatible-function-pointer-types
52
+ ])
53
+ end
42
54
 
43
- $CFLAGS += ' -Werror=implicit-function-declaration -Werror=discarded-qualifiers'
44
55
 
45
56
  if ENV['debase_debug']
46
- $CFLAGS += ' -Wall -Werror'
47
- $CFLAGS += ' -g3'
57
+ cflags.push(*%w[
58
+ -Wall
59
+ -Werror
60
+ -g3
61
+ ])
48
62
  end
49
63
 
64
+ $CFLAGS += ' ' + cflags.join(' ')
65
+
66
+
50
67
  dir_config("ruby")
51
68
  if !Debase::RubyCoreSource.create_makefile_with_core(hdrs, "debase_internals")
52
69
  STDERR.print("Makefile creation failed\n")
@@ -1,3 +1,3 @@
1
1
  module Debase
2
- VERSION = "0.2.7" unless defined? VERSION
2
+ VERSION = "0.2.8" unless defined? VERSION
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debase
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.7
4
+ version: 0.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexandr Evstigneev
8
8
  - Dennis Ushakov
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-11-12 00:00:00.000000000 Z
12
+ date: 2024-12-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debase-ruby_core_source
@@ -124,7 +124,7 @@ homepage: https://github.com/ruby-debug/debase
124
124
  licenses:
125
125
  - MIT
126
126
  metadata: {}
127
- post_install_message:
127
+ post_install_message:
128
128
  rdoc_options: []
129
129
  require_paths:
130
130
  - lib
@@ -139,8 +139,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
139
139
  - !ruby/object:Gem::Version
140
140
  version: '0'
141
141
  requirements: []
142
- rubygems_version: 3.3.7
143
- signing_key:
142
+ rubygems_version: 3.5.23
143
+ signing_key:
144
144
  specification_version: 4
145
145
  summary: debase is a fast implementation of the standard Ruby debugger debug.rb for
146
146
  Ruby 2.0+