bash-session 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bash/session.rb +1 -1
- data/lib/bash/session/version.rb +1 -1
- data/spec/session_spec.rb +8 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94112c5160f83b5173687f7233a8891ad4bea404
|
4
|
+
data.tar.gz: c02ca274af118e6ae761a581c22fea56e31082df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c5203f8578c42c5eef1afdeec16244213ef85fa4033faaf648a85181211c7fe03ba96e48353bf412f10f5ec1f4e8bb9b6e1676c134809bbf4f3a5991169a15a
|
7
|
+
data.tar.gz: bf36bb9de2287b23a4cc8bec4a40e6a5e6298efbe14f3b4356cd02b0b0858beb96914f8c59267f03f4c46041511a826deb71d6c8bab5ff47608f227a563b7fac
|
data/lib/bash/session.rb
CHANGED
data/lib/bash/session/version.rb
CHANGED
data/spec/session_spec.rb
CHANGED
@@ -102,4 +102,12 @@ describe Bash::Session do
|
|
102
102
|
|
103
103
|
expect(reader.read_nonblock(1000)).to eq("hi......bye\n")
|
104
104
|
end
|
105
|
+
|
106
|
+
it 'should start a non-interactive login shell session' do
|
107
|
+
exit_status = @session.execute("[[ $- != *i* ]]")
|
108
|
+
expect(exit_status).to eq(0)
|
109
|
+
|
110
|
+
exit_status = @session.execute("shopt -q login_shell")
|
111
|
+
expect(exit_status).to eq(0)
|
112
|
+
end
|
105
113
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bash-session
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akshay Karle
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|