Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #11 from wuputah/okjson

okjson
  • Loading branch information...
commit 0051a19ad85677a8de8bccbd857ca007cd89c74d 2 parents ff76f8f + d897eee
@lstoll lstoll 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.