remote-session 0.0.5 → 0.0.6
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/lib/remote/session.rb +1 -1
- data/lib/remote/session/version.rb +1 -1
- data/spec/unit/session_spec.rb +1 -1
- metadata +3 -3
data/lib/remote/session.rb
CHANGED
@@ -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
|
data/spec/unit/session_spec.rb
CHANGED
@@ -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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Joe Yates
|