snailgun 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README.markdown +3 -1
  2. data/lib/snailgun/server.rb +4 -1
  3. metadata +1 -1
data/README.markdown CHANGED
@@ -210,4 +210,6 @@ Author
210
210
  Brian Candler <B.Candler@pobox.com>
211
211
 
212
212
  Credits:
213
- Jan X <jan.h.xie@gmail.com>
213
+
214
+ * Jan X <jan.h.xie@gmail.com>
215
+ * George Ogata <george.ogata@gmail.com>
@@ -11,6 +11,7 @@ trace_var(:$0) {|val| $PROGRAM_NAME = val} # update for ps
11
11
 
12
12
  require 'socket'
13
13
  require 'optparse'
14
+ require 'shellwords'
14
15
 
15
16
  module Snailgun
16
17
  class Server
@@ -93,7 +94,9 @@ module Snailgun
93
94
  end
94
95
 
95
96
  def self.shell
96
- system(ENV['SHELL'] || 'bash')
97
+ shell_opts = ENV['SNAILGUN_SHELL_OPTS']
98
+ args = shell_opts ? Shellwords.shellwords(shell_opts) : []
99
+ system(ENV['SHELL'] || 'bash', *args)
97
100
  end
98
101
 
99
102
  # Interactive mode (start a subshell with SNAILGUN_SOCK set up,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snailgun
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Candler