Skip to content

Commit ae6a273

Browse files
committed
Install RBS only if RUBY_VERSION => “3.0.0”
1 parent 37493a9 commit ae6a273

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Gemfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,7 @@ source "https://rubygems.org"
22

33
gemspec
44

5-
gem "rbs", "~> 3.4"
6-
gem "rdoc"
5+
if RUBY_VERSION >= "3.0.0"
6+
gem "rbs", "~> 3.4"
7+
gem "rdoc"
8+
end

test/test_rbs_types.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
require 'test/unit'
22
require 'mutex_m'
3-
require 'rbs/unit_test'
3+
begin
4+
require 'rbs/unit_test'
5+
rescue LoadError
6+
return
7+
end
48

59
module RBSTypeTest
610
class Mutex_mInstanceTest < Test::Unit::TestCase

0 commit comments

Comments
 (0)