diff --git a/demos/MMk.rb b/demos/MMk.rb index 17570290e362b77f3b55f2dfbe3cb4f3c6e8f433..67bc0b4d226a4e837c061ce89b5d97a2bef11611 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 12503a46f650cdaadb61eca910f5575e5e26d1ad..0f6e7c89845e48e8076f7f447a89530fe9da903e 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 fb47276c3cdd15ae5b5b0eb6631f9680852f8918..96c9cab93262311db0480813a035e4c93cc36ad0 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