Skip to content

Instantly share code, notes, and snippets.

View mattbee's full-sized avatar

Matt Bee mattbee

  • ImpactEd
  • Sevenoaks, United Kingdom
View GitHub Profile

Contract Killer

The popular open-source contract for web designers and developers by Stuff & Nonsense

  • Originally published: 23/12/2008
  • Revised date: 15/12/2013
  • Original post

#!/usr/bin/env ruby
REQUIRED_GEMS = %w(rubocop)
REQUIRED_GEMS.each do |gem_name|
begin
require gem_name
rescue LoadError => e
puts "=" * 50
puts "Please ensure that '#{gem_name}' is installed on your system e.g. `gem install #{gem_name}`"
puts "=" * 50