Ruby Support on Windows

Has anyone managed to tweak the pre-installed ruby environment so that can compile gems?

I am using ruby2.devkit , but it requires msys2. I would rather not install either given the problems with using msys.

Here is my latest job https://travis-ci.org/jayvdb/coala-bears/jobs/547079066
(All the choco work is hidden under powershell -c "fudge install")

Even then, I cant install travis.rb easily , because it depends on pusher-client which depends on json, which needs -lgmp , and … ouch … I gave up and added gem "pusher-client", "~>0.4.0" to my Gemfile because that version doesnt need the json gem.

Also I found that adding DevKit to the PATH caused everything to run extremely slowly.
See the durations of the commands at https://travis-ci.org/jayvdb/coala-bears/jobs/546698689

I think I have fixed that by adding the following to the beginning of the job to turn off Windows Defender.

- powershell -command 'Set-MpPreference -DisableRealtimeMonitoring $true'
- powershell -command 'Set-MpPreference -DisableArchiveScanning $true'
- powershell -command 'Set-MpPreference -DisableBehaviorMonitoring $true'