bin/soks-create-wiki.rb in Soks-1.0.2 vs bin/soks-create-wiki.rb in Soks-1.0.3
- old
+ new
@@ -48,9 +48,11 @@
end
#Find where we are
$SOKS_APPLICATION_DIRECTORY, this_script = File.split(File.expand_path(File.dirname(__FILE__)))
+$IS_GEM = ($SOKS_APPLICATION_DIRECTORY =~ /\/gems\//i) ? true : false
+
#Make sure we can find our libraries
soks_library = [ File.join( $SOKS_APPLICATION_DIRECTORY,'lib') , File.join( $SOKS_APPLICATION_DIRECTORY,'lib','helpers'), File.join( $SOKS_APPLICATION_DIRECTORY,'/contrib' ) ]
$:.push( *soks_library )
require 'easyprompt'
\ No newline at end of file