-
Notifications
You must be signed in to change notification settings - Fork 70
Installing the pact mock_service gem on Windows
Michel Boudreau edited this page Jan 7, 2015
·
1 revision
Ruby on Windows can be a bit finicky and needs to coaxing to get it to work. Follow these instructions and you should be on your way.
Forget Ruby 2.x, the latest and greatest seems unstable on Windows and I recommend the old stable release Ruby 1.9.x with the appropriate Dev Kit (on the same page as the Ruby download) and RubyGems. After Ruby has been installed, you must setup the DevKit; run the install package and extract it wherever, then run within that directory:
ruby dk.rb init
ruby dk.rb install
Install RubyGems then downgrade it to a previous version for compatibility reasons (don't ask):
gem update --system 2.0.3
Finally, you can install the mock service for pact. Run the following command to install it globally:
gem i json pact-mock_service
And you're done.