debug 1.6.0 → 1.6.1

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
2
  SHA256:
3
- metadata.gz: cb9c418ee481ed3b473973d522bb811949f6123501709d3385d9b2bf2a46d993
4
- data.tar.gz: d0036bac1930ec7e920e9faeb66556a4a9132342ed604a909e15f9d02b4d6963
3
+ metadata.gz: 78f83c7a7b44c3cae68d784d70fd653410ebce976c02bf846a9992f102634d98
4
+ data.tar.gz: b34c3d6b060aa20db1794905aef969105070d556862ceac4cf02ccc88db9bf0a
5
5
  SHA512:
6
- metadata.gz: e9cb09ddeee150eac35f5f3044106f482e54e16b41cee4ab6d0678fa92a2c1aefad350412bdc00997892733cf0a58312372d3f40c0f22d5262223de46f31cd9b
7
- data.tar.gz: 68a846cc25aca6aab1429b3b36da57977c7c5671b21e9c6381f6d0b6d5fe7d28979fac53d1958da4de00c10445722a3fe1e386a871ee8b5638b3bf541cbf19ad
6
+ metadata.gz: c408ae087cd00a03e53410a9f6c3c54e2e4536d41784fb109dedd278d8b7941182a925593bf34991bfc2c15ed43e7baa20c736bde0aecb72b832fbdb4f4b55fe
7
+ data.tar.gz: b223e415ae539a0b95303b065f029afe48cd2007697979d66ca94e157d7823b848ffd40c1ccc5e2947d69a8aa1c23c08961ade262bc6315f267ec73176c2d882
data/exe/rdbg CHANGED
@@ -22,7 +22,7 @@ when :start
22
22
 
23
23
  when :attach
24
24
  require_relative "../lib/debug/client"
25
- ::DEBUGGER__::CONFIG.set_config **config
25
+ ::DEBUGGER__::CONFIG.set_config(**config)
26
26
 
27
27
  begin
28
28
  if ARGV.empty? && config[:port]
data/ext/debug/extconf.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'mkmf'
2
2
  require_relative '../../lib/debug/version'
3
3
  File.write("debug_version.h", "#define RUBY_DEBUG_VERSION \"#{DEBUGGER__::VERSION}\"\n")
4
-
4
+ $distcleanfiles << "debug_version.h"
5
5
 
6
6
  if defined? RubyVM
7
7
  $defs << '-DHAVE_RB_ISEQ_PARAMETERS'
data/lib/debug/session.rb CHANGED
@@ -1641,6 +1641,7 @@ module DEBUGGER__
1641
1641
 
1642
1642
  def method_added tp
1643
1643
  b = tp.binding
1644
+
1644
1645
  if var_name = b.local_variables.first
1645
1646
  mid = b.local_variable_get(var_name)
1646
1647
  resolved = true
@@ -1665,7 +1666,7 @@ module DEBUGGER__
1665
1666
  case mid
1666
1667
  when :method_added, :singleton_method_added
1667
1668
  Session.create_method_added_tracker(tp.self, mid)
1668
- Session.create_method_added_tracker unless resolved
1669
+ Session.activate_method_added_trackers unless resolved
1669
1670
  end
1670
1671
  end
1671
1672
  end
@@ -1673,6 +1674,10 @@ module DEBUGGER__
1673
1674
  class ::Module
1674
1675
  undef method_added
1675
1676
  def method_added mid; end
1677
+ end
1678
+
1679
+ class ::BasicObject
1680
+ undef singleton_method_added
1676
1681
  def singleton_method_added mid; end
1677
1682
  end
1678
1683
 
@@ -1698,8 +1703,8 @@ module DEBUGGER__
1698
1703
  end
1699
1704
 
1700
1705
  METHOD_ADDED_TRACKERS = Hash.new
1701
- create_method_added_tracker Module, :method_added, :instance_method
1702
- create_method_added_tracker Module, :singleton_method_added, :instance_method
1706
+ create_method_added_tracker Module, :method_added, :instance_method
1707
+ create_method_added_tracker BasicObject, :singleton_method_added, :instance_method
1703
1708
 
1704
1709
  def width
1705
1710
  @ui.width
data/lib/debug/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DEBUGGER__
4
- VERSION = "1.6.0"
4
+ VERSION = "1.6.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: debug
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Koichi Sasada
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-11 00:00:00.000000000 Z
11
+ date: 2022-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: irb