From 4fb2da6cd2654b585bbeb1aada9cf37edbe60dab Mon Sep 17 00:00:00 2001
From: pjs <pjs@alum.mit.edu>
Date: Fri, 2 Mar 2012 22:43:19 -0800
Subject: [PATCH] Took out LOAD_PATH expansion from demos now that we're
 gemified

Signed-off-by: pjs <pjs@alum.mit.edu>
---
 demos/MMk.rb         | 6 +-----
 demos/MyModel.rb     | 6 +-----
 demos/MyModelArgs.rb | 6 +-----
 3 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/demos/MMk.rb b/demos/MMk.rb
index 1757029..67bc0b4 100644
--- a/demos/MMk.rb
+++ b/demos/MMk.rb
@@ -1,10 +1,6 @@
 #!/usr/bin/env ruby
 
-# expand the $LOAD_PATH to find local library modules until such
-# time as SimpleKit gets turned into a Ruby Gem.
-[File.expand_path(File.dirname(__FILE__), '../lib')].each do |new_location|
-  $LOAD_PATH.unshift(new_location) unless $LOAD_PATH.include?(new_location)
-end
+require 'rubygems'
 require 'simplekit'
 
 # Demonstration model of an M/M/k queueing system.  There are k servers
diff --git a/demos/MyModel.rb b/demos/MyModel.rb
index 12503a4..0f6e7c8 100644
--- a/demos/MyModel.rb
+++ b/demos/MyModel.rb
@@ -1,10 +1,6 @@
 #!/usr/bin/env ruby
 
-# expand the $LOAD_PATH to find local library modules until such
-# time as this gets turned into a Ruby Gem.
-[File.expand_path(File.dirname(__FILE__), '../lib')].each do |new_location|
-  $LOAD_PATH.unshift(new_location) unless $LOAD_PATH.include?(new_location)
-end
+require 'rubygems'
 require 'simplekit'
 
 class MyModel
diff --git a/demos/MyModelArgs.rb b/demos/MyModelArgs.rb
index fb47276..96c9cab 100644
--- a/demos/MyModelArgs.rb
+++ b/demos/MyModelArgs.rb
@@ -1,10 +1,6 @@
 #!/usr/bin/env ruby
 
-# expand the $LOAD_PATH to find local library modules until such
-# time as this gets turned into a Ruby Gem.
-[File.expand_path(File.dirname(__FILE__), '../lib')].each do |new_location|
-  $LOAD_PATH.unshift(new_location) unless $LOAD_PATH.include?(new_location)
-end
+require 'rubygems'
 require 'simplekit'
 
 class MyModel
-- 
GitLab