Skip to content

Commit

Permalink
Do not fiddle with load_path or bundle/require in bin/vedeu and lib/v…
Browse files Browse the repository at this point in the history
…edeu.rb.
  • Loading branch information
fwolfst committed Sep 28, 2015
1 parent 125e285 commit e36732c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
7 changes: 0 additions & 7 deletions bin/vedeu
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@ end

fail bundler_message unless defined?(Bundler)

ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)

Bundler.setup

gem_dir = File.expand_path('..', File.dirname(__FILE__))
$LOAD_PATH.unshift(gem_dir) unless $LOAD_PATH.include?(gem_dir)

require 'vedeu'
require 'vedeu_cli'

Expand Down
5 changes: 0 additions & 5 deletions lib/vedeu.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
$LIB_DIR = File.dirname(__FILE__) + '/../lib'
$LOAD_PATH.unshift($LIB_DIR) unless $LOAD_PATH.include?($LIB_DIR)

require 'bundler/setup'

require 'base64'
require 'date'
require 'drb'
Expand Down

0 comments on commit e36732c

Please sign in to comment.