racksh 0.9.4 → 0.9.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/racksh CHANGED
@@ -2,10 +2,11 @@
2
2
 
3
3
  ENV['RACK_ENV'] ||= 'development'
4
4
 
5
+ boot_path = File.expand_path(File.join(File.dirname(__FILE__), "..", "lib", "racksh", "boot.rb"))
6
+
5
7
  if ARGV.empty?
6
- racksh_path = File.join(File.expand_path(File.dirname(__FILE__)), "..", "lib", "racksh.rb")
7
- exec "irb -r irb/completion -r #{racksh_path} --simple-prompt"
8
+ exec "irb -r irb/completion -r #{boot_path} --simple-prompt"
8
9
  else
9
- require 'racksh'
10
+ require boot_path
10
11
  p eval(ARGV.join(" "))
11
12
  end
@@ -0,0 +1,3 @@
1
+ dir = File.expand_path(File.dirname(__FILE__))
2
+ %w(session version init).each { |f| require File.join(dir, f) }
3
+ Rack::Shell.start!
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Shell
3
- VERSION = '0.9.4'.freeze
3
+ VERSION = '0.9.4.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: racksh
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.4
4
+ version: 0.9.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kulik
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-19 00:00:00 +01:00
12
+ date: 2009-11-22 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -42,7 +42,7 @@ extra_rdoc_files: []
42
42
 
43
43
  files:
44
44
  - bin/racksh
45
- - lib/racksh.rb
45
+ - lib/racksh/boot.rb
46
46
  - lib/racksh/init.rb
47
47
  - lib/racksh/session.rb
48
48
  - lib/racksh/version.rb
data/lib/racksh.rb DELETED
@@ -1,5 +0,0 @@
1
- require 'rubygems'
2
- dir = File.join(File.expand_path(File.dirname(__FILE__)), 'racksh')
3
- %w(session version init).each { |f| require File.join(dir, f) }
4
-
5
- Rack::Shell.start!