Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Remove hand-holding code with bundler

  • Loading branch information...
commit ae2cddfe8293b6b16fca066cfb6a64deef190e42 1 parent 8647647
@djwonk djwonk authored
View
7 examples/datacatalog/app.rb
@@ -1,10 +1,5 @@
require 'rubygems'
-begin
- require 'bundler'
- Bundler.setup
-rescue LoadError
- puts "Please run `gem install bundler` and `bundle install`"
-end
+require 'bundler/setup'
require 'sinatra/base'
require File.dirname(__FILE__) + '/config/config'
View
7 examples/datacatalog/config/config.rb
@@ -1,10 +1,5 @@
require 'rubygems'
-begin
- require 'bundler'
- Bundler.setup
-rescue LoadError
- puts "Please run `gem install bundler` and `bundle install`"
-end
+require 'bundler/setup'
require 'mongo_mapper'
module Config
View
7 examples/datacatalog/test/helpers/test_helper.rb
@@ -1,10 +1,5 @@
require 'rubygems'
-begin
- require 'bundler'
- Bundler.setup
-rescue LoadError
- puts "Please run `gem install bundler` and `bundle install`"
-end
+require 'bundler/setup'
require 'crack/json'
require 'pending'
require 'rack/test'
View
7 spec/spec_helper.rb
@@ -1,10 +1,5 @@
require 'rubygems'
-begin
- require 'bundler'
- Bundler.setup
-rescue LoadError
- puts "Please run `gem install bundler` and `bundle install`"
-end
+require 'bundler/setup'
require 'spec'
require 'spec/autorun'
Please sign in to comment.
Something went wrong with that request. Please try again.