Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

okjson

  • Loading branch information...
commit a3e0c570c2c9491b6879610b4b0dba1d998b19cb 1 parent ff2cee5
Jonathan Dance authored October 03, 2012
2  init.rb
... ...
@@ -1,5 +1,5 @@
1 1
 require 'rbconfig'
2  
-%w[ json rest-client ].each do |gem_name|
  2
+%w[ rest-client ].each do |gem_name|
3 3
   begin
4 4
     require gem_name
5 5
   rescue LoadError
3  lib/heroku/command/extended/certs.rb
... ...
@@ -1,4 +1,5 @@
1 1
 require "heroku/command/certs" unless defined? Heroku::Command::Certs
  2
+require "vendor/heroku/okjson"
2 3
 
3 4
 class Heroku::Command::Certs
4 5
   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)
82 83
 
83 84
   def read_crt_and_key_through_ssl_doctor(action_text = nil)
84 85
     crt_and_key = post_to_ssl_doctor("resolve-chain-and-key", action_text)
85  
-    JSON.parse(crt_and_key).values_at("pem", "key")
  86
+    Heroku::OkJson.decode(crt_and_key).values_at("pem", "key")
86 87
   end
87 88
 
88 89
   def read_crt_through_ssl_doctor(action_text = nil)

0 notes on commit a3e0c57

Please sign in to comment.
Something went wrong with that request. Please try again.