Permalink
Browse files

make bundler a bit more packaging friendly.

  • Loading branch information...
1 parent 18c29e6 commit 9008500b75848212509f63bd1a2057462d0e09ca @ohadlevy ohadlevy committed Jun 20, 2012
View
@@ -8,7 +8,7 @@ config/settings.yaml
config/email.yaml
config/database.yml
Gemfile.lock
-Gemfile.local.rb
+bundler.d/Gemfile.local.rb
*.sw?
.idea
*.pyc
View
@@ -15,62 +15,7 @@ gem 'uuidtools'
# Previous versions collide with Environment model
gem "ruby_parser", ">= 2.3.1"
-local_gemfile = File.dirname(__FILE__) + "/Gemfile.local.rb"
-if File.file?(local_gemfile)
- puts "adding custom gem files"
- self.instance_eval(Bundler.read_file(local_gemfile))
-end
-
-group :fog do
- gem "fog", :git => "git://github.com/fog/fog.git"
- #gem "fog", ">= 1.3.2"
-end
-
-group :vmware do
- gem "rbvmomi"
-end
-
-group :libvirt do
- gem "virt", ">= 0.2.1"
-end
-
-group :ovirt do
- gem "rbovirt", ">= 0.0.12"
-end
-
-# database groups, you would most likely need to use only one of these
-# to disable the ones you don't want, simple run bundle install --without sqlite mysql mysql2 ...
-group :sqlite do
- gem 'sqlite3'
-end
-
-group :mysql do
- gem 'mysql'
-end
-
-group :mysql2 do
- gem 'mysql2', '< 0.3'
-end
-
-group :postgresql do
- gem 'pg'
-end
-
-group :test do
- gem 'mocha'
- gem 'shoulda'
- gem 'rr'
- gem 'rake'
-end
-
-group :development do
- # To use debugger
- gem "ruby-debug", :platforms => :ruby_18
- gem "ruby-debug19", :platforms => :ruby_19
-end
-
-group :console do
- gem 'wirb'
- gem 'hirb-unicode'
- gem 'awesome_print', :require => 'ap'
+Dir["#{File.dirname(__FILE__)}/bundler.d/*.rb"].each do |bundle|
+ # puts "adding custom gem file #{bundle}"
+ self.instance_eval(Bundler.read_file(bundle))
end
@@ -0,0 +1,5 @@
+group :console do
+ gem 'wirb'
+ gem 'hirb-unicode'
+ gem 'awesome_print', :require => 'ap'
+end
@@ -0,0 +1,5 @@
+group :development do
+ # To use debugger
+ gem "ruby-debug", :platforms => :ruby_18
+ gem "ruby-debug19", :platforms => :ruby_19
+end
View
@@ -0,0 +1,4 @@
+group :fog do
+ gem "fog", :git => "git://github.com/fog/fog.git"
+ #gem "fog", ">= 1.3.2"
+end
@@ -0,0 +1,3 @@
+group :libvirt do
+ gem "virt", ">= 0.2.1"
+end
View
@@ -0,0 +1,3 @@
+group :mysql do
+ gem 'mysql'
+end
View
@@ -0,0 +1,3 @@
+group :mysql2 do
+ gem 'mysql2', '< 0.3'
+end
View
@@ -0,0 +1,3 @@
+group :ovirt do
+ gem "rbovirt", ">= 0.0.12"
+end
@@ -0,0 +1,3 @@
+group :postgresql do
+ gem 'pg'
+end
View
@@ -0,0 +1,3 @@
+group :sqlite do
+ gem 'sqlite3'
+end
View
@@ -0,0 +1,6 @@
+group :test do
+ gem 'mocha'
+ gem 'shoulda'
+ gem 'rr'
+ gem 'rake'
+end
View
@@ -0,0 +1,3 @@
+group :vmware do
+ gem "rbvmomi"
+end

0 comments on commit 9008500

Please sign in to comment.