# A sample Gemfile source 'https://rubygems.org' gemspec gem 'pry' gem 'rake-notes' gem 'simplecov' gem 'metric_fu' gem 'inch' # This hack inspired by rspec... branch = begin File.read(File.expand_path('../maintenance-branch', __FILE__)).chomp rescue 'master' end %w(omnitest-core psychic skeptic).each do |lib| library_path = File.expand_path("../../#{lib}", __FILE__) gem_name = lib.start_with?('omnitest') ? lib : "omnitest-#{lib}" if File.exist?(library_path) && !ENV['USE_GIT_REPOS'] gem gem_name, path: library_path else gem gem_name, git: "git://github.com/omnitest/#{lib}.git", branch: branch end end