Permalink
Browse files

removed 'require "rubygems", acting better when used with Bundler

  • Loading branch information...
1 parent 05c6e71 commit cce2b65c615ec811d5a5a6ac190113442e549802 @sickill sickill committed Nov 22, 2009
Showing with 11 additions and 12 deletions.
  1. +4 −3 bin/racksh
  2. +0 −5 lib/racksh.rb
  3. +3 −0 lib/racksh/boot.rb
  4. +1 −1 lib/racksh/version.rb
  5. +3 −3 racksh.gemspec
View
@@ -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
View
@@ -1,5 +0,0 @@
-require 'rubygems'
-dir = File.join(File.expand_path(File.dirname(__FILE__)), 'racksh')
-%w(session version init).each { |f| require File.join(dir, f) }
-
-Rack::Shell.start!
View
@@ -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!
View
@@ -1,5 +1,5 @@
module Rack
module Shell
- VERSION = '0.9.4'.freeze
+ VERSION = '0.9.4.1'.freeze
end
end
View
@@ -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.