Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

okjson

  • Loading branch information...
commit a3e0c570c2c9491b6879610b4b0dba1d998b19cb 1 parent ff2cee5
@wuputah authored
Showing with 3 additions and 2 deletions.
  1. +1 −1  init.rb
  2. +2 −1  lib/heroku/command/extended/certs.rb
View
2  init.rb
@@ -1,5 +1,5 @@
require 'rbconfig'
-%w[ json rest-client ].each do |gem_name|
+%w[ rest-client ].each do |gem_name|
begin
require gem_name
rescue LoadError
View
3  lib/heroku/command/extended/certs.rb
@@ -1,4 +1,5 @@
require "heroku/command/certs" unless defined? Heroku::Command::Certs
+require "vendor/heroku/okjson"
class Heroku::Command::Certs
SSL_DOCTOR = RestClient::Resource.new(ENV["SSL_DOCTOR_URL"] || "https://ssl-doctor.herokuapp.com/")
@@ -82,7 +83,7 @@ def post_to_ssl_doctor(path, action_text = nil)
def read_crt_and_key_through_ssl_doctor(action_text = nil)
crt_and_key = post_to_ssl_doctor("resolve-chain-and-key", action_text)
- JSON.parse(crt_and_key).values_at("pem", "key")
+ Heroku::OkJson.decode(crt_and_key).values_at("pem", "key")
end
def read_crt_through_ssl_doctor(action_text = nil)
Please sign in to comment.
Something went wrong with that request. Please try again.