From 28c3385707c7d60993ffd61c33fef3f202fdfe94 Mon Sep 17 00:00:00 2001 From: Viuginov Nickolay Date: Fri, 23 Mar 2018 01:09:51 +0300 Subject: [PATCH 01/15] check if debase installed (already_installed doesn't work) --- ext/mkrf_conf.rb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/ext/mkrf_conf.rb b/ext/mkrf_conf.rb index c8170ac..ece549f 100644 --- a/ext/mkrf_conf.rb +++ b/ext/mkrf_conf.rb @@ -1,11 +1,6 @@ jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE) rbx = defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE -def already_installed(dep) - !Gem::DependencyInstaller.new(:domain => :local).find_gems_with_sources(dep).empty? || - !Gem::DependencyInstaller.new(:domain => :local,:prerelease => true).find_gems_with_sources(dep).empty? -end - unless jruby || rbx require 'rubygems' require 'rubygems/command.rb' @@ -14,14 +9,14 @@ def already_installed(dep) begin Gem::Command.build_args = ARGV - rescue NoMethodError + rescue NoMethodError end if RUBY_VERSION < "1.9" dep = Gem::Dependency.new("ruby-debug-base", '>=0.10.4') elsif RUBY_VERSION < '2.0' dep = Gem::Dependency.new("ruby-debug-base19x", '>=0.11.30.pre15') - else + else dep = Gem::Dependency.new("debase", '> 0') end @@ -38,7 +33,7 @@ def already_installed(dep) puts e.backtrace.join "\n " exit(1) end - end unless dep.nil? || already_installed(dep) + end unless dep.nil? || dep.matching_specs.any? end # create dummy rakefile to indicate success From 336412613ad3b0beec491efa9da737272ddd02c3 Mon Sep 17 00:00:00 2001 From: Olle Jonsson Date: Fri, 10 Apr 2020 22:18:46 +0200 Subject: [PATCH 02/15] gemspec: Drop defunct property rubyforge_project --- ruby-debug-ide.gemspec | 1 - 1 file changed, 1 deletion(-) diff --git a/ruby-debug-ide.gemspec b/ruby-debug-ide.gemspec index 47af820..354e648 100644 --- a/ruby-debug-ide.gemspec +++ b/ruby-debug-ide.gemspec @@ -44,5 +44,4 @@ EOF spec.required_ruby_version = '>= 1.8.2' spec.date = DateTime.now - spec.rubyforge_project = 'debug-commons' end From d92045574298f984cfbd87b7677cb538d006985d Mon Sep 17 00:00:00 2001 From: Nickolay Viuginov Date: Tue, 14 Apr 2020 03:34:10 +0300 Subject: [PATCH 03/15] bump version to 0.7.2 --- lib/ruby-debug-ide/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby-debug-ide/version.rb b/lib/ruby-debug-ide/version.rb index 5caee7d..a2f1c88 100755 --- a/lib/ruby-debug-ide/version.rb +++ b/lib/ruby-debug-ide/version.rb @@ -1,3 +1,3 @@ module Debugger - IDE_VERSION='0.7.1.beta3' + IDE_VERSION='0.7.2' end From 83b5d22f71879cad0a1dd0b2a9a5f1d7a9aabc5b Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Thu, 17 Sep 2020 11:12:59 +0300 Subject: [PATCH 04/15] Removed JetBrains badge. Supposed to be used only for projects under https://github.com/JetBrains/ --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 0125c3b..df07515 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -[![official JetBrains project](http://jb.gg/badges/official.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub) [![Gem Version](https://badge.fury.io/rb/ruby-debug-ide.svg)][gem] [![Build Status](https://travis-ci.org/ruby-debug/ruby-debug-ide.svg?branch=master)](https://travis-ci.org/ruby-debug/ruby-debug-ide) From ecccbb3ac11e8bbf9819762f9f8748402d54d237 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Thu, 16 Sep 2021 14:01:40 +0300 Subject: [PATCH 05/15] Update email in the gemspec --- ruby-debug-ide.gemspec | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruby-debug-ide.gemspec b/ruby-debug-ide.gemspec index 354e648..be0917f 100644 --- a/ruby-debug-ide.gemspec +++ b/ruby-debug-ide.gemspec @@ -30,8 +30,8 @@ EOF spec.version = RUBY_DEBUG_IDE_VERSION - spec.author = "Markus Barchfeld, Martin Krauskopf, Mark Moseley, JetBrains RubyMine Team" - spec.email = "rubymine-feedback@jetbrains.com" + spec.author = "Markus Barchfeld, Martin Krauskopf, Mark Moseley, Alexandr Evstigneev" + spec.email = "hurricup@gmail.com" spec.license = "MIT" spec.platform = Gem::Platform::RUBY spec.require_path = "lib" From cd6c9648f72f39f388a9206555c85a32df971661 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Thu, 16 Sep 2021 14:03:35 +0300 Subject: [PATCH 06/15] RUBY-28068 use __send__ instead of send --- lib/ruby-debug-ide/thread_alias.rb | 6 +++--- lib/ruby-debug-ide/xml_printer.rb | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/ruby-debug-ide/thread_alias.rb b/lib/ruby-debug-ide/thread_alias.rb index 4e10a7b..4b2054d 100644 --- a/lib/ruby-debug-ide/thread_alias.rb +++ b/lib/ruby-debug-ide/thread_alias.rb @@ -8,7 +8,7 @@ def do_thread_alias end Object.const_set :OldThread, ::Thread - Object.send :remove_const, :Thread + Object.__send__ :remove_const, :Thread Object.const_set :Thread, ::Debugger::DebugThread end @@ -18,9 +18,9 @@ def undo_thread_alias return end - Object.send :remove_const, :Thread + Object.__send__ :remove_const, :Thread Object.const_set :Thread, ::OldThread - Object.send :remove_const, :OldThread + Object.__send__ :remove_const, :OldThread end end end diff --git a/lib/ruby-debug-ide/xml_printer.rb b/lib/ruby-debug-ide/xml_printer.rb index b009fdd..9dcf0c9 100644 --- a/lib/ruby-debug-ide/xml_printer.rb +++ b/lib/ruby-debug-ide/xml_printer.rb @@ -208,13 +208,13 @@ def exec_with_timeout(sec, error_message) end def exec_with_allocation_control(value, exec_method, overflow_message_type) - return value.send exec_method unless Debugger.trace_to_s + return value.__send__ exec_method unless Debugger.trace_to_s memory_limit = Debugger.debugger_memory_limit time_limit = Debugger.inspect_time_limit if defined?(JRUBY_VERSION) || RUBY_VERSION < '2.0' || memory_limit <= 0 - return exec_with_timeout(time_limit * 1e-3, "Timeout: evaluation of #{exec_method} took longer than #{time_limit}ms.") { value.send exec_method } + return exec_with_timeout(time_limit * 1e-3, "Timeout: evaluation of #{exec_method} took longer than #{time_limit}ms.") { value.__send__ exec_method } end require 'objspace' @@ -245,7 +245,7 @@ def exec_with_allocation_control(value, exec_method, overflow_message_type) end end trace_point.enable - result = value.send exec_method + result = value.__send__ exec_method trace_queue << result trace_point.disable end From 7dfebf99acc5d07966aeeae8b17f95520f7b7ba2 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Mon, 20 Sep 2021 12:25:58 +0300 Subject: [PATCH 07/15] release 0.7.3 --- lib/ruby-debug-ide/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby-debug-ide/version.rb b/lib/ruby-debug-ide/version.rb index a2f1c88..cc001a5 100755 --- a/lib/ruby-debug-ide/version.rb +++ b/lib/ruby-debug-ide/version.rb @@ -1,3 +1,3 @@ module Debugger - IDE_VERSION='0.7.2' + IDE_VERSION='0.7.3' end From 799cb903e744985e301d8b101d430ccf9f4846f9 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Mon, 20 Sep 2021 12:41:55 +0300 Subject: [PATCH 08/15] Added gen_travis rake task, updated .travis.yml --- .travis.yml | 60 ++++++++++++++++++++++++++--------------------------- Rakefile | 51 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+), 31 deletions(-) diff --git a/.travis.yml b/.travis.yml index 15a86ed..493afb0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,39 +1,37 @@ language: ruby dist: trusty -os: - - linux - - osx - -rvm: - - 1.8.7 - - 1.9.3 - - 2.0.0 - - 2.1.10 - - 2.2.8 - - 2.3.8 - - 2.4.6 - - 2.5.5 - - 2.6.3 - - ruby-head - matrix: fast_finish: true - allow_failures: - - rvm: ruby-head - - exclude: + include: + - os: linux + rvm: 3.0.1 - os: osx - rvm: 1.9.3 + rvm: 3.0.1 + - os: linux + rvm: 2.7.3 - os: osx - rvm: 2.0.0 - + rvm: 2.7.3 + - os: linux + rvm: 2.6.7 + - os: osx + rvm: 2.6.7 + - os: linux + rvm: 2.5.9 - os: osx + rvm: 2.5.9 + - os: linux + rvm: 2.4.10 + - os: osx + rvm: 2.4.10 + - os: linux + rvm: 2.3.8 + - os: linux + rvm: 2.2.10 + - os: linux + rvm: 2.1.10 + - os: linux + rvm: 2.0.0 + - os: linux + rvm: 1.9.3 + - os: linux rvm: 1.8.7 - -# include: -# - os: osx -# rvm: 1.9.3 -# before_script: rvm install ruby-1.9.3 # not binary -# - os: osx -# rvm: 2.0.0 -# before_script: rvm install ruby-2.0.0 # not binary diff --git a/Rakefile b/Rakefile index a169aee..7a74d18 100644 --- a/Rakefile +++ b/Rakefile @@ -39,4 +39,55 @@ task :changelog, :since_c, :until_c do |t,args| end puts changelog_content +end + +desc "Generates travis.yaml" +task :gen_travis do + versions = [] + + def versions.add(major:, minor:, include_macos: true) + self << { major: major, minor: [minor], include_macos: include_macos } + end + + versions.add major: '3.0', minor: 1 + versions.add major: '2.7', minor: 3 + versions.add major: '2.6', minor: 7 + versions.add major: '2.5', minor: 9 + versions.add major: '2.4', minor: 10 + versions.add major: '2.3', minor: 8, include_macos: false + versions.add major: '2.2', minor: 10, include_macos: false + versions.add major: '2.1', minor: 10, include_macos: false + versions.add major: '2.0', minor: 0, include_macos: false + versions.add major: '1.9', minor: 3, include_macos: false + versions.add major: '1.8', minor: 7, include_macos: false + + puts < Date: Tue, 27 Dec 2022 09:05:55 +0400 Subject: [PATCH 09/15] RUBY-30747 updated testing matrix See #236 --- .travis.yml | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/.travis.yml b/.travis.yml index 493afb0..f812bcb 100644 --- a/.travis.yml +++ b/.travis.yml @@ -4,34 +4,32 @@ matrix: fast_finish: true include: - os: linux - rvm: 3.0.1 + rvm: 3.2 - os: osx - rvm: 3.0.1 + rvm: 3.2 - os: linux - rvm: 2.7.3 + rvm: 3.1 - os: osx - rvm: 2.7.3 + rvm: 3.1 - os: linux - rvm: 2.6.7 + rvm: 3.0 - os: osx - rvm: 2.6.7 + rvm: 3.0 - os: linux - rvm: 2.5.9 + rvm: 2.7 - os: osx - rvm: 2.5.9 + rvm: 2.7 - os: linux - rvm: 2.4.10 + rvm: 2.6 - os: osx - rvm: 2.4.10 + rvm: 2.6 - os: linux - rvm: 2.3.8 - - os: linux - rvm: 2.2.10 - - os: linux - rvm: 2.1.10 - - os: linux - rvm: 2.0.0 + rvm: 2.5 + - os: osx + rvm: 2.5 - os: linux - rvm: 1.9.3 + rvm: 2.4 + - os: osx + rvm: 2.4 - os: linux - rvm: 1.8.7 + rvm: 2.3 From 4cb8ea22823755532ac6bf7f2944b32c18dc123a Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Fri, 15 Sep 2023 18:45:04 +0200 Subject: [PATCH 10/15] Skip ruby-debug-ide mkrf_conf.rb on non-CRuby --- ext/mkrf_conf.rb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ext/mkrf_conf.rb b/ext/mkrf_conf.rb index d92b761..290936a 100644 --- a/ext/mkrf_conf.rb +++ b/ext/mkrf_conf.rb @@ -1,8 +1,6 @@ install_dir = File.expand_path("../../../..", __FILE__) -jruby = defined?(JRUBY_VERSION) || (defined?(RUBY_ENGINE) && 'jruby' == RUBY_ENGINE) -rbx = defined?(RUBY_ENGINE) && 'rbx' == RUBY_ENGINE -unless jruby || rbx +if !defined?(RUBY_ENGINE) || RUBY_ENGINE == 'ruby' require 'rubygems' require 'rubygems/command.rb' require 'rubygems/dependency.rb' From bc073e950002f786a5bc02394551ab2865139ed2 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Sat, 14 Dec 2024 10:15:32 +0300 Subject: [PATCH 11/15] Updated dependencies --- Gemfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Gemfile b/Gemfile index c36df53..aa73b8b 100644 --- a/Gemfile +++ b/Gemfile @@ -14,12 +14,12 @@ if RUBY_VERSION < '1.9' || defined?(JRUBY_VERSION) gem "ruby-debug-base", :platforms => [:jruby, *mries('18')] end -if RUBY_VERSION && RUBY_VERSION >= "1.9" - gem "ruby-debug-base19x", ">= 0.11.32", :platforms => mries('19') +if RUBY_VERSION && RUBY_VERSION >= "1.9" && RUBY_VERSION > "2.0" + gem "ruby-debug-base19x", ">= 0.11.32" end if RUBY_VERSION && RUBY_VERSION >= "2.0" - gem "debase", "~> 0.2", ">= 0.2.2", :platforms => mries('20', '21', '22', '23', '24', '25') + gem "debase", "~> 0.2", ">= 0.2.8" end gemspec From 5d0bd2c4037b7868ca7a6e9ca66aaef760df4f0b Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Sat, 14 Dec 2024 10:39:39 +0300 Subject: [PATCH 12/15] Version 0.7.4 --- lib/ruby-debug-ide/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby-debug-ide/version.rb b/lib/ruby-debug-ide/version.rb index cc001a5..9397e2e 100755 --- a/lib/ruby-debug-ide/version.rb +++ b/lib/ruby-debug-ide/version.rb @@ -1,3 +1,3 @@ module Debugger - IDE_VERSION='0.7.3' + IDE_VERSION='0.7.4' end From 762f8c9b5ba8bf365b032ebd4e4934d356d62539 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Mon, 3 Feb 2025 11:01:32 +0300 Subject: [PATCH 13/15] Fixed constraint for the ruby 1.9 backend --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index aa73b8b..ee35cbd 100644 --- a/Gemfile +++ b/Gemfile @@ -14,7 +14,7 @@ if RUBY_VERSION < '1.9' || defined?(JRUBY_VERSION) gem "ruby-debug-base", :platforms => [:jruby, *mries('18')] end -if RUBY_VERSION && RUBY_VERSION >= "1.9" && RUBY_VERSION > "2.0" +if RUBY_VERSION && RUBY_VERSION >= "1.9" && RUBY_VERSION < "2.0" gem "ruby-debug-base19x", ">= 0.11.32" end From 595121fe5598f786c134d3596f50c96f36bc5c08 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Mon, 3 Feb 2025 11:01:46 +0300 Subject: [PATCH 14/15] Updated debase dependency to 0.2.9 --- Gemfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index ee35cbd..af81c0e 100644 --- a/Gemfile +++ b/Gemfile @@ -19,7 +19,7 @@ if RUBY_VERSION && RUBY_VERSION >= "1.9" && RUBY_VERSION < "2.0" end if RUBY_VERSION && RUBY_VERSION >= "2.0" - gem "debase", "~> 0.2", ">= 0.2.8" + gem "debase", "~> 0.2", ">= 0.2.9" end gemspec From 3a74a475779012a97eaa203d854c100263f231e5 Mon Sep 17 00:00:00 2001 From: Alexandr Evstigneev Date: Mon, 3 Feb 2025 11:04:57 +0300 Subject: [PATCH 15/15] Version 0.7.5 --- lib/ruby-debug-ide/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ruby-debug-ide/version.rb b/lib/ruby-debug-ide/version.rb index 9397e2e..22185b9 100755 --- a/lib/ruby-debug-ide/version.rb +++ b/lib/ruby-debug-ide/version.rb @@ -1,3 +1,3 @@ module Debugger - IDE_VERSION='0.7.4' + IDE_VERSION='0.7.5' end