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 |