Pass ActiveSupport::JSON.decode a string and not an IO when interfacing with GitHub API
Pass ActiveSupport::JSON.decode a string and not an IO when interfacing with GitHub API

In older versions (< 4.1) of ActiveSupport, this worked because
ActiveSupport used MultiJSON, which would invoke #read if it
responded to it (https://github.com/intridea/multi_json/blob/v1.8.4/lib/multi_json/adapters/json_common.rb#L9).
However, newer versions of ActiveSupport, starting in 4.1, use
ruby's standard JSON gem (https://github.com/rails/rails/commit/ce4456fde6f45f1abd020cbdeb520d401299e01f),
which expects a String. Reading the IO that #open returns
to us and passing the resulting String to JSON.decode ensures
compatibility with all versions of ActiveSupport.

guodongme/kaminari,sanrodari/kaminari,thiagorp/kaminari,joe1chen/kaminari,yui-knk/kaminari,mrhead/kaminari,Teino1978-Corp/Teino1978-Corp-kaminari,danimashu/kaminari,iberianpig/kaminari,sanrodari/kaminari,epicagency/kaminari,danimashu/kaminari,sachin21/kaminari,wkirschbaum/kaminari,sr-education/kaminari,varvet/kaminari,bsboris/kaminari,antstorm/kaminari,epicagency/kaminari,Zhomart/kaminari,joe1chen/kaminari,Boomkat/kaminari,dblock/kaminari,fkagami/kaminari,sideci-sample/sideci-sample-kaminari,wkirschbaum/kaminari,Boomkat/kaminari,sendgrid/kaminari,onursarikaya/kaminari,kaminari/kaminari,jiamaozheng/kaminari,Zhomart/kaminari,bsboris/kaminari,jiamaozheng/kaminari,mperrando/kaminari,mperrando/kaminari,thiagorp/kaminari,mrstif/cursor,Teino1978-Corp/Teino1978-Corp-kaminari,yui-knk/kaminari,plribeiro3000/kaminari,jcoyne/kaminari,sr-education/kaminari,peter-umb/umbie_kaminari,sendgrid/kaminari,plribeiro3000/kaminari,amatsuda/kaminari,bonekost/kaminari,antstorm/kaminari,parity/kaminari,royels/kaminari,dblock/kaminari,onursarikaya/kaminari,royels/kaminari,sachin21/kaminari,JuanitoFatas/kaminari,aelogica/kaminari,iberianpig/kaminari,peter-umb/umbie_kaminari,pat/kaminari,aelogica/kaminari,JuanitoFatas/kaminari,sendgrid/kaminari,pat/kaminari,kaminari/kaminari,bonekost/kaminari,amatsuda/kaminari,barkbox/cursor,mrhead/kaminari,guodongme/kaminari,parity/kaminari,varvet/kaminari