remote-session 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -124,7 +124,7 @@ module Remote
124
124
  elsif ! ch[ :awaiting_prompt ]
125
125
  # this is the first time through...
126
126
  ch[ :awaiting_prompt ] = true
127
- ch.send_data "export PS1='#{ ROOT_COMMAND_PROMPT }'"
127
+ ch.send_data "export PS1='#{ ROOT_COMMAND_PROMPT }'\n"
128
128
  # else: Waiting for new root prompt
129
129
  end
130
130
  end
@@ -2,7 +2,7 @@ module Remote
2
2
  class Session
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- REVISION = 5
5
+ REVISION = 6
6
6
  VERSION = [ MAJOR, MINOR, REVISION ].map( &:to_s ).join( '.' )
7
7
  end
8
8
  end
@@ -274,7 +274,7 @@ describe Remote::Session do
274
274
  context 'after sudo prompt' do
275
275
 
276
276
  it 'should set the root command prompt' do
277
- @ch.should_receive( :send_data ).with( "export PS1='remote-session-prompt#'" )
277
+ @ch.should_receive( :send_data ).with( "export PS1='remote-session-prompt#'\n" )
278
278
 
279
279
  @rs.sudo( 'pwd' )
280
280
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: remote-session
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Joe Yates