[前][次][番号順一覧][スレッド一覧]

ruby-changes:73065

From: Hiroshi <ko1@a...>
Date: Fri, 26 Aug 2022 12:16:10 +0900 (JST)
Subject: [ruby-changes:73065] bd1b1eeb0e (master): ruby-prof is now optional

https://git.ruby-lang.org/ruby.git/commit/?id=bd1b1eeb0e

From bd1b1eeb0e528da983e76216d459a1d61aa026cb Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Fri, 26 Aug 2022 10:49:11 +0900
Subject: ruby-prof is now optional

---
 common.mk                            | 2 +-
 spec/syntax_suggest/unit/api_spec.rb | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/common.mk b/common.mk
index a7e379c672..77aebce312 100644
--- a/common.mk
+++ b/common.mk
@@ -1423,7 +1423,7 @@ no-test-syntax-suggest-prepare: no-test-syntax-suggest-precheck https://github.com/ruby/ruby/blob/trunk/common.mk#L1423
 yes-test-syntax-suggest-prepare: yes-test-syntax-suggest-precheck
 	$(ACTIONS_GROUP)
 	$(XRUBY) -C "$(srcdir)" bin/gem install --no-document \
-		--install-dir .bundle --conservative "bundler" "rake" "rspec:~> 3" "ruby-prof"
+		--install-dir .bundle --conservative "bundler" "rake" "rspec:~> 3" #"ruby-prof"
 	$(ACTIONS_ENDGROUP)
 
 RSPECOPTS =
diff --git a/spec/syntax_suggest/unit/api_spec.rb b/spec/syntax_suggest/unit/api_spec.rb
index 284a4cdeec..21df86bb3e 100644
--- a/spec/syntax_suggest/unit/api_spec.rb
+++ b/spec/syntax_suggest/unit/api_spec.rb
@@ -1,7 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/spec/syntax_suggest/unit/api_spec.rb#L1
 # frozen_string_literal: true
 
 require_relative "../spec_helper"
-require "ruby-prof"
+begin
+  require "ruby-prof"
+rescue LoadError
+end
 
 module SyntaxSuggest
   RSpec.describe "Top level SyntaxSuggest api" do
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]