Skip to content
Browse files

Removed sloppy whitespace

  • Loading branch information...
1 parent 0fe1b2d commit 1f6bf1260c41827721c95a0dc1527a4a5aa39e74 @sickill sickill committed
Showing with 10 additions and 10 deletions.
  1. +3 −3 Rakefile
  2. +5 −5 lib/racksh/init.rb
  3. +2 −2 lib/racksh/session.rb
View
6 Rakefile
@@ -6,6 +6,6 @@ task :default => [:repackage]
spec = eval(File.read('racksh.gemspec'))
-Rake::GemPackageTask.new(spec) do |pkg|
- pkg.need_tar = true
-end
+Rake::GemPackageTask.new(spec) do |pkg|
+ pkg.need_tar = true
+end
View
10 lib/racksh/init.rb
@@ -10,22 +10,22 @@ def reload!
module Rack
module Shell
File = ::File
-
+
def self.init(print_startup_info=true)
config_ru = ENV['CONFIG_RU']
-
+
# build Rack app
rack_app = Object.class_eval("Rack::Builder.new { #{File.read(config_ru)} }", config_ru)
$rack = Rack::Shell::Session.new(rack_app)
-
+
# run ~/.rackshrc
rcfile = File.expand_path("~/.rackshrc")
eval(File.read(rcfile)) if File.exists?(rcfile)
-
+
# run local .rackshrc (from app dir)
rcfile = File.expand_path(File.join(File.dirname(config_ru), ".rackshrc"))
eval(File.read(rcfile)) if File.exists?(rcfile)
-
+
# print startup info
if print_startup_info
if STDOUT.tty? && ENV['TERM'] != 'dumb' # we have color terminal, let's pimp our info!
View
4 lib/racksh/session.rb
@@ -5,11 +5,11 @@ module Shell
class Session
include Rack::Test::Methods
attr_reader :app
-
+
def initialize(app)
@app = app
end
-
+
def env
ENV['RACK_ENV']
end

0 comments on commit 1f6bf12

Please sign in to comment.
Something went wrong with that request. Please try again.