From 0b584ab8ccd3c04f3db3c53e16f1618e9df1868b Mon Sep 17 00:00:00 2001 From: MSP-Greg Date: Mon, 29 Jul 2019 20:16:21 -0500 Subject: [PATCH] update puma.ps1 for nio4r & Ruby 2.2 [skip travis] (#1872) --- win_gem_test/puma.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/win_gem_test/puma.ps1 b/win_gem_test/puma.ps1 index 89fbfce457..01dea20bc7 100644 --- a/win_gem_test/puma.ps1 +++ b/win_gem_test/puma.ps1 @@ -34,6 +34,15 @@ function Pre-Compile { Write-Host Compiling With $env:SSL_VERS } +#———————————————————————————————————————————————————————————————— Pre-Gem-Install +function Pre-Gem-Install { + if ($ruby -lt '23') { + gem install -N --no-user-install nio4r:2.3.1 + } else { + gem install -N --no-user-install nio4r + } +} + #———————————————————————————————————————————————————————————————— Run-Tests function Run-Tests { # call with comma separated list of gems to install or update