Server in China can't reach rubygems.org so install fails

HTTP 200 OK
Query List: []
Could not find email_reply_trimmer-0.0.6 in any of the sources

I, [2016-02-10T11:52:36.804974 #38]  INFO -- : Terminating async processes
I, [2016-02-10T11:52:36.805054 #38]  INFO -- : Sending INT to HOME=/var/lib/postgresql USER=postgres exec chpst -u postgres:postgres:ssl-cert -U postgres:postgres:ssl-cert /usr/lib/postgresql/9.3/bin/postmaster -D /etc/postgresql/9.3/main pid: 108
I, [2016-02-10T11:52:36.805132 #38]  INFO -- : Sending TERM to exec chpst -u redis -U redis /usr/bin/redis-server /etc/redis/redis.conf pid: 236
2016-02-10 11:52:36 UTC [108-2] LOG:  received fast shutdown request
2016-02-10 11:52:36 UTC [108-3] LOG:  aborting any active transactions
2016-02-10 11:52:36 UTC [115-2] LOG:  autovacuum launcher shutting down
2016-02-10 11:52:36 UTC [112-1] LOG:  shutting down
236:signal-handler (1455105156) Received SIGTERM scheduling shutdown...
236:M 10 Feb 11:52:36.881 # User requested shutdown...
236:M 10 Feb 11:52:36.882 * Saving the final RDB snapshot before exiting.
236:M 10 Feb 11:52:36.886 * DB saved on disk
236:M 10 Feb 11:52:36.886 # Redis is now ready to exit, bye bye...
2016-02-10 11:52:36 UTC [112-2] LOG:  database system is shut down