summaryrefslogtreecommitdiff
path: root/Gemfile
diff options
context:
space:
mode:
authorazul <azul@leap.se>2014-06-18 22:09:11 +0200
committerazul <azul@leap.se>2014-06-18 22:09:11 +0200
commit110bc16297d7736f1025bfa85f3551313e913d84 (patch)
tree588b0852cbafdaaa3dcc1c4284b30139e0480f08 /Gemfile
parent3051a51a4b7d51994e7cd8d90f0cdf5f237a0a4d (diff)
parent240fd8f1efe9e76540787a17a13dcaf345c7933e (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--Gemfile36
1 files changed, 31 insertions, 5 deletions
diff --git a/Gemfile b/Gemfile
index ae11e0e..79e6e45 100644
--- a/Gemfile
+++ b/Gemfile
@@ -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
+