bin/postrest in postrest-0.0.2 vs bin/postrest in postrest-0.0.3
- old
+ new
@@ -1,16 +1,9 @@
#!/usr/bin/env ruby
-#Add the currently running directory to the start of the load path
-$:.unshift './'
+# Add the currently running directory to the start of the load path
+$LOAD_PATH.unshift './'
-#Don't buffer stdout
+# Don't buffer stdout
$stdout.sync = true
-begin
- require 'app.rb'
-rescue LoadError => e
- require 'rubygems'
- path = File.expand_path '../../lib', __FILE__
- $:.unshift(path) if File.directory?(path) && !$:.include?(path)
- require 'app.rb'
-end
+require 'app'