Permalink
Browse files

Setup bundler standalone.

  • Loading branch information...
myronmarston committed May 24, 2012
1 parent bff7ef5 commit bb3db92d04db3da20e3d156e5af0d91a026da10b
Showing with 15 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +9 −0 config/setup_load_paths.rb
  3. +2 −0 spec/fast_spec_helper.rb
  4. +2 −0 spec/simplecov_setup.rb
View
@@ -18,3 +18,5 @@ tmp
lib/interpol/documentation_app/.sass-cache
.sass-cache
+
+bundle
@@ -0,0 +1,9 @@
+begin
+ # use `bundle install --standalone' to get this...
+ require File.expand_path('../../bundle/bundler/setup', __FILE__)
+rescue LoadError
+ # fall back to regular bundler if the person hasn't bundled standalone
+ require 'bundler'
+ Bundler.setup
+end
+
View
@@ -1,3 +1,5 @@
+require File.expand_path('../../config/setup_load_paths', __FILE__)
+
# Note: this file is purposefully minimal. Load as little as possible here.
require 'rspec/fire'
View
@@ -1,9 +1,11 @@
# MRI only
if defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' && RUBY_VERSION.to_f >= 1.9
+ require File.expand_path('../../config/setup_load_paths', __FILE__)
require 'simplecov'
SimpleCov.start do
add_filter "/spec"
+ add_filter "/bundle"
end
SimpleCov.at_exit do

0 comments on commit bb3db92

Please sign in to comment.