summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2022-03-09 23:29:08 -0300
committerAndré Luis Leal Cardoso Junior <andrehjr@gmail.com>2022-03-09 23:47:09 -0300
commit32910268c671a4392d9c4c286646cf793a405a51 (patch)
treebc1faabde18069b3b7b89a1e8297343907b4eb92
parent3db124158ed892dee6189b3323283a54a5a7ee54 (diff)
downloadpry-32910268c671a4392d9c4c286646cf793a405a51.tar.gz
Add ruby 3.0 to the windows test matrix
-rw-r--r--.github/workflows/test.yml2
-rw-r--r--lib/pry/helpers/platform.rb2
2 files changed, 1 insertions, 3 deletions
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index a1f1253a..7a214427 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -35,8 +35,6 @@ jobs:
- os: windows-latest
ruby: '2.3' # Intermittent failing Expression: RBASIC_CLASS(ret) == rb_cString
- os: windows-latest
- ruby: '3.0'
- - os: windows-latest
ruby: '3.1'
runs-on: ${{ matrix.os }}
diff --git a/lib/pry/helpers/platform.rb b/lib/pry/helpers/platform.rb
index b04fa3e4..3af4d3f7 100644
--- a/lib/pry/helpers/platform.rb
+++ b/lib/pry/helpers/platform.rb
@@ -28,7 +28,7 @@ class Pry
def self.windows_ansi?
return false unless windows?
- !!(defined?(Win32::Console) || Pry::Env['ANSICON'] || mri_2?)
+ !!(defined?(Win32::Console) || Pry::Env['ANSICON'] || mri?)
end
# @return [Boolean]