Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

okjson

  • Loading branch information...
commit d897eee25fbec5266eb8b4546db21059c3743b32 1 parent ff76f8f
@wuputah wuputah authored
Showing with 2 additions and 7 deletions.
  1. +2 −7 lib/heroku/command/repo.rb
View
9 lib/heroku/command/repo.rb
@@ -1,9 +1,4 @@
-begin
- require 'json'
-rescue LoadError
- display "json gem is required for the Repo plugin"
- exit(1)
-end
+require "vendor/heroku/okjson"
# Slug manipulation
class Heroku::Command::Repo < Heroku::Command::BaseWithApp
@@ -80,7 +75,7 @@ def rebuild
private
def release
- @release ||= JSON.parse(heroku.get('/apps/' + app + '/releases/new'))
+ @release ||= Heroku::OkJson.decode(heroku.get('/apps/' + app + '/releases/new'))
end
def repo_get_url
Please sign in to comment.
Something went wrong with that request. Please try again.