# Declares a dependency to the git repo of CocoaPods gem. This declaration is
# compatible with the local git repos feature of Bundler.
#
def cp_gem(name, repo_name, branch = 'master')
  url = "https://github.com/CocoaPods/#{repo_name}.git"
  gem name, :git => url, :branch => branch
end

source 'http://rubygems.org'

gemspec

group :development do
  cp_gem 'claide',               'CLAide'
  gem 'cocoapods-core', :git => 'https://github.com/Thomvis/Core', :branch => "issue/CocoaPods/2556"
  cp_gem 'cocoapods-downloader', 'cocoapods-downloader'
  cp_gem 'cocoapods-plugins',    'cocoapods-plugins'
  cp_gem 'cocoapods-trunk',      'cocoapods-trunk'
  cp_gem 'cocoapods-try',        'cocoapods-try'
  cp_gem 'xcodeproj',            'Xcodeproj'

  gem 'bacon'
  gem 'mocha'
  gem 'mocha-on-bacon'
  gem 'prettybacon'
  gem 'webmock'

  # Integration tests
  gem 'diffy'
  gem 'clintegracon'

  if RUBY_VERSION >= '1.9.3'
    gem 'rubocop'
  end

  if RUBY_PLATFORM.include?('darwin')
    # Make Xcodeproj faster
    gem 'libxml-ruby'
  end
end

group :debugging do
  gem 'rb-fsevent'
  gem 'kicker'
  gem 'awesome_print'
  gem 'pry'
end

group :ruby_1_8_7 do
  # Lock the current lowest requirement for ActiveSupport 3 to ensure we don't
  # re-introduce https://github.com/CocoaPods/CocoaPods/issues/1950
  gem 'i18n', '0.6.4'
  gem 'mime-types', '< 2.0'
  gem 'activesupport', '< 4'
end
