racksh 0.9.1 → 0.9.2

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/bin/racksh +2 -1
  3. data/lib/racksh.rb +2 -2
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 0.9.2
data/bin/racksh CHANGED
@@ -1,7 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  if ARGV.empty?
4
- exec "irb -r racksh"
4
+ racksh_path = File.join(File.expand_path(File.dirname(__FILE__)), "..", "lib", "racksh.rb")
5
+ exec "irb -r #{racksh_path}"
5
6
  else
6
7
  require 'racksh'
7
8
  p eval(ARGV.join(" "))
data/lib/racksh.rb CHANGED
@@ -8,7 +8,7 @@ config_ru = ENV['CONFIG_RU'] || 'config.ru'
8
8
 
9
9
  begin
10
10
  load config_ru
11
- version = File.read(File.join(File.dirname(__FILE__), '..', 'VERSION'))
11
+ version = File.read(File.join(File.dirname(__FILE__), '..', 'VERSION')).strip
12
12
  puts "Rack::Shell v#{version} started in #{ENV['RACK_ENV']} environment."
13
13
  rescue LoadError => e
14
14
  if e.message =~ /config\.ru$/
@@ -17,4 +17,4 @@ rescue LoadError => e
17
17
  else
18
18
  raise e
19
19
  end
20
- end
20
+ 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.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcin Kulik