Skip to content

Commit

Permalink
removed 'require "rubygems", acting better when used with Bundler
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Nov 22, 2009
1 parent 05c6e71 commit cce2b65
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 12 deletions.
7 changes: 4 additions & 3 deletions bin/racksh
Expand Up @@ -2,10 +2,11 @@

ENV['RACK_ENV'] ||= 'development'

boot_path = File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "racksh", "boot.rb"))

if ARGV.empty?
racksh_path = File.join(File.expand_path(File.dirname(__FILE__)), "..", "lib", "racksh.rb")
exec "irb -r irb/completion -r #{racksh_path} --simple-prompt"
exec "irb -r irb/completion -r #{boot_path} --simple-prompt"
else
require 'racksh'
require boot_path
p eval(ARGV.join(" "))
end
5 changes: 0 additions & 5 deletions lib/racksh.rb

This file was deleted.

3 changes: 3 additions & 0 deletions lib/racksh/boot.rb
@@ -0,0 +1,3 @@
dir = File.expand_path(File.dirname(__FILE__))
%w(session version init).each { |f| require File.join(dir, f) }
Rack::Shell.start!
2 changes: 1 addition & 1 deletion lib/racksh/version.rb
@@ -1,5 +1,5 @@
module Rack
module Shell
VERSION = '0.9.4'.freeze
VERSION = '0.9.4.1'.freeze
end
end
6 changes: 3 additions & 3 deletions racksh.gemspec
Expand Up @@ -2,16 +2,16 @@

Gem::Specification.new do |s|
s.name = %q{racksh}
s.version = "0.9.4"
s.version = "0.9.4.1"
s.platform = Gem::Platform::RUBY
s.date = %q{2009-11-19}
s.date = %q{2009-11-22}
s.authors = ["Marcin Kulik"]
s.email = %q{marcin.kulik@gmail.com}
s.has_rdoc = false
s.homepage = %q{http://github.com/sickill/racksh}
s.summary = %q{Console for any Rack based ruby web app}
s.executables = ["racksh"]
s.files = [ "bin/racksh", "lib/racksh.rb", "lib/racksh/init.rb", "lib/racksh/session.rb", "lib/racksh/version.rb", "README.markdown" ]
s.files = [ "bin/racksh", "lib/racksh/boot.rb", "lib/racksh/init.rb", "lib/racksh/session.rb", "lib/racksh/version.rb", "README.markdown" ]
s.add_dependency 'rack', '>= 1.0'
s.add_dependency 'rack-test', '>= 0.5'
end

0 comments on commit cce2b65

Please sign in to comment.