Skip to content

Commit

Permalink
Merge pull request #11 from wuputah/okjson
Browse files Browse the repository at this point in the history
okjson
  • Loading branch information
lstoll committed Jun 29, 2012
2 parents ff76f8f + d897eee commit 0051a19
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions lib/heroku/command/repo.rb
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 0051a19

Please sign in to comment.