lib/fir.rb in fir-cli-1.0.3 vs lib/fir.rb in fir-cli-1.0.4

- old
+ new

@@ -57,30 +57,30 @@ res = RestClient.get(url, params: params) rescue RestClient::Exception => e logger.error e.response exit 1 end - JSON.parse(res.body, symbolize_names: true) + JSON.parse(res.body.force_encoding("UTF-8"), symbolize_names: true) end def post url, query, content_type = :json begin res = RestClient.post(url, query, { content_type: content_type }) rescue RestClient::Exception => e logger.error e.response exit 1 end - JSON.parse(res.body, symbolize_names: true) + JSON.parse(res.body.force_encoding("UTF-8"), symbolize_names: true) end def put url, query, content_type = :json begin res = RestClient.put(url, query, { content_type: content_type }) rescue RestClient::Exception => e logger.error e.response exit 1 end - JSON.parse(res.body, symbolize_names: true) + JSON.parse(res.body.force_encoding("UTF-8"), symbolize_names: true) end alias_method :☠, :exit end end