From cd2049fa35e7d943ad85d6d751f55fe32fb05671 Mon Sep 17 00:00:00 2001 From: Julien Marrec Date: Tue, 23 Apr 2024 14:15:52 +0200 Subject: [PATCH] Add byebug --- Gemfile | 2 ++ build_openstudio_gems.rb | 2 +- lib/rubygems_plugin.rb | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index 68c15c0..e4a3255 100644 --- a/Gemfile +++ b/Gemfile @@ -108,5 +108,7 @@ else end +gem 'byebug', '~> 11.1.3' + # leave this line in for now as we may try to get nokogiri to compile correctly on windows # gem 'nokogiri', '= 1.11.0.rc1.20200331222433', :github => 'jmarrec/nokogiri', :ref => 'MSVC_support' # master of 2020-03-31 + gemspec commit diff --git a/build_openstudio_gems.rb b/build_openstudio_gems.rb index 1ee56d2..1cfbf83 100644 --- a/build_openstudio_gems.rb +++ b/build_openstudio_gems.rb @@ -136,7 +136,7 @@ def make_package(install_dir, tar_exe, expected_ruby_version, bundler_version) lib_ext = RbConfig::CONFIG['LIBEXT'] libs = Dir.glob("./openstudio-gems/**/*.#{lib_ext}") lib_names_woext = Set.new(libs.map{|lib| File.basename(lib, File.extname(lib)) }) - expected = Set.new(["jaro_winkler_ext", "libll", "liboga", "msgpack"]) # unf_ext: disabled with json_schemer + expected = Set.new(["jaro_winkler_ext", "libll", "liboga", "msgpack", "byebug"]) # unf_ext: disabled with json_schemer if !is_unix expected.add("sqlite3_native") # TODO: I don't understand why we don't have it yet... end diff --git a/lib/rubygems_plugin.rb b/lib/rubygems_plugin.rb index 8cc4063..ff11912 100644 --- a/lib/rubygems_plugin.rb +++ b/lib/rubygems_plugin.rb @@ -89,7 +89,7 @@ def post_install elsif extname.to_s == "sqlite3" extname = "sqlite3_native" extconf_args = ["--enable-system-libraries", "--with-pkg-config=pkgconf"] - elsif extname.to_s == 'unfext' + elsif ['unfext', 'byebug'].include?(extname.to_s) # No-op else puts "Warning: rubygems_plugin.post_install: no configuration given for extension_dir=#{extension_dir}"