# File lib/jeweler/commands/check_dependencies.rb, line 10
      def run
        missing_dependencies = dependencies.select do |dependency|
          begin
            Gem.activate dependency.name, *dependency.requirement.as_list
            false
          rescue LoadError => e
            true
          end
        end

        if missing_dependencies.empty?
          puts "#{type || 'All'} dependencies seem to be installed."
        else
          puts "Missing some dependencies. Install them with the following commands:"
          missing_dependencies.each do |dependency|
            puts %Q{\tgem install #{dependency.name} --version "#{dependency.requirement.to_s}"}
          end

          abort "Run the specified gem commands before trying to run this again: #{$0} #{ARGV.join(' ')}"
        end
      end