From 00b7b36516d1d07300870029ad5190f06122a493 Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 10 Oct 2012 19:56:35 +0200 Subject: first steps at reducing core --- Gemfile | 47 ++--------------------------------------------- 1 file changed, 2 insertions(+), 45 deletions(-) (limited to 'Gemfile') diff --git a/Gemfile b/Gemfile index 2aedae1..6d28e3d 100644 --- a/Gemfile +++ b/Gemfile @@ -1,57 +1,14 @@ source 'https://rubygems.org' -gem 'rails', '3.2.8' - -# Bundle edge Rails instead: -# gem 'rails', :git => 'git://github.com/rails/rails.git' - - -gem 'json' - -# Gems used only for assets and not required -# in production environments by default. -group :assets do - gem 'haml-rails', '~> 0.3.4' - gem 'sass-rails', '~> 3.2.5' - gem 'coffee-rails', '~> 3.2.2' - - # See https://github.com/sstephenson/execjs#readme for more supported runtimes - gem 'therubyracer', :platforms => :ruby - - gem 'uglifier', '>= 1.2.7' -end - -gem 'jquery-rails' -gem 'bootstrap-sass', '~> 2.0.4' -gem 'haml', '~> 3.1.7' -gem 'simple_form' +eval(File.read(File.dirname(__FILE__) + '/common_dependencies.rb')) +eval(File.read(File.dirname(__FILE__) + '/ui_dependencies.rb')) # EITHER fetch all of the leap_web gems in one go # gem 'leap_web' # OR use the local versions for development instead: -gem 'leap_web_core', :path => 'core' gem 'leap_web_users', :path => 'users' gem 'leap_web_certs', :path => 'certs' # gem 'leap_web_help', :path => 'help' -gem 'couchrest_session_store' - - -group :development, :test do - gem 'mocha' -end - -# To use ActiveModel has_secure_password -# gem 'bcrypt-ruby', '~> 3.0.0' - -# To use Jbuilder templates for JSON -# gem 'jbuilder' - -# Use unicorn as the app server -# gem 'unicorn' - -# Deploy with Capistrano -# gem 'capistrano' - # To use debugger gem 'ruby-debug' -- cgit v1.2.3 From add8d015c87a00626b739080bd75c7e7aeb9c1df Mon Sep 17 00:00:00 2001 From: Azul Date: Thu, 11 Oct 2012 10:22:34 +0200 Subject: moved core dependency into */Gemfile with :path In order to get the rails generators and the like to work properly in engines we need to require all the dependencies in the engine.rb file. Since I want to keep that list of engines in a centralized place we still need core and we need to require it from the other engines. We don't want to require the core gem to be installed so I added it with :path option to the Gemfile. --- Gemfile | 1 + 1 file changed, 1 insertion(+) (limited to 'Gemfile') diff --git a/Gemfile b/Gemfile index 6d28e3d..10c661a 100644 --- a/Gemfile +++ b/Gemfile @@ -6,6 +6,7 @@ eval(File.read(File.dirname(__FILE__) + '/ui_dependencies.rb')) # EITHER fetch all of the leap_web gems in one go # gem 'leap_web' # OR use the local versions for development instead: +gem "leap_web_core", :path => 'core' gem 'leap_web_users', :path => 'users' gem 'leap_web_certs', :path => 'certs' # gem 'leap_web_help', :path => 'help' -- cgit v1.2.3