Skip to content
Browse files

Raise error if json gem isn't installed

  • Loading branch information...
1 parent ccc0d93 commit e84a3cfbff0c20e908dbfdabff63be66b61ad572 @shayfrendt committed
Showing with 6 additions and 0 deletions.
  1. +6 −0 init.rb
View
6 init.rb
@@ -1,3 +1,9 @@
+begin
+ require 'json'
+rescue LoadError
+ raise "json gem is missing. Please install json: gem install json"
+end
+
module Heroku::Command
class Ranger < BaseWithApp
Help.group("Ranger") do |group|

0 comments on commit e84a3cf

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