When I run
gem install
command the gem utility tries to access my home directory. It contains some non-latin char
gem
just run postinstall file pi.bat or pi.sh this file is in ./RubyDevKit/postinstall.
this worked for me. it seems that installer of cygwin broke my settings.