Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

okjson #11

Merged
merged 1 commit into from

2 participants

@wuputah
Owner

Ok.

Closes #10.

@lstoll lstoll merged commit 0051a19 into heroku:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 29, 2012
  1. @wuputah

    okjson

    wuputah authored
This page is out of date. Refresh to see the latest.
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
Something went wrong with that request. Please try again.