Skip to content
This repository has been archived by the owner on Aug 15, 2019. It is now read-only.

Commit

Permalink
Add digest gem.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chew committed Dec 3, 2017
1 parent a3454a9 commit e9f37bb
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
source 'https://rubygems.org'
gem 'cinch'
gem 'digest'
13 changes: 13 additions & 0 deletions requiregems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,16 @@
require 'net/http'
require 'yaml'
require 'open-uri'
begin
require 'digest'
rescue LoadError
puts "You're missing the gem `digest`. Would you like to install this now? (y/n)"
input = gets.chomp
if input == 'y'
`gem install digest`
puts 'Gem installed! Continuing..'
else
puts 'To continue, install the digest gem'
exit
end
end

0 comments on commit e9f37bb

Please sign in to comment.