diff options
author | azul <azul@leap.se> | 2014-06-18 22:09:11 +0200 |
---|---|---|
committer | azul <azul@leap.se> | 2014-06-18 22:09:11 +0200 |
commit | 110bc16297d7736f1025bfa85f3551313e913d84 (patch) | |
tree | 588b0852cbafdaaa3dcc1c4284b30139e0480f08 /Gemfile | |
parent | 3051a51a4b7d51994e7cd8d90f0cdf5f237a0a4d (diff) | |
parent | 240fd8f1efe9e76540787a17a13dcaf345c7933e (diff) |
Merge pull request #172 from elijh/feature/customgem
Add support for custom gems via a dynamic Gemfile
Diffstat (limited to 'Gemfile')
-rw-r--r-- | Gemfile | 36 |
1 files changed, 31 insertions, 5 deletions
@@ -1,5 +1,7 @@ source 'https://rubygems.org' +require File.expand_path('../lib/gemfile_tools.rb', __FILE__) + gem "rails", "~> 3.2.18" gem "couchrest", "~> 1.1.3" gem "couchrest_model", "~> 2.0.0" @@ -10,9 +12,6 @@ gem "json" gem "ruby-srp", "~> 0.2.1" gem "rails_warden" -gem 'leap_web_help', :path => 'engines/support' -gem 'leap_web_billing', :path => 'engines/billing' - gem 'http_accept_language' # To use debugger @@ -45,7 +44,7 @@ group :test do gem 'poltergeist' # headless js gem 'launchy' # save_and_open_page gem 'phantomjs-binaries' # binaries specific to the os - + # moching and stubbing gem 'mocha', '~> 0.13.0', :require => false gem 'minitest-stub-const' # why? @@ -53,7 +52,7 @@ group :test do # generating test data gem 'factory_girl_rails' # test data factories gem 'faker' # names and numbers for test data - + # billing tests gem 'fake_braintree', require: false end @@ -81,3 +80,30 @@ end # unreleased so far ... but leap_web_certs need it gem 'certificate_authority', :git => 'https://github.com/cchandler/certificate_authority.git' + +# +# include optional gems and engines +# + +group :test do + enabled_engines('test').each do |gem_name, gem_dir| + gem gem_name, :path => gem_dir + end +end + +group :development do + enabled_engines('development').each do |gem_name, gem_dir| + gem gem_name, :path => gem_dir + end +end + +group :production do + enabled_engines('production').each do |gem_name, gem_dir| + gem gem_name, :path => gem_dir + end +end + +custom_gems.each do |gem_name, gem_dir| + gem gem_name, :path => gem_dir +end + |