I've installed the ruby devkit on Windows 7 but it's unable to install json using the following command:
gem install json --platform=ruby
I'm getting this error:
ERROR: Could not find a valid gem 'json' (>= 0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv2/v3 read server hello A: unknown protocol (https://api.rubygems.org/specs.4.8.gz)
I'm on ruby 2.3.1p112 with RubyGems 2.5.1.
If you have a Gemfile, change the first line in Gemfile from https to http, it should do the trick. Also, you can install gems global by creating a Gemfile and running bundle install from the directory the Gemfile is created. So, instead of using the gem install command, create a Gemfile and run bundle install in it. This is the original
Change to
If you don't, you can pass the -s option to gem install and specify the url to http://rubygems.org